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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rdf/mongo.rb +5 -4
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99ad51d8e59b6593f2aa63bd7369c9acd9931b75
|
4
|
+
data.tar.gz: 37191cc67665a121f0da98d1a548c569ba791868
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eae9c7d4531faccf33941dbc9fba71dde409659ce3acf2498861b2d8683a2188ca991bde862d0dd5c165794eac0a720f29e53629a98ac4237f4dd8762948ff74
|
7
|
+
data.tar.gz: bec70a925ae0e0a533fd7d5af1d7be0a76002eb4de91245a9e0c55f62bbafd9da2235ba4e06bd951991f4e94d4a84d98ab0a5623e073fc06605feced37493eff
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0
|
1
|
+
2.2.0
|
data/lib/rdf/mongo.rb
CHANGED
@@ -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.
|
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
|
175
|
-
when :atomic_write
|
176
|
-
when :validity
|
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
|
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:
|
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:
|
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.
|
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
|