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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb156b2729dc3b9485d53a68c7abb9f6ae8e690a
4
- data.tar.gz: 27f6d1f555bcfef985a0196a29ebeb3e30c7b482
3
+ metadata.gz: 7e0381baff5c71fb71e08c6cd9cb170643783e9f
4
+ data.tar.gz: 73a3e2babcbe841efc37ce88fc8580c49cc8ab48
5
5
  SHA512:
6
- metadata.gz: cb09d045670e2ad1bb6cd42ac915291347a717bf47f858b64dd02d7494371af55e7e55ec0abd01e8b291a5b5b6af3fc913ea8ee97980aed73b66d61e1fd415de
7
- data.tar.gz: 8283fb8dfbfd8e3aa2e388deb2c48490a1588d322f063a196c783ea5daffb08d33061b9d2095dd641ee3362d79636af030b5f04251f2f34cbcd6f044f49c0605
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
- self.configuration = configuration_class.new
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HealthMonitor
4
- VERSION = '7.1.1'.freeze
4
+ VERSION = '7.2.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: 7.1.1
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-04-25 00:00:00.000000000 Z
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.5.1
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,