officer 0.8.5 → 0.8.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.5
1
+ 0.8.6
@@ -158,7 +158,7 @@ module Officer
158
158
 
159
159
  def my_locks connection
160
160
  my_locks = @connections[connection] ? @connections[connection].to_a : []
161
- connection.locks my_locks
161
+ connection.my_locks my_locks
162
162
  end
163
163
  end
164
164
 
data/officer.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{officer}
8
- s.version = "0.8.5"
8
+ s.version = "0.8.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Chad Remesch"]
@@ -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"=>"locks"})
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"=>"locks"})
45
+ @client.my_locks.should eq({"value"=>["testlock1", "testlock2"], "result"=>"my_locks"})
46
46
  @client.reset
47
- @client.my_locks.should eq({"value"=>[], "result"=>"locks"})
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"=>"locks"})
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.my_locks.should eq({"value"=>[], "result"=>"locks"})
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"=>"locks"})
162
+ @client.my_locks.should eq({"value"=>["testlock"], "result"=>"my_locks"})
162
163
  @client.unlock("testlock")
163
- @client.my_locks.should eq({"value"=>[], "result"=>"locks"})
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: 53
4
+ hash: 51
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 5
10
- version: 0.8.5
9
+ - 6
10
+ version: 0.8.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chad Remesch