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 +4 -4
- data/README.md +2 -5
- data/lib/sensu/redis/client.rb +6 -3
- data/sensu-redis.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66b083536e8af2564d78087cd3b46315cbe87036
|
4
|
+
data.tar.gz: 19dc7e43f13397b5d363ba500c0db17ce013581b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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).
|
data/lib/sensu/redis/client.rb
CHANGED
@@ -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
|
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
|
-
|
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
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.
|
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-
|
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.
|
105
|
+
rubygems_version: 2.6.11
|
106
106
|
signing_key:
|
107
107
|
specification_version: 4
|
108
108
|
summary: The Sensu Redis client library
|