zk 1.7.5 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/RELEASES.markdown +4 -0
- data/lib/zk/locker/locker_base.rb +7 -0
- data/lib/zk/version.rb +1 -1
- data/spec/zk/locker/locker_basic_spec.rb +7 -0
- metadata +6 -6
data/RELEASES.markdown
CHANGED
data/lib/zk/version.rb
CHANGED
@@ -32,6 +32,13 @@ describe 'ZK::Client#locker' do
|
|
32
32
|
@zk2.locker(@path_to_lock).lock.should be_false
|
33
33
|
end
|
34
34
|
|
35
|
+
it "should assert properly if lock is acquired" do
|
36
|
+
@zk.locker(@path_to_lock).assert.should be_false
|
37
|
+
l = @zk2.locker(@path_to_lock)
|
38
|
+
l.lock.should be_true
|
39
|
+
l.assert.should be_true
|
40
|
+
end
|
41
|
+
|
35
42
|
it "should be able to acquire the lock after the first one releases it" do
|
36
43
|
lock1 = @zk.locker(@path_to_lock)
|
37
44
|
lock2 = @zk2.locker(@path_to_lock)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 55
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 1.
|
8
|
+
- 8
|
9
|
+
- 0
|
10
|
+
version: 1.8.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jonathan D. Simms
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date:
|
19
|
+
date: 2013-02-19 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: zookeeper
|
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
187
|
requirements: []
|
188
188
|
|
189
189
|
rubyforge_project:
|
190
|
-
rubygems_version: 1.8.
|
190
|
+
rubygems_version: 1.8.25
|
191
191
|
signing_key:
|
192
192
|
specification_version: 3
|
193
193
|
summary: A high-level wrapper around the zookeeper driver
|