robust-redis-lock 1.3.0 → 1.3.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: 8da8da8a1f759bf85402feeb3985aee0fdf917c6
4
- data.tar.gz: 3c69f1a649c2d26b069db228980e0427bf8574dd
3
+ metadata.gz: 4532c60dbdd9dbda0494d291ec47276dad9c8463
4
+ data.tar.gz: ff8bad187e8116243a3de62c4d8aedde7fc8b757
5
5
  SHA512:
6
- metadata.gz: 2235d3e0b9658712cd1a8ca17fc697f0ed7257fd3a70d5710183984a6850d213fb67b8e988946788f495a3c2cdf77b034e2757ec5f993dbdc1355d26eda3ea16
7
- data.tar.gz: f9c0d7ee0acd79c40d10185a78fdcad8fa1531090202c79b2f6070a9a6333259802cc41d664fa3603a3bd7829741318a8d952eda5087c2b3b2097c3083fea5a1
6
+ metadata.gz: 6ad8f13716f009d9dfe3a50bfdb9e26f24bca385392c5c2b70a7013abf5137c4832f284c6ec42c138b94928039b5b6c702db3f7950f4b867e2e8f2b0b319dad1
7
+ data.tar.gz: 45561ebe6be8bafc0bcbed43b1da63b0f9f118b5da02d72d8abb5d01bda13258938f7eaf7ae09ca410017d6879cd3a188a76fea50ff9b15c4108cc3ae91ff3f5
@@ -163,7 +163,9 @@ class Redis::Lock
163
163
  return false
164
164
  end
165
165
  LUA
166
- !!@@unlock_script.eval(@redis, :keys => [namespaced_key, @key_group_key], :argv => [@key, @token])
166
+ !!@@unlock_script.eval(@redis, :keys => [namespaced_key, @key_group_key], :argv => [@key, @token]).tap do
167
+ @token = nil
168
+ end
167
169
  end
168
170
 
169
171
  def extend
@@ -1,5 +1,5 @@
1
1
  class Redis
2
2
  class Lock
3
- VERSION = '1.3.0'
3
+ VERSION = '1.3.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robust-redis-lock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kareem Kouddous