health_rack 0.1.1 → 0.1.2

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: 9ed561bcb7f6b18597dd1611e6d18e46a71fc5a9
4
- data.tar.gz: 5c1965af42f24b1557c9ff3cc3ed845bc0c6bf2a
3
+ metadata.gz: b609e85ee115d68d7294dcdd355e508e8a30864c
4
+ data.tar.gz: 0006e41e9766d676cc2474480199f04294bfaa62
5
5
  SHA512:
6
- metadata.gz: e294c5ffbd140c80de1518a48483553ac0027872f2c7ea218cf0a7f6db97ec67eb4d52c365d1c5bc0c79e569cc1bc8d2f7fa4c08e87492825d6355d442dca38a
7
- data.tar.gz: 1e0fe259ed7fc9a5e790b75789070ed69bd52bd605c7de1f5ac5c30317c3faa52146463099db77589f1064d2cfa7da7be66117e00aca3685f3c54641c0daaaf6
6
+ metadata.gz: 718fd4d9d463274bdc3ced5a9ef6d660718ad452e9a0906a6958446f6ca4cf96a7dd46b29a12ef1ab41698594d069b524fd3d57285022beb74393f89aab2e118
7
+ data.tar.gz: 6d50001465d2099b99e868c86eac1fd82dd68a8bb0bb479262c0b9c13a57114ef5f4baf25a9a6c49b02232e01b6a8c6cd7abcf5eaa45b0cf5296fd2814b77c2a
data/README.md CHANGED
@@ -20,6 +20,8 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
+ Add a class containing the various checks you would like to perform.
24
+
23
25
  ```ruby
24
26
  class Health < HealthRack::Base
25
27
  check "Database" do
@@ -34,7 +36,15 @@ end
34
36
  run Health.new
35
37
  ```
36
38
 
37
- Then simply visit the page to view the output. By default the output will be in HTML but you can add the `.json` suffix to get a JSON output instead.
39
+ Then mount the health check in your routes
40
+
41
+ ```ruby
42
+ mount HealthStatus.new, at: '/health'
43
+ ```
44
+
45
+ Visiting that path in a browser will perform the health check and present the output.
46
+
47
+ There is also the option of adding `.json` to the path to generate json output.
38
48
 
39
49
  ## Contributing
40
50
 
data/health_rack.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "rack", "~> 1.5.2"
21
+ spec.add_dependency "rack", "~> 1.6.0"
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.7"
24
24
  spec.add_development_dependency "rake", "~> 10.0"
@@ -1,3 +1,3 @@
1
1
  module HealthRack
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: health_rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marty Zalega
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-25 00:00:00.000000000 Z
11
+ date: 2014-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.5.2
19
+ version: 1.6.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.5.2
26
+ version: 1.6.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement