Skip to content

Commit 161b235

Browse files
committed
Finish 2.2.0
2 parents 50a6a4f + 0fca464 commit 161b235

6 files changed

Lines changed: 25 additions & 18 deletions

File tree

.travis.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@ bundler_args: --without debug
33
script: "bundle exec rspec spec"
44
env:
55
- CI=true
6-
rvm:
7-
- 2.0
8-
- 2.1.8
9-
- 2.2.4
10-
- 2.3.0
11-
- jruby-9.0.4.0
12-
- rbx-2
136
services:
147
- mongodb
8+
rvm:
9+
- 2.2
10+
- 2.3
11+
- 2.4
12+
- jruby-9
13+
- rbx-3
1514
cache: bundler
15+
sudo: false
1616
matrix:
1717
allow_failures:
18-
- rvm: rbx-2
18+
- rvm: jruby-9
19+
- rvm: rbx-3
20+
dist: trusty

Gemfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ source "http://rubygems.org"
22

33
gemspec
44

5-
gem "rdf", git: "git://github.com/ruby-rdf/rdf.git", branch: "develop"
6-
gem "rdf-spec", git: "git://github.com/ruby-rdf/rdf-spec.git", branch: "develop"
7-
gem 'rdf-isomorphic', git: "git://github.com/ruby-rdf/rdf-isomorphic.git", branch: "develop"
5+
gem "rdf", github: "ruby-rdf/rdf", branch: "develop"
6+
gem "rdf-spec", github: "ruby-rdf/rdf-spec", branch: "develop"
7+
gem 'rdf-isomorphic', github: "ruby-rdf/rdf-isomorphic", branch: "develop"
88

99
group :debug do
1010
gem "byebug", platforms: :mri
11-
gem "wirble"
1211
end
1312

1413
platforms :rbx do

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.1
1+
2.2.0

dependencyci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
platform:
2+
Rubygems:
3+
rdf-isomorphic:
4+
tests:
5+
unmaintained: skip

lib/rdf/mongo.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Statement
88
# Creates a BSON representation of the statement.
99
# @return [Hash]
1010
def to_mongo
11-
self.to_hash.inject({}) do |hash, (place_in_statement, entity)|
11+
self.to_h.inject({}) do |hash, (place_in_statement, entity)|
1212
hash.merge(RDF::Mongo::Conversion.to_mongo(entity, place_in_statement))
1313
end
1414
end
@@ -171,9 +171,10 @@ def initialize(options = {}, &block)
171171
# @see RDF::Mutable#insert_statement
172172
def supports?(feature)
173173
case feature.to_sym
174-
when :graph_name then true
175-
when :atomic_write then true
176-
when :validity then @options.fetch(:with_validity, true)
174+
when :graph_name then true
175+
when :atomic_write then true
176+
when :validity then @options.fetch(:with_validity, true)
177+
when :literal_equality then true
177178
else false
178179
end
179180
end

rdf-mongo.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Gem::Specification.new do |gem|
2727
gem.test_files = Dir.glob('spec/*.spec')
2828
gem.has_rdoc = false
2929

30-
gem.required_ruby_version = '>= 2.0'
30+
gem.required_ruby_version = '>= 2.2.2'
3131
gem.requirements = []
3232
gem.add_runtime_dependency 'rdf', '~> 2.0'
3333
gem.add_runtime_dependency 'mongo', '~> 2.2'

0 commit comments

Comments
 (0)