health-monitor-rails 7.1.1 → 7.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/health_monitor/providers/base.rb +6 -3
- data/lib/health_monitor/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e0381baff5c71fb71e08c6cd9cb170643783e9f
|
4
|
+
data.tar.gz: 73a3e2babcbe841efc37ce88fc8580c49cc8ab48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0f2782a6201109f61826c82cce24cfd3cda3c78db6284bd206588421188a56a8012d908def6d2442c0cf3ce2e5534b49723ddc83b7b6b5951fc319d1334934a
|
7
|
+
data.tar.gz: 5f9d5b6979d738ebd9a1754366ef2cba8550bb849d8142ef1bb267daae733fa4dc78f24ff5138c657f476a2cf518019154b3c99f6248808a9d36e896397628d7
|
@@ -2,7 +2,6 @@ module HealthMonitor
|
|
2
2
|
module Providers
|
3
3
|
class Base
|
4
4
|
attr_reader :request
|
5
|
-
cattr_accessor :configuration
|
6
5
|
|
7
6
|
def self.provider_name
|
8
7
|
@name ||= name.demodulize
|
@@ -11,9 +10,9 @@ module HealthMonitor
|
|
11
10
|
def self.configure
|
12
11
|
return unless configurable?
|
13
12
|
|
14
|
-
|
13
|
+
@configuration = configuration_class.new
|
15
14
|
|
16
|
-
yield configuration if block_given?
|
15
|
+
yield @configuration if block_given?
|
17
16
|
end
|
18
17
|
|
19
18
|
def initialize(request: nil)
|
@@ -22,6 +21,10 @@ module HealthMonitor
|
|
22
21
|
self.class.configure
|
23
22
|
end
|
24
23
|
|
24
|
+
def configuration
|
25
|
+
self.class.instance_variable_get('@configuration')
|
26
|
+
end
|
27
|
+
|
25
28
|
# @abstract
|
26
29
|
def check!
|
27
30
|
raise NotImplementedError
|
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: 7.
|
4
|
+
version: 7.2.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: 2017-
|
11
|
+
date: 2017-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -292,7 +292,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
292
292
|
version: '0'
|
293
293
|
requirements: []
|
294
294
|
rubyforge_project:
|
295
|
-
rubygems_version: 2.
|
295
|
+
rubygems_version: 2.6.12
|
296
296
|
signing_key:
|
297
297
|
specification_version: 4
|
298
298
|
summary: Health monitoring Rails plug-in, which checks various services (db, cache,
|