neo4j-core 3.0.0.alpha.11 → 3.0.0.alpha.12

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: 4fede67cc634151503c9657840ab07e5e5784bff
4
- data.tar.gz: 1557f284030e803a3eb4a24678e99d373f7fe4f5
3
+ metadata.gz: 996e8bf0524717f822fd3b4817ae67de19a1fc4a
4
+ data.tar.gz: 0dd0cce3404ead0e0f9dfa292949e2a352891ae6
5
5
  SHA512:
6
- metadata.gz: ea3b1d9c597fa378ca6f6fb7c9bd3a4e63f964781839ac7bf1aa9926a7da81fd68c0e417a7d42e405631167e3092b0fa5285d1457bbd4a5cfbb09c941c70ab3f
7
- data.tar.gz: ae5e4467e29dbeae65d929579d98201326e45e3d6a7691b00f5c528aae01cb4c554b65eb2ab04b2c55c1562ebb0bfdb3fbbeca49cdaddc75eb19d90bea81e1d4
6
+ metadata.gz: 288a4758d5ef9cd416ca964305ee1bd024c6b6632167138a3af5bcebbbb652df68ae7c2b081d8122632a4b1423d98c30304bffccc97fdaaf3ec5bb7bab1a2c2a
7
+ data.tar.gz: 40de5b9275d65d987b7784754822991cf417a4f964adea529b2df94c31e926bcb0e47c0f88ee31f0ac0d0a7389013267d0bcc3e3910c8f2fc7fa8863756e7b1b
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module Core
3
- VERSION = "3.0.0.alpha.11"
3
+ VERSION = "3.0.0.alpha.12"
4
4
  end
5
5
  end
@@ -113,9 +113,11 @@ module Neo4j::Server
113
113
  end
114
114
 
115
115
  def find_nodes(label_name, key, value)
116
+ value = "'#{value}'" if value.is_a? String
117
+
116
118
  response = _query_or_fail <<-CYPHER
117
119
  MATCH (n:`#{label_name}`)
118
- WHERE n.#{key} = '#{value}'
120
+ WHERE n.#{key} = #{value}
119
121
  RETURN ID(n)
120
122
  CYPHER
121
123
  search_result_to_enumerable(response)
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: 3.0.0.alpha.11
4
+ version: 3.0.0.alpha.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Ronge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-21 00:00:00.000000000 Z
11
+ date: 2014-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty