health-monitor-rails 5.0.0 → 5.0.1

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
  SHA1:
3
- metadata.gz: 58e6c815e54ec777fd52ee197685de22b86537e3
4
- data.tar.gz: d284a239ac6983704d0a67331a086543ad9080a5
3
+ metadata.gz: 39cae4d2ffc60c828e0141dd8242812a3e02c33c
4
+ data.tar.gz: a35a06e5ad27504f8e27a33a3ad4b00e958a0ef5
5
5
  SHA512:
6
- metadata.gz: d331d936d14ac922c3479078ff9b08f183e8fd462d18ec22ae66ebb289b8f346685f1042098307b10d72a396020059252018d096103d688ac9be54a9372dff02
7
- data.tar.gz: 9e54cb9a09eeae1243d84bd749842ec6f963f9744e9de4edb53b5bccf6083bbe1ac31382ee8bad36cdd9a88221a48765a24d877d6832b89db7c559739f90c531
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 environmet variables
126
- By default, environmet variables is nil, you need to provide a Hash with your custom environmet variables:
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
- unless HealthMonitor.configuration.environmet_variables.nil?
14
- env_vars = [environmet_variables: HealthMonitor.configuration.environmet_variables]
15
- res[:results] = env_vars + res[:results]
16
- end
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]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HealthMonitor
4
- VERSION = '5.0.0'.freeze
4
+ VERSION = '5.0.1'.freeze
5
5
  end
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.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-07-01 00:00:00.000000000 Z
11
+ date: 2016-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails