heartcheck-redis 1.0.5 → 1.1.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
- SHA1:
3
- metadata.gz: 0b46af8522113f17c8c7cfc2ed3ce1d7cd44bbea
4
- data.tar.gz: 686e8433d0041ea7d034e98523a076bfe7f2fc5b
2
+ SHA256:
3
+ metadata.gz: eb74b0e8aa480ee946c789ba9d22526dc8497ae7d94e901bedbcd4f8e4b84953
4
+ data.tar.gz: 4f21e16df9bab2a9f22513b436001e774d4174ed7c887c860889febfa62890f1
5
5
  SHA512:
6
- metadata.gz: 5b3d82b45714ec98b65eaa5f2f04b32029347c6d8f8b420eb7eaa307480e6639944fa1ae029380e00de490d0892612c1dae7dac12a92251b65596f859344765b
7
- data.tar.gz: 016fce12a9d6c292e78b8f99d490b4fef2257ee87d9afa566b81bf0a0666cecfa5fdb9128ce316486b815d84f71340ff83ccc3c35a72dc6151460a414156e3ef
6
+ metadata.gz: fabe228fc0101080966fb65ddfc7eadebe0cf0bdf2b63b6186443d378502a068dca44cc64bb38d56852ca4b6701b9402fef6795d11d25b38d1711b1162e8ea79
7
+ data.tar.gz: cb35b6f7c59505cf8e5fa090b3b287395c093be196d46be66144426e1d4725182e5ac68a8908149e0a1fbcee0b9bf903426d5f55d3c000f291fa6f78bb5dae7f
@@ -16,6 +16,20 @@ module Heartcheck
16
16
  end
17
17
  end
18
18
 
19
+ # list services uri info
20
+ #
21
+ # @return [Array]
22
+ def uri_info
23
+ services.map do |s|
24
+ opts = s[:connection].connection
25
+ {
26
+ host: opts[:host],
27
+ port: opts[:port],
28
+ scheme: 'redis'.freeze
29
+ }
30
+ end
31
+ end
32
+
19
33
  private
20
34
 
21
35
  # test if can write on redis
@@ -2,6 +2,6 @@
2
2
  module Heartcheck
3
3
  # gem version
4
4
  module Redis
5
- VERSION = '1.0.5'
5
+ VERSION = '1.1.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heartcheck-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Locaweb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-04 00:00:00.000000000 Z
11
+ date: 2018-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-telnet
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  version: '0'
177
177
  requirements: []
178
178
  rubyforge_project:
179
- rubygems_version: 2.6.13
179
+ rubygems_version: 2.7.7
180
180
  signing_key:
181
181
  specification_version: 4
182
182
  summary: A redis checker.