neo4j-core 7.0.0.alpha.7 → 7.0.0.alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/lib/neo4j/core/cypher_session/adaptors/bolt.rb +2 -1
- data/lib/neo4j/core/cypher_session/adaptors.rb +8 -8
- data/lib/neo4j/core/cypher_session/responses/bolt.rb +8 -2
- data/lib/neo4j-core/version.rb +1 -1
- metadata +3 -3
- data/lib/neo4j-core/version.rb.orig +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bc5b959f06c5ed7ac484e64fa33080efeded582
|
4
|
+
data.tar.gz: b755bce4d46ae8cc3325bf2f06764e05cae4bcc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e36bb43eff21409124d394235c1c1209a33b4d2fa2978ff7e3d7e09c603b1b67958927cf9555c1d82d12f9962eff327251bbb46f3c467aecbd9efae74605f14
|
7
|
+
data.tar.gz: 82cdc684b693eb423e1c4de77871d54965bcbc3bd998158c423c1ee9fd89b9c5e094591f9aeb117d973da5039328a8a3d6f56fa7b3b02f2b569c413f3fc378fa
|
data/Gemfile
CHANGED
@@ -44,7 +44,8 @@ module Neo4j
|
|
44
44
|
|
45
45
|
if @socket.ready?
|
46
46
|
debug_remaining_buffer
|
47
|
-
fail
|
47
|
+
fail "Making query, but expected there to be no buffer remaining!\n"\
|
48
|
+
"Queries: #{queries.map(&:cypher)}"
|
48
49
|
end
|
49
50
|
|
50
51
|
send_query_jobs(queries)
|
@@ -53,14 +53,14 @@ ERROR
|
|
53
53
|
class Base
|
54
54
|
include Neo4j::Core::Instrumentable
|
55
55
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
56
|
+
gem_name, version = if defined?(::Neo4j::ActiveNode)
|
57
|
+
['neo4j', ::Neo4j::VERSION]
|
58
|
+
else
|
59
|
+
['neo4j-core', ::Neo4j::Core::VERSION]
|
60
|
+
end
|
61
61
|
|
62
62
|
|
63
|
-
USER_AGENT_STRING = "#{
|
63
|
+
USER_AGENT_STRING = "#{gem_name}-gem/#{version} (https://github.com/neo4jrb/#{gem_name})"
|
64
64
|
|
65
65
|
def connect(*_args)
|
66
66
|
fail '#connect not implemented!'
|
@@ -141,11 +141,11 @@ ERROR
|
|
141
141
|
|
142
142
|
yield tx
|
143
143
|
rescue => e
|
144
|
-
tx.mark_failed
|
144
|
+
tx.mark_failed if tx
|
145
145
|
|
146
146
|
raise e
|
147
147
|
ensure
|
148
|
-
tx.close
|
148
|
+
tx.close if tx
|
149
149
|
end
|
150
150
|
end
|
151
151
|
|
@@ -52,10 +52,16 @@ module Neo4j
|
|
52
52
|
|
53
53
|
def extract_message_groups(flush_messages_proc)
|
54
54
|
fields_messages = flush_messages_proc.call
|
55
|
+
|
55
56
|
validate_message_type!(fields_messages[0], :success)
|
56
57
|
|
57
58
|
result_messages = []
|
58
|
-
|
59
|
+
messages = nil
|
60
|
+
|
61
|
+
loop do
|
62
|
+
messages = flush_messages_proc.call
|
63
|
+
next if messages.nil?
|
64
|
+
break if messages[0].type == :success
|
59
65
|
result_messages.concat(messages)
|
60
66
|
end
|
61
67
|
|
@@ -88,7 +94,7 @@ module Neo4j
|
|
88
94
|
when :proc
|
89
95
|
yield.wrap
|
90
96
|
else
|
91
|
-
fail ArgumentError, "
|
97
|
+
fail ArgumentError, "Invalid wrap_level: #{@wrap_level.inspect}"
|
92
98
|
end
|
93
99
|
end
|
94
100
|
|
data/lib/neo4j-core/version.rb
CHANGED
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.
|
4
|
+
version: 7.0.0.alpha.8
|
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-
|
11
|
+
date: 2016-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -242,7 +242,6 @@ files:
|
|
242
242
|
- lib/neo4j-core/query_clauses.rb
|
243
243
|
- lib/neo4j-core/query_find_in_batches.rb
|
244
244
|
- lib/neo4j-core/version.rb
|
245
|
-
- lib/neo4j-core/version.rb.orig
|
246
245
|
- lib/neo4j-embedded.rb
|
247
246
|
- lib/neo4j-embedded/cypher_response.rb
|
248
247
|
- lib/neo4j-embedded/embedded_database.rb
|
@@ -331,3 +330,4 @@ signing_key:
|
|
331
330
|
specification_version: 4
|
332
331
|
summary: A basic library to work with the graph database Neo4j.
|
333
332
|
test_files: []
|
333
|
+
has_rdoc: true
|