zookeeper 1.2.8-java → 1.2.9-java

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.
@@ -78,9 +78,11 @@ module Zookeeper
78
78
 
79
79
  attr_accessor :meth, :block, :rval
80
80
 
81
+ attr_reader :args
82
+
81
83
  def initialize(meth, *args)
82
84
  @meth = meth
83
- @args = args
85
+ @args = args.freeze
84
86
  @mutex = Monitor.new
85
87
  @cond = @mutex.new_cond
86
88
  @rval = nil
@@ -110,7 +112,7 @@ module Zookeeper
110
112
  end
111
113
 
112
114
  if (now > time_to_stop) and !@rval and !@error
113
- raise Exceptions::ContinuationTimeoutError, "response for meth: #{meth.inspect}, args: #{args.inspect}, not received within #{OPERATION_TIMEOUT} seconds"
115
+ raise Exceptions::ContinuationTimeoutError, "response for meth: #{meth.inspect}, args: #{@args.inspect}, not received within #{OPERATION_TIMEOUT} seconds"
114
116
  end
115
117
 
116
118
  case @error
@@ -1,4 +1,4 @@
1
1
  module Zookeeper
2
- VERSION = '1.2.8'
2
+ VERSION = '1.2.9'
3
3
  DRIVER_VERSION = '3.3.5'
4
4
  end
@@ -26,9 +26,11 @@ describe 'Zookeeper chrooted' do
26
26
 
27
27
  describe 'create' do
28
28
  before do
29
- with_open_zk do |z|
30
- rm_rf(z, chroot_path)
31
- end
29
+ with_open_zk { |z| rm_rf(z, chroot_path) }
30
+ end
31
+
32
+ after do
33
+ with_open_zk { |z| rm_rf(z, chroot_path) }
32
34
  end
33
35
 
34
36
  it %[should successfully create the path] do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zookeeper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 8
10
- version: 1.2.8
9
+ - 9
10
+ version: 1.2.9
11
11
  platform: java
12
12
  authors:
13
13
  - Phillip Pearson
@@ -20,7 +20,7 @@ autorequire:
20
20
  bindir: bin
21
21
  cert_chain: []
22
22
 
23
- date: 2012-06-05 00:00:00 Z
23
+ date: 2012-06-11 00:00:00 Z
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: backports