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 +4 -4
- data/README.md +11 -1
- data/health_rack.gemspec +1 -1
- data/lib/health_rack/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b609e85ee115d68d7294dcdd355e508e8a30864c
|
4
|
+
data.tar.gz: 0006e41e9766d676cc2474480199f04294bfaa62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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"
|
data/lib/health_rack/version.rb
CHANGED
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.
|
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
|
+
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.
|
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.
|
26
|
+
version: 1.6.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|