rdf-mongo 2.0.1 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/rdf/mongo.rb +5 -4
  4. metadata +4 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a91d8405fa246651fce9d3c97b3da32b26c1380
4
- data.tar.gz: 93c268a404411577b276771ddb8f7c8b82cc91ec
3
+ metadata.gz: 99ad51d8e59b6593f2aa63bd7369c9acd9931b75
4
+ data.tar.gz: 37191cc67665a121f0da98d1a548c569ba791868
5
5
  SHA512:
6
- metadata.gz: 28afd467cc19bccfc1bbe4e4cdb830ad0e764f57f7742047be32f4b8f3b83d3030f42a1bbdcbb88f8db68861a10f50b0cb8d78ddcb49c11d3f212fd6402b2732
7
- data.tar.gz: e903f0f0b89bde195e847643a84fcc0f64d44519510d7de49d46545271ef65fbb5a5b6cd203eea36f081d07b019fa9e5faa853f529247f349b157bdcf88ea942
6
+ metadata.gz: eae9c7d4531faccf33941dbc9fba71dde409659ce3acf2498861b2d8683a2188ca991bde862d0dd5c165794eac0a720f29e53629a98ac4237f4dd8762948ff74
7
+ data.tar.gz: bec70a925ae0e0a533fd7d5af1d7be0a76002eb4de91245a9e0c55f62bbafd9da2235ba4e06bd951991f4e94d4a84d98ab0a5623e073fc06605feced37493eff
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.1
1
+ 2.2.0
@@ -8,7 +8,7 @@ module RDF
8
8
  # Creates a BSON representation of the statement.
9
9
  # @return [Hash]
10
10
  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)|
12
12
  hash.merge(RDF::Mongo::Conversion.to_mongo(entity, place_in_statement))
13
13
  end
14
14
  end
@@ -171,9 +171,10 @@ module RDF
171
171
  # @see RDF::Mutable#insert_statement
172
172
  def supports?(feature)
173
173
  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
177
178
  else false
178
179
  end
179
180
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-mongo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pius Uzamere
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-06-12 00:00:00.000000000 Z
12
+ date: 2017-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdf
@@ -121,7 +121,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: '2.0'
124
+ version: 2.2.2
125
125
  required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  requirements:
127
127
  - - ">="
@@ -129,10 +129,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  version: '0'
130
130
  requirements: []
131
131
  rubyforge_project:
132
- rubygems_version: 2.5.1
132
+ rubygems_version: 2.6.11
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: A storage adapter for integrating MongoDB and rdf.rb, a Ruby library for
136
136
  working with Resource Description Framework (RDF) data.
137
137
  test_files: []
138
- has_rdoc: false