neo4j-core 3.0.1 → 3.0.2
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-server/cypher_response.rb +8 -8
- 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: 568ed58ce13513e0128272a5247d5c8c1497a226
|
4
|
+
data.tar.gz: 5d2a6f2e27679c89e31c328222947e9420a6855c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b521c271e96dd512f1be7c6b7e4d6c4a4cde2350c3a78f7222c98870ad5163881a22065d3d0e468cf563328ad6798c583a1350ed5971cc7439b673f2998e668
|
7
|
+
data.tar.gz: 347b3d9718d7849bcfd3eafc92af88e5c85453e1fc5ab6930e68e3ee0a1b819bc9b15a138f7af3841003edd89d40c1e9b26948edb7347f7611488a54220de724
|
data/lib/neo4j-core/version.rb
CHANGED
@@ -74,13 +74,13 @@ module Neo4j::Server
|
|
74
74
|
|
75
75
|
def hash_value_as_object(value, session)
|
76
76
|
return value unless value['labels'] || value['type'] || is_transaction_response?
|
77
|
-
obj_type, data =
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
77
|
+
obj_type, data = if is_transaction_response?
|
78
|
+
add_transaction_entity_id
|
79
|
+
[(mapped_rest_data['start'] ? CypherRelationship : CypherNode), mapped_rest_data]
|
80
|
+
else value['labels'] || value['type']
|
81
|
+
add_entity_id(value)
|
82
|
+
[(value['labels'] ? CypherNode : CypherRelationship), value]
|
83
|
+
end
|
84
84
|
obj_type.new(session, data).wrapper
|
85
85
|
end
|
86
86
|
|
@@ -196,7 +196,7 @@ module Neo4j::Server
|
|
196
196
|
end
|
197
197
|
|
198
198
|
def is_transaction_response?
|
199
|
-
!self.response.body['
|
199
|
+
self.response.respond_to?('body') && !self.response.body['commit'].nil?
|
200
200
|
end
|
201
201
|
|
202
202
|
def rest_data
|
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.2
|
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-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|