sensu-redis 2.1.0 → 2.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 943d104005cbb1b8424389ff4b296aff1eef0479
4
- data.tar.gz: f1e7cb7e03104cc4f24c5f5eeb4fea4e272b57fd
3
+ metadata.gz: 825b3c984e3620a157dbbee915ee266ac6805fe8
4
+ data.tar.gz: 6cc23b5f6da362239e4207bfb12da9b729321999
5
5
  SHA512:
6
- metadata.gz: e34128ed6b726437f697b1e91799071c04267ccd4e7b5f5157ac14845133aedefcba10578b43ff7f37f90fec6a858ebe4f47784931d54cd1252a0a57c82171d8
7
- data.tar.gz: c92241f1594511f74031827131548f2414c2b067ab983b1f8d126a7dbf5e981d5817785072f2c8500b63bfba4ec5a63770d1620cc8379b0934d2d82bbd7a93f6
6
+ metadata.gz: 6bb91a8bc6f4eb479806e54315e611511974929b7e86f18dcdeb376f6cbe258f57d142c19b5f97c72a343d04d00288fe142c209c174d98559a448ecbece6a30b
7
+ data.tar.gz: ce2ac0f69ada4979fb4328e14d2ff709bdd9e27987284a2e9f6b63d39a3afc8576ffaaa16e1f3d06ca9ccd060f0ffdc5ff0bdf3787caeb30b661f4e47a90a9f5
@@ -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
@@ -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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "sensu-redis"
5
- spec.version = "2.1.0"
5
+ spec.version = "2.1.1"
6
6
  spec.authors = ["Sean Porter"]
7
7
  spec.email = ["portertech@gmail.com"]
8
8
  spec.summary = "The Sensu Redis client library"
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.0
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: 2016-11-18 00:00:00.000000000 Z
11
+ date: 2017-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine