diff --git a/.travis.yml b/.travis.yml index eea2813..de10948 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,15 +4,14 @@ script: "bundle exec rspec spec" env: - CI=true rvm: - - 2.0 - - 2.1 - - 2.2.4 - - 2.3.0 - - jruby-9.0.4.0 - - rbx-2 + - 2.2.6 + - 2.3.3 + - 2.4.0 + - jruby + - rbx cache: bundler sudo: false matrix: allow_failures: - - rvm: jruby-9.0.4.0 - - rvm: rbx-2 + - rvm: rbx + - rvm: jruby diff --git a/Gemfile b/Gemfile index 1b9777d..dbb1d09 100644 --- a/Gemfile +++ b/Gemfile @@ -2,17 +2,16 @@ source "https://rubygems.org" gemspec -gem "rdf", git: "git://github.com/ruby-rdf/rdf.git", branch: "develop" +gem "rdf", github: "ruby-rdf/rdf", branch: "develop" group :development do - gem "rdf-spec", git: "git://github.com/ruby-rdf/rdf-spec.git", branch: "develop" - gem "rdf-isomorphic", git: "git://github.com/ruby-rdf/rdf-isomorphic.git", branch: "develop" - gem "rdf-xsd", git: "git://github.com/ruby-rdf/rdf-xsd.git", branch: "develop" - gem "json-ld", git: "git://github.com/ruby-rdf/json-ld.git", branch: "develop" + gem "rdf-spec", github: "ruby-rdf/rdf-spec", branch: "develop" + gem "rdf-isomorphic", github: "ruby-rdf/rdf-isomorphic", branch: "develop" + gem "rdf-xsd", github: "ruby-rdf/rdf-xsd", branch: "develop" + gem "json-ld", github: "ruby-rdf/json-ld", branch: "develop" end group :debug do - gem "wirble" gem "byebug", platform: :mri end diff --git a/VERSION b/VERSION index 227cea2..7ec1d6d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.0 +2.1.0 diff --git a/dependencyci.yml b/dependencyci.yml new file mode 100644 index 0000000..0c67c1b --- /dev/null +++ b/dependencyci.yml @@ -0,0 +1,5 @@ +platform: + Rubygems: + rdf-isomorphic: + tests: + unmaintained: skip \ No newline at end of file diff --git a/lib/rdf/n3/format.rb b/lib/rdf/n3/format.rb index 3e0995b..b62183c 100644 --- a/lib/rdf/n3/format.rb +++ b/lib/rdf/n3/format.rb @@ -17,7 +17,7 @@ module RDF::N3 # # @see http://www.w3.org/TR/rdf-testcases/#ntriples class Format < RDF::Format - content_type 'text/n3', extension: :n3, aliases: %w(text/rdf+n3 application/rdf+n3) + content_type 'text/n3', extension: :n3, aliases: %w(text/rdf+n3;q=0.2 application/rdf+n3;q=0.2) content_encoding 'utf-8' reader { RDF::N3::Reader } diff --git a/lib/rdf/n3/reader.rb b/lib/rdf/n3/reader.rb index f5e4d1a..1a3c2fd 100644 --- a/lib/rdf/n3/reader.rb +++ b/lib/rdf/n3/reader.rb @@ -657,11 +657,11 @@ def keyword_check(kw) # Create URIs def uri(value, append = nil) - value = RDF::URI.new(value) + value = RDF::URI(value) value = value.join(append) if append value.validate! if validate? && value.respond_to?(:validate) value.canonicalize! if canonicalize? - value = RDF::URI.intern(value) if intern? + value = RDF::URI.intern(value, {}) if intern? # Variable substitution for in-scope variables. Variables are in scope if they are defined in anthing other than # the current formula diff --git a/rdf-n3.gemspec b/rdf-n3.gemspec index 54ed07e..83cbc7d 100755 --- a/rdf-n3.gemspec +++ b/rdf-n3.gemspec @@ -20,7 +20,7 @@ Gem::Specification.new do |gem| gem.require_paths = %w(lib) gem.has_rdoc = false - gem.required_ruby_version = '>= 2.0.0' + gem.required_ruby_version = '>= 2.2.2' gem.requirements = [] gem.add_dependency 'rdf', '~> 2.0'