redis_failover 0.8.8 → 0.8.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Changes.md +4 -0
- data/lib/redis_failover/util.rb +6 -2
- data/lib/redis_failover/version.rb +1 -1
- metadata +4 -4
data/Changes.md
CHANGED
data/lib/redis_failover/util.rb
CHANGED
@@ -8,8 +8,12 @@ module RedisFailover
|
|
8
8
|
# Default node in ZK that contains the current list of available redis nodes.
|
9
9
|
DEFAULT_ZNODE_PATH = '/redis_failover_nodes'.freeze
|
10
10
|
|
11
|
-
# Connectivity errors that the redis client raises.
|
12
|
-
REDIS_ERRORS = Errno.constants.map { |c| Errno.const_get(c) }
|
11
|
+
# Connectivity errors that the redis (<3.x) client raises.
|
12
|
+
REDIS_ERRORS = Errno.constants.map { |c| Errno.const_get(c) }
|
13
|
+
|
14
|
+
# Connectivity errors that the redis (>3.x) client raises.
|
15
|
+
REDIS_ERRORS << Redis::BaseError if Redis.const_defined?("BaseError")
|
16
|
+
REDIS_ERRORS.freeze
|
13
17
|
|
14
18
|
# Full set of errors related to connectivity.
|
15
19
|
CONNECTIVITY_ERRORS = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis_failover
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redis
|
@@ -183,7 +183,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
183
183
|
version: '0'
|
184
184
|
segments:
|
185
185
|
- 0
|
186
|
-
hash:
|
186
|
+
hash: -1059043847699226647
|
187
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
188
|
none: false
|
189
189
|
requirements:
|
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
192
|
version: '0'
|
193
193
|
segments:
|
194
194
|
- 0
|
195
|
-
hash:
|
195
|
+
hash: -1059043847699226647
|
196
196
|
requirements: []
|
197
197
|
rubyforge_project:
|
198
198
|
rubygems_version: 1.8.23
|