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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9bca5a85f7d8c267577a420cca8f4cd8ff0f66e
4
- data.tar.gz: 66305aa802fbc00b3e53558842ee7ce2baff3033
3
+ metadata.gz: 923d0060306037ca4be19a53ec99a585101e1087
4
+ data.tar.gz: a187233068588aa08c67d638fc253f837db1221f
5
5
  SHA512:
6
- metadata.gz: c83272f2d97a366b32e093029cdd33653887a46bcd6659de54649e35b3d48f3d169a8ffaaf463a056a1da75779189dffbc93815383e984d2a7dc7e9713f71306
7
- data.tar.gz: 09a376a3dcfc706650854e1a25c398177719046c531be8ab5bf6494b972d32812b34abdda1bde0940735a69e16de42df2be04c695d2bb7453908700baaeaa255
6
+ metadata.gz: 364dbaca9fc14b281950364f12268f4cf774d06217ca4cc9d0c16e1daa04b4cdbc1d98d98abe078832166203196cc0251b0100062a742781b951e9813a6d7411
7
+ data.tar.gz: eec6516483759dd4e961fb8dfba2eb51075055fa6bb7cb5c77306e36bdd370f9c5d54b3550465980522747d4c21cf28df40ce4e7c10fd23435c9f8405553aede
@@ -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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "sensu-redis"
5
- spec.version = "1.1.1"
5
+ spec.version = "1.2.0"
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: 1.1.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-18 00:00:00.000000000 Z
11
+ date: 2016-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine