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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 057092ce090c6050a166ba15ca5b7c9d72169c19
4
- data.tar.gz: cc80a056a8d85c3364809478c1ea17e8ce67b779
3
+ metadata.gz: 106d414e1bebb0587c2d01a564d1f08bc6160991
4
+ data.tar.gz: 136891e590a71bc0f070a614467dbb38b2562933
5
5
  SHA512:
6
- metadata.gz: 0f52fd4c7186f33d7d2a8d0153d95b8650fe1e781ff42f69df82d96919e6c16f89158f669730fb91a9584c4776caee186c65881d9d32a208a61a07f2b1fc624f
7
- data.tar.gz: 0820493234c04d3ca57950fb53d88bffce3e00f0a2b1a2b95405e9a748e6ce9e03bf90c109eab50e7cd8b69ebf7799ec2c69634db21d8b741682dcaa9b91906a
6
+ metadata.gz: 0c97d8934fe0a5dde498f4682defabc26fdbb4abe10e46937c9b9cf9902b6298ff39629e7fc8e824d7a8f8f7f19cc6e5dd2942edfb9fd7d481fb68fc5606bcfb
7
+ data.tar.gz: 4b9a3fd64071db85c5f1545ef99da48e1f7da89f4f7833d9b2151ac235ab195d158cd2bf3acd27f687ea794afa6da5de6dd4e567a8db520a6788b22394e06cab
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module Core
3
- VERSION = '5.0.5'
3
+ VERSION = '5.0.6'
4
4
  end
5
5
  end
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.5
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-14 00:00:00.000000000 Z
11
+ date: 2015-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty