neo4j 8.0.2 → 8.0.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: 6e1d3abc721f38751593c2ce40d83c5cf5a953cc
4
- data.tar.gz: 2b30d8aff00b652f6d60c60bb82bc266fb90ddd4
3
+ metadata.gz: 2141931cc532e8ab184ede7daf3752b11b3ec4ac
4
+ data.tar.gz: a3fcb4dfd271eb9a284fdc3d71d5c179f4842692
5
5
  SHA512:
6
- metadata.gz: 5089b2202d09635187df075a91e924d538a32eeae690cc5c0aa70098c3dc30545d58b5ae2f37da5e2477addc8832371b1d33bb65cb98615c44e73451cbcb7642
7
- data.tar.gz: 3141210b4558049eaf6a90680aa56abe9f190c77ff5c32c5e292fd8efca51632c29b469093708eb074fbb6f93f08745f382d9d7fcc2a60f231ab71cc10926591
6
+ metadata.gz: 82708b3e90a00503e03354e9726f4115f28f879f4332d90c49d14e266df86104d04d571e536ed5e5f223516536255f81efdc7282cf29e8508b8b9bc083cfb3dd
7
+ data.tar.gz: cb6a87cab1f32cd22cccd0f4b63c1461a2f3809ef0b134604cf78291d882c0451b3b74099610eebe8e8ec54e0cece04ed963e90c203a515e883d10a9636bcbd7
@@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
3
3
  This file should follow the standards specified on [http://keepachangelog.com/]
4
4
  This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## [8.0.3] 2016-01-03
7
+
8
+ ### Fixed
9
+
10
+ - Fixed/refactored `wait_for_connection`
11
+
6
12
  ## [8.0.2] 2016-12-22
7
13
 
8
14
  ### Fixed
@@ -10,7 +10,7 @@ module Neo4j
10
10
  def open_neo4j_session(type, url_or_path, wait_for_connection = false, options = {})
11
11
  enable_unlimited_strength_crypto! if java_platform? && session_type_is_embedded?(type)
12
12
 
13
- adaptor = wait_for_value(wait_for_connection) do
13
+ adaptor = wait_for_value(wait_for_connection, Neo4j::Core::CypherSession::ConnectionFailedError) do
14
14
  cypher_session_adaptor(type, url_or_path, options.merge(wrap_level: :proc))
15
15
  end
16
16
 
@@ -51,16 +51,16 @@ module Neo4j
51
51
  RUBY_PLATFORM =~ /java/
52
52
  end
53
53
 
54
- def wait_for_value(wait)
55
- session = nil
54
+ def wait_for_value(wait, exception_class)
55
+ value = nil
56
56
  Timeout.timeout(60) do
57
- until session
57
+ until value
58
58
  begin
59
- if session = yield
59
+ if value = yield
60
60
  puts
61
- return session
61
+ return value
62
62
  end
63
- rescue Neo4j::Core::CypherSession::ConnectionFailedError
63
+ rescue exception_class => e
64
64
  raise e if !wait
65
65
 
66
66
  putc '.'
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '8.0.2'
2
+ VERSION = '8.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.2
4
+ version: 8.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Ronge, Brian Underwood, Chris Grigg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-23 00:00:00.000000000 Z
11
+ date: 2017-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter