redis_failover 0.8.8 → 0.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Changes.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.8.9
2
+ -----------
3
+ - Handle errors raised by redis 3.x client (tsilen)
4
+
1
5
  0.8.8
2
6
  -----------
3
7
  - Use a stack for handling nested blocks in RedisFailover::Client (inspired by connection_pool gem)
@@ -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) }.freeze
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 = [
@@ -1,3 +1,3 @@
1
1
  module RedisFailover
2
- VERSION = '0.8.8'
2
+ VERSION = '0.8.9'
3
3
  end
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.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-11 00:00:00.000000000 Z
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: 1682617654026329056
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: 1682617654026329056
195
+ hash: -1059043847699226647
196
196
  requirements: []
197
197
  rubyforge_project:
198
198
  rubygems_version: 1.8.23