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 +4 -4
- data/lib/neo4j-core/version.rb +1 -1
- data/lib/neo4j-embedded/embedded_session.rb +7 -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: 77b1fbf777690f3356c92f4cb313e978c4b7f2ce
|
4
|
+
data.tar.gz: f84db3c395ac85b8a8913da5c1ada4652a8bea22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 968c0abd0b7bfff82db0b588e3f649f0fdca1fbf660366f4c43cb867debfe015223d11140c50861f16b22c538e5d598ca5ae153e7f290ef446fdc5b62b07e5db
|
7
|
+
data.tar.gz: 983c77097fc69af0308bb7502e56ad3a14988bbb48a180cde4a20b6434780d8f7c1185b53bc2a47034814362c4ffdc90f609cb6208e73221175c9e2fb404d184
|
data/lib/neo4j-core/version.rb
CHANGED
@@ -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,
|
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.
|
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-
|
11
|
+
date: 2015-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|