sensu-redis 1.1.1 → 1.2.0
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 +3 -0
- 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: 923d0060306037ca4be19a53ec99a585101e1087
|
4
|
+
data.tar.gz: a187233068588aa08c67d638fc253f837db1221f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 364dbaca9fc14b281950364f12268f4cf774d06217ca4cc9d0c16e1daa04b4cdbc1d98d98abe078832166203196cc0251b0100062a742781b951e9813a6d7411
|
7
|
+
data.tar.gz: eec6516483759dd4e961fb8dfba2eb51075055fa6bb7cb5c77306e36bdd370f9c5d54b3550465980522747d4c21cf28df40ce4e7c10fd23435c9f8405553aede
|
data/lib/sensu/redis/client.rb
CHANGED
@@ -63,12 +63,15 @@ module Sensu
|
|
63
63
|
end
|
64
64
|
|
65
65
|
# Create an error and pass it to the connection error callback.
|
66
|
+
# This method will trigger a reconnect if `@reconnect_on_error`
|
67
|
+
# is `true`.
|
66
68
|
#
|
67
69
|
# @param klass [Class]
|
68
70
|
# @param message [String]
|
69
71
|
def error(klass, message)
|
70
72
|
redis_error = klass.new(message)
|
71
73
|
@error_callback.call(redis_error)
|
74
|
+
reconnect! if @reconnect_on_error
|
72
75
|
end
|
73
76
|
|
74
77
|
# Determine if the connection is connected to Redis.
|
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: 1.
|
4
|
+
version: 1.2.0
|
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-03-
|
11
|
+
date: 2016-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eventmachine
|