neo4j-core 3.0.3 → 3.0.4
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 +7 -0
- data/lib/neo4j-core/query_clauses.rb +3 -1
- 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: da521626106112cd3b3f3f2a4f7ea630f9cf147f
|
4
|
+
data.tar.gz: d6c94b7d176c36d70d0436db4f307dd9bc478c15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af84ab4cc337da17517d0443ba699b7ec247d26b92d3258862ad9cf151b9fbfae877ad72b05ea73fb6661f37eb3ec4511e9485d21bd6a7404c70086d6228fe05
|
7
|
+
data.tar.gz: ebea9a3a22f0f70ff051f0ab1d2fce8e466a94afb021c9c96e2043320f044ec17671639b2b07bba8ad0d337c40f9e5ec81ba56e4935cf7a84521b3d636d2c7b6
|
data/lib/neo4j-core/query.rb
CHANGED
@@ -315,5 +315,12 @@ module Neo4j::Core
|
|
315
315
|
@merge_params ||= @clauses.compact.inject(@_params) { |params, clause| params.merge(clause.params) }
|
316
316
|
end
|
317
317
|
|
318
|
+
def sanitize_params(params)
|
319
|
+
passthrough_classes = [String, Numeric, Array, Regexp]
|
320
|
+
params.each do |key, value|
|
321
|
+
params[key] = value.to_s if not passthrough_classes.any? {|klass| value.is_a?(klass) }
|
322
|
+
end
|
323
|
+
end
|
324
|
+
|
318
325
|
end
|
319
326
|
end
|
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: 3.0.
|
4
|
+
version: 3.0.4
|
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-10-
|
11
|
+
date: 2014-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|