lockable 0.0.1 → 0.0.2
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/lib/lockable.rb +2 -2
- data/lib/lockable/version.rb +1 -1
- data/spec/lockable_spec.rb +3 -3
- metadata +4 -4
data/lib/lockable.rb
CHANGED
data/lib/lockable/version.rb
CHANGED
data/spec/lockable_spec.rb
CHANGED
@@ -79,19 +79,19 @@ describe Lockable do
|
|
79
79
|
end
|
80
80
|
|
81
81
|
it 'is not locked anymore' do
|
82
|
-
expect { subject.unlock! }.to change{
|
82
|
+
expect { subject.unlock!('toto') }.to change{
|
83
83
|
subject.locked?
|
84
84
|
}.from(true).to(false)
|
85
85
|
end
|
86
86
|
|
87
87
|
it 'does not have a lock_holder anymore' do
|
88
|
-
expect { subject.unlock! }.to change{
|
88
|
+
expect { subject.unlock!('toto') }.to change{
|
89
89
|
subject.lock_holder
|
90
90
|
}.from('toto').to(nil)
|
91
91
|
end
|
92
92
|
|
93
93
|
it 'does not have a lock_timeout anymore' do
|
94
|
-
expect { subject.unlock! }.to change{
|
94
|
+
expect { subject.unlock!('toto') }.to change{
|
95
95
|
subject.lock_timeout
|
96
96
|
}.to(-1)
|
97
97
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lockable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-11-
|
12
|
+
date: 2013-11-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
90
|
version: '0'
|
91
91
|
segments:
|
92
92
|
- 0
|
93
|
-
hash:
|
93
|
+
hash: -210116951786730610
|
94
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
95
|
none: false
|
96
96
|
requirements:
|
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
99
|
version: '0'
|
100
100
|
segments:
|
101
101
|
- 0
|
102
|
-
hash:
|
102
|
+
hash: -210116951786730610
|
103
103
|
requirements: []
|
104
104
|
rubyforge_project:
|
105
105
|
rubygems_version: 1.8.25
|