neo4j-core 5.0.5 → 5.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/neo4j-core/query.rb +11 -0
- data/lib/neo4j-core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 106d414e1bebb0587c2d01a564d1f08bc6160991
|
4
|
+
data.tar.gz: 136891e590a71bc0f070a614467dbb38b2562933
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c97d8934fe0a5dde498f4682defabc26fdbb4abe10e46937c9b9cf9902b6298ff39629e7fc8e824d7a8f8f7f19cc6e5dd2942edfb9fd7d481fb68fc5606bcfb
|
7
|
+
data.tar.gz: 4b9a3fd64071db85c5f1545ef99da48e1f7da89f4f7833d9b2151ac235ab195d158cd2bf3acd27f687ea794afa6da5de6dd4e567a8db520a6788b22394e06cab
|
data/lib/neo4j-core/query.rb
CHANGED
@@ -184,6 +184,17 @@ module Neo4j
|
|
184
184
|
end
|
185
185
|
end
|
186
186
|
|
187
|
+
def match_nodes(hash)
|
188
|
+
hash.inject(self) do |query, (variable, node_object)|
|
189
|
+
neo_id = if node_object.respond_to?(:neo_id)
|
190
|
+
node_object.neo_id
|
191
|
+
else
|
192
|
+
node_object
|
193
|
+
end
|
194
|
+
query.match(variable).where(variable => {neo_id: neo_id})
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
187
198
|
include Enumerable
|
188
199
|
|
189
200
|
def count(var = nil)
|
data/lib/neo4j-core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo4j-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Ronge, Chris Grigg, Brian Underwood
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|