officer 0.8.5 → 0.8.6
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.
- data/VERSION +1 -1
- data/lib/officer/lock_store.rb +1 -1
- data/officer.gemspec +1 -1
- data/spec/integration/officer_spec.rb +8 -7
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.6
|
data/lib/officer/lock_store.rb
CHANGED
data/officer.gemspec
CHANGED
@@ -24,7 +24,7 @@ describe Officer do
|
|
24
24
|
|
25
25
|
it "should allow a client to request and release a lock using block syntax" do
|
26
26
|
@client.with_lock("testlock") do
|
27
|
-
@client.my_locks.should eq({"value"=>["testlock"], "result"=>"
|
27
|
+
@client.my_locks.should eq({"value"=>["testlock"], "result"=>"my_locks"})
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
@@ -42,9 +42,9 @@ describe Officer do
|
|
42
42
|
it "should allow a client to reset all of its locks (release them all)" do
|
43
43
|
@client.lock("testlock1")
|
44
44
|
@client.lock("testlock2")
|
45
|
-
@client.my_locks.should eq({"value"=>["testlock1", "testlock2"], "result"=>"
|
45
|
+
@client.my_locks.should eq({"value"=>["testlock1", "testlock2"], "result"=>"my_locks"})
|
46
46
|
@client.reset
|
47
|
-
@client.my_locks.should eq({"value"=>[], "result"=>"
|
47
|
+
@client.my_locks.should eq({"value"=>[], "result"=>"my_locks"})
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
@@ -62,7 +62,7 @@ describe Officer do
|
|
62
62
|
original_socket = @client.instance_variable_get("@socket")
|
63
63
|
@client.reconnect
|
64
64
|
@client.instance_variable_get("@socket").should_not eq(original_socket)
|
65
|
-
@client.my_locks.should eq({"value"=>[], "result"=>"
|
65
|
+
@client.my_locks.should eq({"value"=>[], "result"=>"my_locks"})
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
@@ -141,7 +141,8 @@ describe Officer do
|
|
141
141
|
end
|
142
142
|
|
143
143
|
it "should allow a client to request its locks" do
|
144
|
-
@client.
|
144
|
+
@client.lock("testlock")
|
145
|
+
@client.my_locks.should eq({"value"=>["testlock"], "result"=>"my_locks"})
|
145
146
|
end
|
146
147
|
end
|
147
148
|
|
@@ -158,9 +159,9 @@ describe Officer do
|
|
158
159
|
|
159
160
|
it "should allow a client to request and release a lock" do
|
160
161
|
@client.lock("testlock").should eq({"result" => "acquired", "name" => "testlock"})
|
161
|
-
@client.my_locks.should eq({"value"=>["testlock"], "result"=>"
|
162
|
+
@client.my_locks.should eq({"value"=>["testlock"], "result"=>"my_locks"})
|
162
163
|
@client.unlock("testlock")
|
163
|
-
@client.my_locks.should eq({"value"=>[], "result"=>"
|
164
|
+
@client.my_locks.should eq({"value"=>[], "result"=>"my_locks"})
|
164
165
|
end
|
165
166
|
end
|
166
167
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: officer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 51
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 0.8.
|
9
|
+
- 6
|
10
|
+
version: 0.8.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chad Remesch
|