redis-sentinel 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/redis-sentinel/client.rb +1 -1
- data/lib/redis-sentinel/version.rb +1 -1
- data/redis-sentinel.gemspec +2 -2
- metadata +6 -4
@@ -40,7 +40,7 @@ class Redis::Client
|
|
40
40
|
begin
|
41
41
|
host, port = sentinel.sentinel("get-master-addr-by-name", @master_name)
|
42
42
|
if !host && !port
|
43
|
-
raise Redis::ConnectionError("No master named: #{@master_name}")
|
43
|
+
raise Redis::ConnectionError.new("No master named: #{@master_name}")
|
44
44
|
end
|
45
45
|
@options.merge!(host: host, port: port.to_i)
|
46
46
|
|
data/redis-sentinel.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.version = Redis::Sentinel::VERSION
|
9
9
|
gem.authors = ["Richard Huang"]
|
10
10
|
gem.email = ["flyerhzm@gmail.com"]
|
11
|
-
gem.description = %q{
|
12
|
-
gem.summary = %q{
|
11
|
+
gem.description = %q{another redis automatic master/slave failover solution for ruby by using built-in redis sentinel}
|
12
|
+
gem.summary = %q{another redis automatic master/slave failover solution for ruby by using built-in redis sentinel}
|
13
13
|
gem.homepage = "https://github.com/flyerhzm/redis-sentinel"
|
14
14
|
|
15
15
|
gem.files = `git ls-files`.split($/)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-sentinel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
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: 2013-01-
|
12
|
+
date: 2013-01-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redis
|
@@ -43,7 +43,8 @@ dependencies:
|
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
|
-
description:
|
46
|
+
description: another redis automatic master/slave failover solution for ruby by using
|
47
|
+
built-in redis sentinel
|
47
48
|
email:
|
48
49
|
- flyerhzm@gmail.com
|
49
50
|
executables: []
|
@@ -89,7 +90,8 @@ rubyforge_project:
|
|
89
90
|
rubygems_version: 1.8.24
|
90
91
|
signing_key:
|
91
92
|
specification_version: 3
|
92
|
-
summary:
|
93
|
+
summary: another redis automatic master/slave failover solution for ruby by using
|
94
|
+
built-in redis sentinel
|
93
95
|
test_files:
|
94
96
|
- spec/redis-sentinel/client_spec.rb
|
95
97
|
- spec/spec_helper.rb
|