zk 1.9.3 → 1.9.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -23,9 +23,9 @@ group :docs do
23
23
  end
24
24
  end
25
25
 
26
- platform :mri_19 do
27
- gem 'simplecov', :group => :coverage, :require => false
28
- end
26
+ # platform :mri_19 do
27
+ # gem 'simplecov', :group => :coverage, :require => false
28
+ # end
29
29
 
30
30
  group :development do
31
31
  gem 'guard', :require => false
@@ -1,5 +1,13 @@
1
1
  This file notes feature differences and bugfixes contained between releases.
2
2
 
3
+ ### v1.9.4 ###
4
+
5
+ * Forward options to underlying connection #69 (h/t: avalanche123)
6
+ * Don't check connection state in Locker#assert! - leads to better retry behavior
7
+ * allow specifying session-id
8
+ * upgrade logging gem dependency
9
+
10
+
3
11
  ### v1.9.3 ###
4
12
 
5
13
  * Fix deadlocks between watchers and reconnecting
@@ -180,7 +180,7 @@ module ZK
180
180
 
181
181
  ObjectSpace.define_finalizer(self, self.class.finalizer(@fork_subs))
182
182
 
183
- connect if opts.fetch(:connect, true)
183
+ connect(opts) if opts.fetch(:connect, true)
184
184
  end
185
185
 
186
186
  # ensure that the initializer and the reopen code set up the mutexes
@@ -626,7 +626,7 @@ module ZK
626
626
  # create the connection.
627
627
  @last_cnx_state = Zookeeper::ZOO_CONNECTING_STATE
628
628
 
629
- @cnx = create_connection(@host, timeout, @event_handler.get_default_watcher_block)
629
+ @cnx = create_connection(@host, timeout, @event_handler.get_default_watcher_block, opts)
630
630
 
631
631
  spawn_reconnect_thread
632
632
 
@@ -277,7 +277,6 @@ module ZK
277
277
  def assert!
278
278
  @mutex.synchronize do
279
279
  raise LockAssertionFailedError, "have not obtained the lock yet" unless locked?
280
- raise LockAssertionFailedError, "not connected" unless zk.connected?
281
280
  raise LockAssertionFailedError, "lock_path was #{lock_path.inspect}" unless lock_path
282
281
  raise LockAssertionFailedError, "the lock path #{lock_path} did not exist!" unless zk.exists?(lock_path)
283
282
  raise LockAssertionFailedError, "the parent node was replaced!" unless root_lock_path_same?
@@ -1,3 +1,3 @@
1
1
  module ZK
2
- VERSION = "1.9.3"
2
+ VERSION = "1.9.4"
3
3
  end
data/zk.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.description = s.summary + "\n"
14
14
 
15
15
  s.add_runtime_dependency 'zookeeper', '~> 1.4.0'
16
- s.add_runtime_dependency 'logging', '~> 1.7.2'
16
+ s.add_runtime_dependency 'logging', '~> 1.8.2'
17
17
 
18
18
  s.files = `git ls-files`.split("\n")
19
19
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.3
4
+ version: 1.9.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-01-16 00:00:00.000000000 Z
13
+ date: 2014-03-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: zookeeper
@@ -35,7 +35,7 @@ dependencies:
35
35
  requirements:
36
36
  - - ~>
37
37
  - !ruby/object:Gem::Version
38
- version: 1.7.2
38
+ version: 1.8.2
39
39
  type: :runtime
40
40
  prerelease: false
41
41
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - ~>
45
45
  - !ruby/object:Gem::Version
46
- version: 1.7.2
46
+ version: 1.8.2
47
47
  description: ! 'A high-level wrapper around the zookeeper driver
48
48
 
49
49
  '
@@ -165,12 +165,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  - - ! '>='
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
+ segments:
169
+ - 0
170
+ hash: 2576608496404103382
168
171
  required_rubygems_version: !ruby/object:Gem::Requirement
169
172
  none: false
170
173
  requirements:
171
174
  - - ! '>='
172
175
  - !ruby/object:Gem::Version
173
176
  version: '0'
177
+ segments:
178
+ - 0
179
+ hash: 2576608496404103382
174
180
  requirements: []
175
181
  rubyforge_project:
176
182
  rubygems_version: 1.8.25
@@ -222,3 +228,4 @@ test_files:
222
228
  - spec/zk/threadpool_spec.rb
223
229
  - spec/zk/watch_spec.rb
224
230
  - spec/zk/zookeeper_spec.rb
231
+ has_rdoc: