seamusabshere-redlock 1.0.2 → 1.0.3

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: 3c0063b411459eb636e0c6babf77c6f18e8f98d3
4
- data.tar.gz: 0d59f5bb456803d41a4270210f1da4d5a9f96b55
3
+ metadata.gz: 28e03a101def80d2e4aa80a5147ac3e3017984c8
4
+ data.tar.gz: 51115877ef151e5717b1b4849d883ca9cc7032cc
5
5
  SHA512:
6
- metadata.gz: 8c9793d807ee82c229a264467975bd406ed95027a7d5c38b530bf19866a7673e1a16de840c05bbb5cac27f2cff9fb7c5ebc8d48b77ab80cdc8070a7055f10923
7
- data.tar.gz: e9e993e0d69f3dfbd6e2b7047255087d9c241b88c1d1c5384da0269090625f9e5cb1872fd56687a7b05c2532e638ab06265db600f26b8f251240b9c865e86043
6
+ metadata.gz: 97cb55a4644e9a0b283775cd426474e805871575adcd49413a8026506cb3a4915c4b8d6cde700d41b240c217a72d5edb479837eeffc2048be20a66cd92195df5
7
+ data.tar.gz: 92822b4b1068e94f219a234da2473ccbf0c0960578b308e52a44ad28786fcc51f5e06d4195a86eb19224a539d00944327a6d1a147ebbadf774d01c99cdd1a8de
@@ -26,9 +26,11 @@ module Redlock
26
26
 
27
27
  class RedisInstance
28
28
  def load_scripts
29
- if @redis.respond_to?(:script)
29
+ begin
30
30
  @unlock_script_sha = @redis.script(:load, UNLOCK_SCRIPT)
31
31
  @lock_script_sha = @redis.script(:load, LOCK_SCRIPT)
32
+ rescue Redis::CommandError
33
+ # ignore
32
34
  end
33
35
  end
34
36
  end
@@ -1,3 +1,3 @@
1
1
  module Redlock
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seamusabshere-redlock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Moreira