neo4j-core 5.1.10 → 5.1.11

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: f4f8a3a2a56fcb350b9dec6bed3c00561af9a66b
4
- data.tar.gz: a8e483897c5de8b8a2f59f3050ee64bf2802064e
3
+ metadata.gz: 77b1fbf777690f3356c92f4cb313e978c4b7f2ce
4
+ data.tar.gz: f84db3c395ac85b8a8913da5c1ada4652a8bea22
5
5
  SHA512:
6
- metadata.gz: d344cf40505f38c5ecc76a5b80951b22bc5ff3945518c7316f93d4be1e99079bc78735d50a1899ced572a20ddbe729cc54c7c80eba94020733f5bde2e7ac99d7
7
- data.tar.gz: e90b752dadb1a5dcfc6cb4334acf0826cce0d46aa55675e1a91f0a4350b869411c79e9f0ee510a7e31826782012e7aab038bcbb0b080234edce020e770d1350c
6
+ metadata.gz: 968c0abd0b7bfff82db0b588e3f649f0fdca1fbf660366f4c43cb867debfe015223d11140c50861f16b22c538e5d598ca5ae153e7f290ef446fdc5b62b07e5db
7
+ data.tar.gz: 983c77097fc69af0308bb7502e56ad3a14988bbb48a180cde4a20b6434780d8f7c1185b53bc2a47034814362c4ffdc90f609cb6208e73221175c9e2fb404d184
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module Core
3
- VERSION = '5.1.10'
3
+ VERSION = '5.1.11'
4
4
  end
5
5
  end
@@ -146,12 +146,18 @@ module Neo4j
146
146
  ActiveSupport::Notifications.instrument('neo4j.cypher_query', params: params, context: options[:context],
147
147
  cypher: query, pretty_cypher: options[:pretty_cypher], params: params) do
148
148
  @engine ||= Java::OrgNeo4jCypherJavacompat::ExecutionEngine.new(@graph_db)
149
- @engine.execute(query, HashWithIndifferentAccess.new(params))
149
+ @engine.execute(query, indifferent_params(params))
150
150
  end
151
151
  rescue StandardError => e
152
152
  raise Neo4j::Session::CypherError.new(e.message, e.class, 'cypher error')
153
153
  end
154
154
 
155
+ def indifferent_params(params)
156
+ return {} unless params
157
+ params.each { |k, v| params[k] = HashWithIndifferentAccess.new(params[k]) if v.is_a?(Hash) && !v.respond_to?(:nested_under_indifferent_access) }
158
+ HashWithIndifferentAccess.new(params)
159
+ end
160
+
155
161
  def query_default_return(as)
156
162
  " RETURN #{as}"
157
163
  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.1.10
4
+ version: 5.1.11
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-10-24 00:00:00.000000000 Z
11
+ date: 2015-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty