liveness 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: 616d00dcf3710bb5aa51435b45eade04577d463bba6e7b806c5fe9d25d072dce
4
- data.tar.gz: 0d8b14684881ab3d2d2c926e152492f129d3638c3934d67ff4b8d369b6713528
3
+ metadata.gz: c44790a1bfa131f118390e25474427229c8adcb7d95760d39479b6e703507e13
4
+ data.tar.gz: 6d2b1b1683f7b6ed51575550abfcc673a9faba6aabfcff5568c3380e9bd716f2
5
5
  SHA512:
6
- metadata.gz: fddf5127aab3a4e090ff6085f95d522629a6ec880eb2212dbf9baa22470665ac7ba7950393c8c86ebe1119cb2acc302bda512266e7b8e523c5622555a8dccf75
7
- data.tar.gz: 12007e1950eaa7d91041438e9b1c25308fe3291ebd0f80e61df369a04df55637e42293df394fc73bbaaa7c2eecbdd5f1494c3de2815f26721e3c9eb1f222f233
6
+ metadata.gz: 521be9a238f886e343952906a48480576c695589fd68393b3a0d119478ac94e486a9447c7723952c2b7fe5ac1db635a8002dd80703e62407a4ca66a44fec751a
7
+ data.tar.gz: a5ddc7d480b789e202477f56686bd3fc731bec4209301b36f4a365f52ef124d4b4be55ffc01e88314c6bccb247445557db264ac674297431390e0d0e1a1b3e94
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- liveness (0.2.0)
4
+ liveness (0.2.1)
5
5
  rack (>= 1.0)
6
6
 
7
7
  GEM
@@ -37,7 +37,7 @@ module Liveness
37
37
  #
38
38
  # @since 0.1.0
39
39
  def live?
40
- metrics.values.reduce(true, :&)
40
+ metrics.values.map { |status| status == 'ok' }.reduce(true, :&)
41
41
  end
42
42
 
43
43
  # @return [Rack::Response]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Liveness
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liveness
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - 蒼時弦也
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-11 00:00:00.000000000 Z
11
+ date: 2022-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack