redic 1.5.2 → 1.5.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
  SHA256:
3
- metadata.gz: f6e40f39f9e3b3856efa6b485e4d6b15f11756e1f4b21d5871ad17325ec3725d
4
- data.tar.gz: 444278b49a7af254e319102a82b7dedfb232056aae792fb929ac4f159e2d534d
3
+ metadata.gz: 20df3a6ea40af054292b36b4fd62ab86efe2d254b7bb11aac5a21554d247789a
4
+ data.tar.gz: f51c954ad201e6fbb6f32576e1209288794c3394205b1f43f1418847da821e88
5
5
  SHA512:
6
- metadata.gz: 79fb3629f83e0fe1d5a0dd27a4d95bf2949a691898b35e10b5e74bcfaeb7039cb3a18e05251c1e2bdf27346e537cb0040d254c4531247db34f3ce96f13ba54dd
7
- data.tar.gz: 0065a647b04d3575cf3715829d558ee772f663998f972e8bf55af7e1d58cbf97ac60b02d59c9658939318724835aa3f65fc24384a124fbdc69acec156892c5b2
6
+ metadata.gz: 52e6f4e217668081846033cbd75ab29ee865e5704bdbe0ceeef61c1907270c7ca718d35e628eed819c36eec334f25e65296a55c48f702dea6f005be9fe273c39
7
+ data.tar.gz: 69cae705f6104b723b4f6ba411cf71268d4cc36eb0bab0babb37d5b7a0b7aeed3cb865f1580914edd7971a19e98b54cf4f443aa24ceefa7374f2092af077eb26
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 1.5.3
2
+
3
+ - Fix compatibility with older Ruby versions.
4
+
1
5
  1.5.2
2
6
 
3
7
  - Prevent concurrent when connecting.
@@ -32,11 +32,13 @@ class Redic
32
32
 
33
33
  def connect
34
34
  @semaphore.synchronize do
35
- establish_connection unless connected?
36
- yield
37
- rescue Errno::ECONNRESET
38
- @connection = false
39
- retry
35
+ begin
36
+ establish_connection unless connected?
37
+ yield
38
+ rescue Errno::ECONNRESET
39
+ @connection = false
40
+ retry
41
+ end
40
42
  end
41
43
  end
42
44
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "redic"
5
- s.version = "1.5.2"
5
+ s.version = "1.5.3"
6
6
  s.summary = "Lightweight Redis Client"
7
7
  s.description = "Lightweight Redis Client"
8
8
  s.authors = ["Michel Martens", "Cyril David"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Martens
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-08-05 00:00:00.000000000 Z
12
+ date: 2019-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hiredis