neo4j-core 7.0.0.alpha.2 → 7.0.0.alpha.3

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: df21104c64aac0e5c31d57b3cac9fd30054c2ab6
4
- data.tar.gz: c82e507fc09975bd20435df0cb6282300f1ca062
3
+ metadata.gz: 8e69d6a3474ef2e057ce91015f3dcf2882b0d711
4
+ data.tar.gz: ff82a54d57df258f33d485c92f4d9af6f8209220
5
5
  SHA512:
6
- metadata.gz: b27caa2963787801f0e8bb96aefa8d83134d777bf558b610c99465fde90a28e4a100d9e7bb45f39c0396d215a47a2fd0c8bb39658cdae43f2b62d5e329401885
7
- data.tar.gz: ab6fd5a98e469939d69f259483d0b45f11420f89012bcbab8b3d754c294e11cd9c858a6e8c4e3754a110a655efcd0b20387dec411801fc7f8134daa9912d8fd1
6
+ metadata.gz: 0f56a085cfe83029f16b466a9b06babdfc57a33908cd39c129a8d0201238c11f247d6b4869b580788573e2b8ae054f4f0c9d83a98f3b89f9a0a6241353cc644b
7
+ data.tar.gz: 4b6465780ac28f61383e543dcffa818cd17b0e6846fd67668126d9a286c620fba4f3c93f4dba35be7c9a6b4cd4c6c1fea1625bb20d8bfc314af94cd1f7dc75c9
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module Core
3
- VERSION = '7.0.0.alpha.2'
3
+ VERSION = '7.0.0.alpha.3'
4
4
  end
5
5
  end
@@ -1,6 +1,7 @@
1
1
  require 'neo4j/core/cypher_session'
2
2
  require 'neo4j/core/instrumentable'
3
3
  require 'neo4j/core/label'
4
+ require 'neo4j-core/version'
4
5
 
5
6
  module Neo4j
6
7
  module Core
@@ -72,8 +72,8 @@ module Neo4j
72
72
  ::Neo4j::Core::Relationship.new(entity.get_id,
73
73
  entity.get_type.name,
74
74
  get_entity_properties(entity),
75
- entity.get_start_node.neo_id,
76
- entity.get_end_node.neo_id)
75
+ entity.get_start_node.id,
76
+ entity.get_end_node.id)
77
77
  end
78
78
 
79
79
  def wrap_path(entity)
@@ -84,12 +84,12 @@ module Neo4j
84
84
 
85
85
  def wrap_value(entity)
86
86
  if entity.is_a?(Java::ScalaCollectionConvert::Wrappers::MapWrapper)
87
- entity.each_with_object({}) { |(k, v), r| r[k.to_sym] = v }
87
+ entity.each_with_object({}) { |(k, v), r| r[k.to_sym] = _wrap_entity(v) }
88
88
  elsif entity.is_a?(Java::OrgNeo4jKernelImplCore::NodeProxy) ||
89
89
  entity.is_a?(Java::OrgNeo4jKernelImplCore::RelationshipProxy)
90
90
  entity.property_keys.each_with_object({}) { |key, hash| hash[key.to_sym] = entity.get_property(key) }
91
- elsif entity.respond_to?(:path_entities)
92
- entity.to_a.map(&method(:wrap_value))
91
+ elsif entity.respond_to?(:path_entities) || entity.is_a?(Java::ScalaCollectionConvert::Wrappers::SeqWrapper)
92
+ entity.to_a.map(&method(:_wrap_entity))
93
93
  else
94
94
  # Convert from Java?
95
95
  entity
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: 7.0.0.alpha.2
4
+ version: 7.0.0.alpha.3
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: 2016-08-02 00:00:00.000000000 Z
11
+ date: 2016-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday