cough 0.1.0 → 0.2.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 +4 -4
- data/README.md +6 -4
- data/config/routes.rb +8 -2
- data/lib/cough/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: beef3feb46dbdca4eff7eef446ef4dc075b17590f4ccdd38406d11ef9127be35
|
|
4
|
+
data.tar.gz: c91a1b5d4668ae9df93536b426b1a7ee0f7f693c31c29e1d2c7d36e5c8e5e420
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 672b774b6033be3cd7ccdb75597784e5d56ef45c3cef12836c9112e60cf35301a1af4f34343b01b15279420d25e79dcc6a9fcd474c048895e7d20766d6b3e013
|
|
7
|
+
data.tar.gz: 567abd12200bad671951499d284c2cf4acdd11a9f5edb3719484f45e163e006cf23f8ad1e0732126b83edcd61249a8dd2001f07ca576f5f7d73883b8361484aa
|
data/README.md
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
# Cough
|
|
2
|
-
|
|
2
|
+
Simple health check for your rails application.
|
|
3
3
|
|
|
4
4
|
## Usage
|
|
5
|
-
|
|
5
|
+
Mount the engine in your `config/routes.rb` file, using any preferred path.
|
|
6
6
|
```
|
|
7
|
-
mount Cough::Engine => '/
|
|
7
|
+
mount Cough::Engine => '/health'
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
The following environment variables can be set
|
|
11
|
+
|
|
12
|
+
SERVICE_NAME, COMMIT, JOB, STAGE
|
|
11
13
|
|
|
12
14
|
## Installation
|
|
13
15
|
Add this line to your application's Gemfile:
|
data/config/routes.rb
CHANGED
|
@@ -6,9 +6,15 @@ Cough::Engine.routes.draw do
|
|
|
6
6
|
200, { 'Content-Type' => 'application/json' },
|
|
7
7
|
[
|
|
8
8
|
{
|
|
9
|
-
|
|
9
|
+
service: ENV['SERVICE_NAME'],
|
|
10
|
+
host: ENV['SERVER_HOST'],
|
|
11
|
+
ref: ENV['COMMIT'].to_s.strip,
|
|
10
12
|
job: ENV['JOB'].to_s.strip,
|
|
11
|
-
stage: ENV['STAGE'].to_s.strip
|
|
13
|
+
stage: ENV['STAGE'].to_s.strip,
|
|
14
|
+
time: ENV['BUILD_TIME'].to_s.strip,
|
|
15
|
+
versions: {
|
|
16
|
+
lang: '3.0.2'
|
|
17
|
+
}
|
|
12
18
|
}.to_json
|
|
13
19
|
]
|
|
14
20
|
]
|
data/lib/cough/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cough
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Wilhelm Hugo Kirschbaum
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-07-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -72,7 +72,7 @@ licenses:
|
|
|
72
72
|
- MIT
|
|
73
73
|
metadata:
|
|
74
74
|
allowed_push_host: https://rubygems.org
|
|
75
|
-
post_install_message:
|
|
75
|
+
post_install_message:
|
|
76
76
|
rdoc_options: []
|
|
77
77
|
require_paths:
|
|
78
78
|
- lib
|
|
@@ -87,8 +87,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
88
|
version: '0'
|
|
89
89
|
requirements: []
|
|
90
|
-
rubygems_version: 3.
|
|
91
|
-
signing_key:
|
|
90
|
+
rubygems_version: 3.2.22
|
|
91
|
+
signing_key:
|
|
92
92
|
specification_version: 4
|
|
93
93
|
summary: Healthcheck for you rails application.
|
|
94
94
|
test_files: []
|