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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96ecdf63a61b304ea758fc9870e106f9ae4e9b7f
4
- data.tar.gz: c17a81a6e81c6e09955cdcc163908f0abf503292
3
+ metadata.gz: da521626106112cd3b3f3f2a4f7ea630f9cf147f
4
+ data.tar.gz: d6c94b7d176c36d70d0436db4f307dd9bc478c15
5
5
  SHA512:
6
- metadata.gz: 04e232c88e18f857d16bc985825941c696cf3ed4854b85a48b6106d8947fb460c0ba5b3c1fbefe2a7cffa39148db42e5c9052d9e7a4f008f2dd02244c8615abb
7
- data.tar.gz: e2937aafe17eac82b99e6bb0d59582b7b299fa284266fc253ce5d505a7374e67c87d7e3befbfb313462c1682e0f8722781302e1397efe545f2edb61a20172fdf
6
+ metadata.gz: af84ab4cc337da17517d0443ba699b7ec247d26b92d3258862ad9cf151b9fbfae877ad72b05ea73fb6661f37eb3ec4511e9485d21bd6a7404c70086d6228fe05
7
+ data.tar.gz: ebea9a3a22f0f70ff051f0ab1d2fce8e466a94afb021c9c96e2043320f044ec17671639b2b07bba8ad0d337c40f9e5ec81ba56e4935cf7a84521b3d636d2c7b6
@@ -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
@@ -106,7 +106,9 @@ module Neo4j::Core
106
106
  end
107
107
 
108
108
  def to_cypher(clauses)
109
- "#{@keyword} #{clause_string(clauses)}"
109
+ string = clause_string(clauses)
110
+
111
+ "#{@keyword} #{string}" if string.to_s.strip.size > 0
110
112
  end
111
113
  end
112
114
 
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module Core
3
- VERSION = "3.0.3"
3
+ VERSION = "3.0.4"
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: 3.0.3
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-24 00:00:00.000000000 Z
11
+ date: 2014-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty