ok_health_check 0.1.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd2470acab9107799d28d34309237239acf6049f
4
- data.tar.gz: 74bd3194bfb306c546ed2b825a4d8e1e1fae7d2d
3
+ metadata.gz: f3298d5dd865859726cc004ed62dc48ad9d27102
4
+ data.tar.gz: 5ed13ed4853580a9beb410a65666f6d14f5c7849
5
5
  SHA512:
6
- metadata.gz: 61ff3a6320a2bb21606341b5e57a7b9645c12f7283d59a326ef8f3651924b942733195f5c3bc26b4ef56463854d41953f052aaf57978277cf4b3f94752e05358
7
- data.tar.gz: 8aeb1a9786ede72e50ad83790a7099d08a51080a293509a3eabd2f1731bbf0581f16df31670155ebc167548ed43a99d648a099d91223481f9703c502237e1162
6
+ metadata.gz: d6c20b5111182e0183b225f71ae706ae844ba82a14e091cc04fe7a12826b4fd7cd4ea2b6277a50a0e505132daa5932fef0de549a4023fe258edbcbb8011eacc3
7
+ data.tar.gz: dcfda6d4fcd4c4867fe28ca6dc73f684f74b0f6ded1ff5f7e2a3fb412fb8d86a152e9cef89177048d20fe2d75583f0ddc007e574bd179e0121c082de15434b11
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # OkHealthCheck
2
2
 
3
- TODO: Write a gem description
3
+ This gem provides a Rack app that responds to any request with a 200 status code and the text "OK". We suggest you mount it so it responds to requests from "/healthcheck" - in fact, if you use Rails, we do that for you.
4
4
 
5
5
  ## Installation
6
6
 
@@ -20,7 +20,24 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- TODO: Write usage instructions here
23
+ ### Rails
24
+ Nothing to do here. Rails will automatically include a route `/healthcheck` that will return `OK` when requested.
25
+
26
+ If you want it to listen on some other endpoint, just add the following to your `config/routes.rb` file:
27
+
28
+ ```ruby
29
+ mount OkHealthCheck.new, at: "/<desired endpoint>"
30
+ ```
31
+
32
+ ### Other Rack Apps (Sinatra, etc.)
33
+
34
+ ```ruby
35
+ require 'ok_health_check'
36
+
37
+ run Rack::URLMap.new \
38
+ "/" => <Your app class>,
39
+ "/healthcheck" => OkHealthCheck.new
40
+ ```
24
41
 
25
42
  ## Contributing
26
43
 
@@ -1,3 +1,3 @@
1
1
  module OkHealthCheck
2
- VERSION = "0.1.1"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ok_health_check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Picciuto