neo4j-core 5.1.11 → 5.1.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: 77b1fbf777690f3356c92f4cb313e978c4b7f2ce
4
- data.tar.gz: f84db3c395ac85b8a8913da5c1ada4652a8bea22
3
+ metadata.gz: f37bacbf2fa0d2262c4881a6f89509ad2a75f8ca
4
+ data.tar.gz: e9c1f8f06e0ec94aa00bc8f76c2804d4c319d2d1
5
5
  SHA512:
6
- metadata.gz: 968c0abd0b7bfff82db0b588e3f649f0fdca1fbf660366f4c43cb867debfe015223d11140c50861f16b22c538e5d598ca5ae153e7f290ef446fdc5b62b07e5db
7
- data.tar.gz: 983c77097fc69af0308bb7502e56ad3a14988bbb48a180cde4a20b6434780d8f7c1185b53bc2a47034814362c4ffdc90f609cb6208e73221175c9e2fb404d184
6
+ metadata.gz: 2a5e8882738d15d434abad23b0ebf9115d615de9f7d91c3f04bb6cf2777a5f74652929825355ee41683c215c45f5cd620f1ba61e3382da8da9c8cdcd85c7b32b
7
+ data.tar.gz: 1d1d49ec28b59a89e5de4c44d7de4ee8a18442212442b0b72d949e8c8211237aa94e00bbec2b1c8d23fcd459bcf07d2f7146d350757885e66e1e198dee171e13
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module Core
3
- VERSION = '5.1.11'
3
+ VERSION = '5.1.12'
4
4
  end
5
5
  end
@@ -26,9 +26,13 @@ module Neo4j
26
26
  def properties_map
27
27
  return @properties_map if @properties_map
28
28
 
29
- props = @config[:properties_map].each_with_object({}) do |(k, v), m|
30
- m[k.to_s.to_java] = v.to_s.to_java
31
- end
29
+ props = if @config[:properties_map].is_a?(Hash)
30
+ @config[:properties_map].each_with_object({}) do |(k, v), m|
31
+ m[k.to_s.to_java] = v.to_s.to_java
32
+ end
33
+ else
34
+ {}
35
+ end
32
36
  @properties_map = java.util.HashMap.new(props)
33
37
  end
34
38
 
@@ -101,10 +101,9 @@ module Neo4j
101
101
  def identify_entity(data)
102
102
  self_string = data[:self]
103
103
  if self_string
104
- type = self_string.split('/')[-2]
105
- if type == 'node'
104
+ if self_string.include?('node')
106
105
  :node
107
- elsif type == 'relationship'
106
+ elsif self_string.include?('relationship')
108
107
  :relationship
109
108
  end
110
109
  elsif [:nodes, :relationships, :start, :end, :length].all? { |k| data.key?(k) }
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.11
4
+ version: 5.1.12
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-27 00:00:00.000000000 Z
11
+ date: 2015-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty