robust-redis-lock 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e332c20c041bdebe126c785004c3443a72e97a5f
4
- data.tar.gz: 913353411073f33d4c9603c95bf5e222d13ce532
3
+ metadata.gz: 54f86e888f983a8c1edf31ef33f8c1f6aba3115c
4
+ data.tar.gz: 3b1e4ba2965762f635971c099003dff10eceff72
5
5
  SHA512:
6
- metadata.gz: 45ccdd616b790ccd941a8ee7ea7da08ae91da73778b4ff9a3fe20d7b0542c3fa3ae2b02d487f748c94abb10ef1ea239ddfa19828be9dcac5aa6b91255b571797
7
- data.tar.gz: 89e2496e59d7801ea138796a22d3294a51466b480ee969851f922e143abaeec8959d987c2424a0b2db6c92152f3103698e91afdb26a73471f4da6423db7fb383
6
+ metadata.gz: 37581c50322701227f16509c189854bda392cd3da9b03df6d33b44c0b9384d4c1c824038b4ad0b5717abcd53167257083948f3aeea71b6c2e82873dbc01167e9
7
+ data.tar.gz: 139b0e46435e89baabc487fe6747dc1d24dd415fad58e58d28276ee4391667d10d05f03b594a5c83b716ba2ff62925bfcf940ccfd4be930491a6f273256fe2d2
@@ -38,7 +38,7 @@ class Redis::Lock
38
38
  sleep @sleep.to_f
39
39
  end
40
40
 
41
- yield if block_given?
41
+ yield if block_given? && result
42
42
 
43
43
  result
44
44
  ensure
@@ -1,5 +1,5 @@
1
1
  class Redis
2
2
  class Lock
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robust-redis-lock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kareem Kouddous
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-07 00:00:00.000000000 Z
11
+ date: 2014-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
@@ -59,3 +59,4 @@ signing_key:
59
59
  specification_version: 4
60
60
  summary: Robust redis lock
61
61
  test_files: []
62
+ has_rdoc: false