health-monitor-rails 5.0.0 → 5.0.1
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 +2 -2
- data/app/controllers/health_monitor/health_controller.rb +4 -4
- data/lib/health_monitor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39cae4d2ffc60c828e0141dd8242812a3e02c33c
|
4
|
+
data.tar.gz: a35a06e5ad27504f8e27a33a3ad4b00e958a0ef5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24467e7c7dc34ae2efc1af05da9675d86eb65ad328cd1be7ed7b6662651623fda56b6c43f0ad79b79c78bd56bc9f2952a69b7748bd73975b7ef0a658daeacf73
|
7
|
+
data.tar.gz: fc64ec4b3774ec2df033cf274faec72a26f2f3c98997b9cb6f00ae37a5ce04345c94c32b6ad46916c376aee30e32094b79bc8007eaeb4954eb8506d3c234e75e
|
data/README.md
CHANGED
@@ -122,8 +122,8 @@ HealthMonitor.configure do |config|
|
|
122
122
|
end
|
123
123
|
```
|
124
124
|
|
125
|
-
### Adding
|
126
|
-
By default,
|
125
|
+
### Adding environment variables
|
126
|
+
By default, environment variables is `nil`, so if you'd want to include additional parameters in the results JSON, all you need is to provide a `Hash` with your custom environment variables:
|
127
127
|
|
128
128
|
```ruby
|
129
129
|
HealthMonitor.configure do |config|
|
@@ -10,10 +10,10 @@ module HealthMonitor
|
|
10
10
|
def check
|
11
11
|
res = HealthMonitor.check(request: request)
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
HealthMonitor.configuration.environmet_variables ||= {}
|
14
|
+
v = HealthMonitor.configuration.environmet_variables.merge(time: Time.now.to_s(:db))
|
15
|
+
env_vars = [environmet_variables: v]
|
16
|
+
res[:results] = env_vars + res[:results]
|
17
17
|
|
18
18
|
self.content_type = Mime[:json]
|
19
19
|
self.status = res[:status]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: health-monitor-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leonid Beder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|