robust-redis-lock 1.1.1 → 1.1.2

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: 5c4509f9f010da5f920ec6d472145a9ed29f1f8a
4
- data.tar.gz: fff06187c86fe1a9bbf2b1c399f43d5c42ef9d87
3
+ metadata.gz: 8b51378548b60754d94665f9a037904b887b59e4
4
+ data.tar.gz: 198d0fbd13843a382760e361172ee7f5eb33f378
5
5
  SHA512:
6
- metadata.gz: c414dff6ab299799b17c1d3addb544e3c265ff013c70b3edbb2e73bc0ba4ae5fa2307a412c72a0535325c9ce597592b78be3a28ed2e0ccd01acbd523532e5bea
7
- data.tar.gz: c9afd9f8ed1a825105b95b1022413a4c21cbf0bf37a74832e5017005c931bb700cc9717e0ad1fff11584d10432c43d309af812b3adee649b4118aadd2d1a1c2c
6
+ metadata.gz: adc3aa9d2ecf2bf7cc426d053a51cae9092e3d3e3634833974951a9fd9e5c9d58b2a6aaa4679f0cfedc0df7fec8d5cc73ee01ffe72d839c64bddcfcf59c43a5b
7
+ data.tar.gz: e42dc101cc32ecd4a54523416ceb1fcdb8a37e7e2a3b370dfe80bb5ef32d1d984a037145b19defbd3b2bf78ac10eb9a6d95100068aab4833799b4f6f51377212
data/lib/redis-lock.rb CHANGED
@@ -62,13 +62,11 @@ class Redis::Lock
62
62
 
63
63
  def synchronize(&block)
64
64
  lock
65
- begin
66
- block.call
67
- ensure
68
- try_unlock
69
- end
65
+ block.call
70
66
  rescue Recovered
71
67
  block.call
68
+ ensure
69
+ try_unlock
72
70
  end
73
71
 
74
72
  def lock(options={})
@@ -1,5 +1,5 @@
1
1
  class Redis
2
2
  class Lock
3
- VERSION = '1.1.1'
3
+ VERSION = '1.1.2'
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: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kareem Kouddous
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-12 00:00:00.000000000 Z
11
+ date: 2015-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
@@ -54,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
54
  version: '0'
55
55
  requirements: []
56
56
  rubyforge_project:
57
- rubygems_version: 2.2.2
57
+ rubygems_version: 2.4.6
58
58
  signing_key:
59
59
  specification_version: 4
60
60
  summary: Robust redis lock