redis-sentinel2 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -94,7 +94,7 @@ class Redis::Client
94
94
  def call_with_readonly_protection(*args, &block)
95
95
  tries = 0
96
96
  call_without_readonly_protection(*args, &block)
97
- rescue Redis::CommandError => e
97
+ rescue RuntimeError, Redis::CommandError => e
98
98
  if e.message == "READONLY You can't write against a read only slave."
99
99
  reconnect
100
100
  retry if (tries += 1) < 4
@@ -1,5 +1,5 @@
1
1
  class Redis
2
2
  module Sentinel
3
- VERSION = "1.3.0"
3
+ VERSION = "1.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-sentinel2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 0
10
- version: 1.3.0
9
+ - 1
10
+ version: 1.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Richard Huang
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-09-10 00:00:00 Z
18
+ date: 2013-09-11 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: redis