sensu-redis 2.1.1 → 2.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: 825b3c984e3620a157dbbee915ee266ac6805fe8
4
- data.tar.gz: 6cc23b5f6da362239e4207bfb12da9b729321999
3
+ metadata.gz: 66b083536e8af2564d78087cd3b46315cbe87036
4
+ data.tar.gz: 19dc7e43f13397b5d363ba500c0db17ce013581b
5
5
  SHA512:
6
- metadata.gz: 6bb91a8bc6f4eb479806e54315e611511974929b7e86f18dcdeb376f6cbe258f57d142c19b5f97c72a343d04d00288fe142c209c174d98559a448ecbece6a30b
7
- data.tar.gz: ce2ac0f69ada4979fb4328e14d2ff709bdd9e27987284a2e9f6b63d39a3afc8576ffaaa16e1f3d06ca9ccd060f0ffdc5ff0bdf3787caeb30b661f4e47a90a9f5
6
+ metadata.gz: 28406b58c1aa16ae901677f29a58425df4254d81e979a89223d4c811a00eafd89745ae4d2fa13d8ca7151763965329cfccb94720d090a9c99e89f8f4ea4be75f
7
+ data.tar.gz: ee65a8136f1e98a7055a715b7e1935f07abb1df3914f4db9ef3855607dc6b11918eab5d58844db4730b84db56246288110fda8c87ce0cfc3109967597015de3c
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Sensu::Redis
2
2
 
3
3
  [![Build Status](https://travis-ci.org/sensu/sensu-redis.svg?branch=master)](https://travis-ci.org/sensu/sensu-redis)
4
+ ![Gem Version](https://img.shields.io/gem/v/sensu-redis.svg)
5
+ ![MIT Licensed](https://img.shields.io/github/license/sensu/sensu.svg)
4
6
 
5
7
  ## Installation
6
8
 
@@ -28,8 +30,3 @@ not nor will not require.
28
30
  3. Commit your changes (`git commit -am 'Add some feature'`)
29
31
  4. Push to the branch (`git push origin my-new-feature`)
30
32
  5. Create a new Pull Request
31
-
32
- ## License
33
-
34
- Sensu-Redis is released under the [MIT
35
- license](https://raw.github.com/sensu/sensu-redis/master/LICENSE.txt).
@@ -65,15 +65,18 @@ module Sensu
65
65
  end
66
66
 
67
67
  # Create an error and pass it to the connection error callback.
68
- # This method will trigger a reconnect if `@reconnect_on_error`
69
- # is `true`.
68
+ # This method will close the current connection and trigger a
69
+ # reconnect (via `unbind()`) if `@reconnect_on_error` is `true`.
70
+ # Closing the connection here is necessary to stop EventMachine
71
+ # from reusing the same connection handler (we want a fresh
72
+ # Redis connection).
70
73
  #
71
74
  # @param klass [Class]
72
75
  # @param message [String]
73
76
  def error(klass, message)
74
77
  redis_error = klass.new(message)
75
78
  @error_callback.call(redis_error)
76
- reconnect! if @reconnect_on_error
79
+ close_connection if @reconnect_on_error
77
80
  end
78
81
 
79
82
  # 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 = "2.1.1"
5
+ spec.version = "2.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: 2.1.1
4
+ version: 2.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: 2017-03-20 00:00:00.000000000 Z
11
+ date: 2017-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  requirements: []
104
104
  rubyforge_project:
105
- rubygems_version: 2.6.3
105
+ rubygems_version: 2.6.11
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: The Sensu Redis client library