sensu-redis 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sensu/redis/client.rb +2 -2
- data/lib/sensu/redis/sentinel.rb +1 -1
- data/sensu-redis.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 825b3c984e3620a157dbbee915ee266ac6805fe8
|
4
|
+
data.tar.gz: 6cc23b5f6da362239e4207bfb12da9b729321999
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bb91a8bc6f4eb479806e54315e611511974929b7e86f18dcdeb376f6cbe258f57d142c19b5f97c72a343d04d00288fe142c209c174d98559a448ecbece6a30b
|
7
|
+
data.tar.gz: ce2ac0f69ada4979fb4328e14d2ff709bdd9e27987284a2e9f6b63d39a3afc8576ffaaa16e1f3d06ca9ccd060f0ffdc5ff0bdf3787caeb30b661f4e47a90a9f5
|
data/lib/sensu/redis/client.rb
CHANGED
@@ -16,7 +16,7 @@ module Sensu
|
|
16
16
|
def initialize(options={})
|
17
17
|
create_command_methods!
|
18
18
|
@host = options[:host] || "127.0.0.1"
|
19
|
-
@port = options[:port] || 6379
|
19
|
+
@port = (options[:port] || 6379).to_i
|
20
20
|
@db = options[:db]
|
21
21
|
@password = options[:password]
|
22
22
|
@auto_reconnect = options.fetch(:auto_reconnect, true)
|
@@ -102,7 +102,7 @@ module Sensu
|
|
102
102
|
if ip_address.nil?
|
103
103
|
reconnect!
|
104
104
|
else
|
105
|
-
reconnect(ip_address, port)
|
105
|
+
reconnect(ip_address, port.to_i)
|
106
106
|
end
|
107
107
|
end
|
108
108
|
end
|
data/lib/sensu/redis/sentinel.rb
CHANGED
@@ -25,7 +25,7 @@ module Sensu
|
|
25
25
|
def connect_to_sentinel(options={})
|
26
26
|
options[:host] ||= "127.0.0.1"
|
27
27
|
options[:port] ||= 26379
|
28
|
-
EM.connect(options[:host], options[:port], Client, options)
|
28
|
+
EM.connect(options[:host], options[:port].to_i, Client, options)
|
29
29
|
end
|
30
30
|
|
31
31
|
# Connect to all Sentinel instances. This method defaults the
|
data/sensu-redis.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Porter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eventmachine
|