redis_failover 0.9.7.1 → 0.9.7.2

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.9.7.2
2
+ -----------
3
+ - Add support for Redis#client's location method. Fixes a compatibility issue with redis_failover and Sidekiq.
4
+
1
5
  0.9.7.1
2
6
  -----------
3
7
  - Stop repeated attempts to acquire exclusive lock in Node Manager (#36)
@@ -79,6 +79,14 @@ module RedisFailover
79
79
  self
80
80
  end
81
81
 
82
+ # Delegates to the underlying Redis client to fetch the location.
83
+ # This method always returns the location of the master.
84
+ #
85
+ # @return [String] the redis location
86
+ def location
87
+ dispatch(:client).location
88
+ end
89
+
82
90
  # Specifies a callback to invoke when the current redis node list changes.
83
91
  #
84
92
  # @param [Proc] a callback with current master and slaves as arguments
@@ -1,3 +1,3 @@
1
1
  module RedisFailover
2
- VERSION = '0.9.7.1'
2
+ VERSION = '0.9.7.2'
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.9.7.1
4
+ version: 0.9.7.2
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-10-03 00:00:00.000000000 Z
12
+ date: 2012-10-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redis
@@ -189,7 +189,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
189
189
  version: '0'
190
190
  segments:
191
191
  - 0
192
- hash: 4040102937277338807
192
+ hash: 2936148649522258695
193
193
  required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  none: false
195
195
  requirements:
@@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
198
  version: '0'
199
199
  segments:
200
200
  - 0
201
- hash: 4040102937277338807
201
+ hash: 2936148649522258695
202
202
  requirements: []
203
203
  rubyforge_project:
204
204
  rubygems_version: 1.8.23