neo4j-core 7.0.0.alpha.7 → 7.0.0.alpha.8

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: 93ae20dabf10904c1f908c4112bc12a53cc5ac2a
4
- data.tar.gz: 9e37cbb29aea85dd6f200c497c22bbf57779be46
3
+ metadata.gz: 0bc5b959f06c5ed7ac484e64fa33080efeded582
4
+ data.tar.gz: b755bce4d46ae8cc3325bf2f06764e05cae4bcc6
5
5
  SHA512:
6
- metadata.gz: f85e410f549a2c1cd8cf01c2077749f0edd05442eb64bf179dbc319cd9dc2b549358060619b369f360827cf9484443bd3168aeea4741e335c765c4b010997f64
7
- data.tar.gz: 5bd7e2eb99a8232ed89304d8244e4852559871cae0c18a6d88608d9546a6c6b077d093930e9d2a176d5d294ce63128b8fe8e6b5da1df5d2656aa7829c9f80984
6
+ metadata.gz: 9e36bb43eff21409124d394235c1c1209a33b4d2fa2978ff7e3d7e09c603b1b67958927cf9555c1d82d12f9962eff327251bbb46f3c467aecbd9efae74605f14
7
+ data.tar.gz: 82cdc684b693eb423e1c4de77871d54965bcbc3bd998158c423c1ee9fd89b9c5e094591f9aeb117d973da5039328a8a3d6f56fa7b3b02f2b569c413f3fc378fa
data/Gemfile CHANGED
@@ -11,6 +11,7 @@ group 'development' do
11
11
  gem 'guard-rspec', require: false if RUBY_PLATFORM != 'java'
12
12
  if RUBY_VERSION.to_f < 2.0
13
13
  gem 'overcommit', '< 0.35.0'
14
+ gem 'term-ansicolor', '< 1.4'
14
15
  else
15
16
  gem 'overcommit'
16
17
  end
@@ -44,7 +44,8 @@ module Neo4j
44
44
 
45
45
  if @socket.ready?
46
46
  debug_remaining_buffer
47
- fail 'Making query, but expected there to be no buffer remaining!'
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
- gem, version = if defined?(::Neo4j::ActiveNode)
57
- ['neo4j', ::Neo4j::VERSION]
58
- else
59
- ['neo4j-core', ::Neo4j::Core::VERSION]
60
- end
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 = "#{gem}-gem/#{version} (https://github.com/neo4jrb/#{gem})"
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
- while (messages = flush_messages_proc.call)[0].type != :success
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, "Inalid wrap_level: #{@wrap_level.inspect}"
97
+ fail ArgumentError, "Invalid wrap_level: #{@wrap_level.inspect}"
92
98
  end
93
99
  end
94
100
 
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module Core
3
- VERSION = '7.0.0.alpha.7'
3
+ VERSION = '7.0.0.alpha.8'
4
4
  end
5
5
  end
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.7
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-09-14 00:00:00.000000000 Z
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
@@ -1,9 +0,0 @@
1
- module Neo4j
2
- module Core
3
- <<<<<<< HEAD
4
- VERSION = '7.0.0.alpha.6'
5
- =======
6
- VERSION = '6.1.5'
7
- >>>>>>> 6.1.x
8
- end
9
- end