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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66251bf61bb42f0f8f74378b2c6da243cc730172
4
- data.tar.gz: 78bd05d535dea67264c20e5e72f3f46f7af7b84a
3
+ metadata.gz: 568ed58ce13513e0128272a5247d5c8c1497a226
4
+ data.tar.gz: 5d2a6f2e27679c89e31c328222947e9420a6855c
5
5
  SHA512:
6
- metadata.gz: b4309cc95b32c1d44afb6bc92c558378d0d2acef61ee85312eb24678bb585167622e3f56ee1d0b1f77412d9aa42bd0bdca29df45d827871a6e1ce5d055cd09e4
7
- data.tar.gz: 3b94371cd1cf479225030e5e359eb3d97dd4c834e13496e6626b12828e95063ffe7ea08e197a69fe3324adf507d6f71bc26b5ecb2b3bccd00ec99ab8c8e5794a
6
+ metadata.gz: 0b521c271e96dd512f1be7c6b7e4d6c4a4cde2350c3a78f7222c98870ad5163881a22065d3d0e468cf563328ad6798c583a1350ed5971cc7439b673f2998e668
7
+ data.tar.gz: 347b3d9718d7849bcfd3eafc92af88e5c85453e1fc5ab6930e68e3ee0a1b819bc9b15a138f7af3841003edd89d40c1e9b26948edb7347f7611488a54220de724
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module Core
3
- VERSION = "3.0.1"
3
+ VERSION = "3.0.2"
4
4
  end
5
5
  end
@@ -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 = if value['labels'] || value['type']
78
- add_entity_id(value)
79
- [(value['labels'] ? CypherNode : CypherRelationship), value]
80
- else
81
- add_transaction_entity_id
82
- [(mapped_rest_data['start'] ? CypherRelationship : CypherNode), mapped_rest_data]
83
- end
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['results'].nil?
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.1
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-03 00:00:00.000000000 Z
11
+ date: 2014-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty