cough 0.1.0 → 0.2.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
  SHA256:
3
- metadata.gz: b3087b86cd3671f160f2b1a5dbd5a9e86fee0abe30c0932543d006588e2185c5
4
- data.tar.gz: 74ee4007702f959b566a74008e5923bfd822c17ae970c36ab98a8e85a9d2c5d9
3
+ metadata.gz: beef3feb46dbdca4eff7eef446ef4dc075b17590f4ccdd38406d11ef9127be35
4
+ data.tar.gz: c91a1b5d4668ae9df93536b426b1a7ee0f7f693c31c29e1d2c7d36e5c8e5e420
5
5
  SHA512:
6
- metadata.gz: 2d73df03a449c93ea967780a069929d520231413cd9ca67dbdc3c7ae21a72578ea9cd26097d656d63b5d66737be873f36a22f95c9e95cb65812f1c28b3fda7e0
7
- data.tar.gz: eee456b107961f4dfb75fa28dc9e7724015581ac24872d0fac7e80cbdc35b38f2fc8081e372e0f84f2e7439231c24305b83981a26151fbe7d663f2ab0e6d6179
6
+ metadata.gz: 672b774b6033be3cd7ccdb75597784e5d56ef45c3cef12836c9112e60cf35301a1af4f34343b01b15279420d25e79dcc6a9fcd474c048895e7d20766d6b3e013
7
+ data.tar.gz: 567abd12200bad671951499d284c2cf4acdd11a9f5edb3719484f45e163e006cf23f8ad1e0732126b83edcd61249a8dd2001f07ca576f5f7d73883b8361484aa
data/README.md CHANGED
@@ -1,13 +1,15 @@
1
1
  # Cough
2
- Short description and motivation.
2
+ Simple health check for your rails application.
3
3
 
4
4
  ## Usage
5
- You just have to mount this rails engine in your routes file
5
+ Mount the engine in your `config/routes.rb` file, using any preferred path.
6
6
  ```
7
- mount Cough::Engine => '/cough'
7
+ mount Cough::Engine => '/health'
8
8
  ```
9
9
 
10
- or to any other path your prefer.
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
- version: ENV['COMMIT'].to_s.strip,
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cough
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
5
5
  end
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.1.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: 2020-05-31 00:00:00.000000000 Z
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.1.2
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: []