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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e0381baff5c71fb71e08c6cd9cb170643783e9f
4
- data.tar.gz: 73a3e2babcbe841efc37ce88fc8580c49cc8ab48
3
+ metadata.gz: 7effc9e975ff313fa3589424116c86c38a7dd157
4
+ data.tar.gz: 79ae60ab8b5e00bbb869f77301b86e91d334d7fa
5
5
  SHA512:
6
- metadata.gz: a0f2782a6201109f61826c82cce24cfd3cda3c78db6284bd206588421188a56a8012d908def6d2442c0cf3ce2e5534b49723ddc83b7b6b5951fc319d1334934a
7
- data.tar.gz: 5f9d5b6979d738ebd9a1754366ef2cba8550bb849d8142ef1bb267daae733fa4dc78f24ff5138c657f476a2cf518019154b3c99f6248808a9d36e896397628d7
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
- @configuration = configuration_class.new
14
+ @global_configuration = configuration_class.new
14
15
 
15
- yield @configuration if block_given?
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.configure
22
- end
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HealthMonitor
4
- VERSION = '7.2.1'.freeze
4
+ VERSION = '7.2.2'.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: 7.2.1
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-18 00:00:00.000000000 Z
11
+ date: 2017-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails