health-monitor-rails 7.2.1 → 7.2.2
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 +5 -7
- 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: 7effc9e975ff313fa3589424116c86c38a7dd157
|
4
|
+
data.tar.gz: 79ae60ab8b5e00bbb869f77301b86e91d334d7fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8379c611769334b2e2b47f8a926194d45efe28b7bf029431b21fa41f608fd0aded751917da91deaaf27fb560f9b4b256437bf860f435bd7fa97939200215c1d2
|
7
|
+
data.tar.gz: 85e60aaf86b9a5cbf6d39ade8e345459608fd3a1195f312ae76cb44c1d26516e1b6ee71115ddad0b17f8b14b14f6c42857a3fe29d6b9443be9181cc2a485572c
|
@@ -2,6 +2,7 @@ module HealthMonitor
|
|
2
2
|
module Providers
|
3
3
|
class Base
|
4
4
|
attr_reader :request
|
5
|
+
attr_accessor :configuration
|
5
6
|
|
6
7
|
def self.provider_name
|
7
8
|
@name ||= name.demodulize
|
@@ -10,19 +11,16 @@ module HealthMonitor
|
|
10
11
|
def self.configure
|
11
12
|
return unless configurable?
|
12
13
|
|
13
|
-
@
|
14
|
+
@global_configuration = configuration_class.new
|
14
15
|
|
15
|
-
yield @
|
16
|
+
yield @global_configuration if block_given?
|
16
17
|
end
|
17
18
|
|
18
19
|
def initialize(request: nil)
|
19
20
|
@request = request
|
20
21
|
|
21
|
-
self.class.
|
22
|
-
|
23
|
-
|
24
|
-
def configuration
|
25
|
-
self.class.instance_variable_get('@configuration')
|
22
|
+
return unless self.class.configurable?
|
23
|
+
self.configuration = self.class.instance_variable_get('@global_configuration')
|
26
24
|
end
|
27
25
|
|
28
26
|
# @abstract
|
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.2.
|
4
|
+
version: 7.2.2
|
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-06-
|
11
|
+
date: 2017-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|