server_health_check 0.1.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
2
  SHA1:
3
- metadata.gz: 72039c4ebebff1777a10496fdb2ecafa05a754de
4
- data.tar.gz: 2c498566a2cc648c8c8378cb3764a4842c75f62d
3
+ metadata.gz: a0408992ef46a4d25aa4076b83d7c7906e3c9345
4
+ data.tar.gz: 01ac50965154187b4fee108d1b9220e605f2b92e
5
5
  SHA512:
6
- metadata.gz: 5e3db55aeb1171251a5b722526b0eb5f66c848a2462b9d6dd8de6092dfcb90c90a4e560f55c021819fdcf1b80bd3b5e137a2fbf6cbacce84ba592f65b4b59d88
7
- data.tar.gz: 2449cc678f11d91129dfd4da561dca35f39c448a51d9b55dfb92adcfcbb3290063d97032920287a57a55975ee02259d67a0e56297366a003463a4cc99a64b557
6
+ metadata.gz: 3b60f1e3c20983646e1b04a541076b73ac056e17381a0bc2fcbabbe4f69c170c60734d8ade3445065eb8c91729730b2701756fc6acb1333ca29af63d79939152
7
+ data.tar.gz: 3195fbb59e6764370d9fcb75256ab204e828557411c1fa4ea9d112c2ef38679dd1daa4e64dfbb3fe4ed0678ac8f26d4bb8dab223632e2f2debdc887fac0f2b82
@@ -1,3 +1,3 @@
1
1
  class ServerHealthCheck
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "1.0".freeze
3
3
  end
@@ -54,17 +54,17 @@ class ServerHealthCheck
54
54
  end
55
55
  end
56
56
 
57
- def check!
57
+ def check!(name = 'custom_check')
58
58
  success = yield
59
59
  if success
60
- @results[:check] = OK
60
+ @results[name.to_sym] = OK
61
61
  true
62
62
  else
63
- @results[:check] = "Failed"
63
+ @results[name.to_sym] = "Failed"
64
64
  false
65
65
  end
66
66
  rescue => e
67
- @results[:check] = e.to_s
67
+ @results[name.to_sym] = e.to_s
68
68
  end
69
69
 
70
70
  def ok?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: server_health_check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: '1.0'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Quenten Griffith
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-17 00:00:00.000000000 Z
11
+ date: 2016-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.5.1
95
+ rubygems_version: 2.4.5.1
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: Healthcheck for web apps.