health-monitor-rails 12.4.0 → 12.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16d418a94d55bfea53470ed8a0b1d4b8614c32b2f3a0f439dd37859c99cb62b1
4
- data.tar.gz: 5f53e4f8bcc43d2a2ae27fa02a14f44c277b2a37388b500b7c9450ca6834197d
3
+ metadata.gz: 611297bb03662c6a7c04da86df695c4064bc3e56706db97a6579e1f32ae154cc
4
+ data.tar.gz: 90f90a0b406f000887343e4d473a9824ae71a7d565f825f0205fcc4f152bf503
5
5
  SHA512:
6
- metadata.gz: e09ede9673ea8c30618eeffb12b169920705b4f54376e091141008303c060a6071ec627eec576724901f046d3c697e30c0519235a22175ec100ce58286188c97
7
- data.tar.gz: b0383068465c7ebb1e4beedd46c9f26801fcd2fdae8f0b591be3a4967bb72bb94f13a6a62a3c35290c3385f187ec917cafd3ea5add28386afa2c44bda9a6d6de
6
+ metadata.gz: 67493e6aa8f0871a07b6e82074a017ef98cc8cc66461485615fa391f432d18997612be296be209b79a4022cfcaac9ab6d09938db9a75265f0c221f6d068e9a96
7
+ data.tar.gz: 68d6edd09b2d679f2db9eb134bcbd7b8f96c515cc385b58544b66c8ea014ee37cdbff90f9bc5a84606774e93f4b807bcdc5b266d21833ba538d50951bd9c3374
data/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/health-monitor-rails.svg)](http://badge.fury.io/rb/health-monitor-rails)
4
4
  [![Build Status](https://github.com/lbeder/health-monitor-rails/actions/workflows/ci.yml/badge.svg)](https://github.com/lbeder/health-monitor-rails/actions/workflows/ci.yml)
5
- [![Coverage Status](https://coveralls.io/repos/lbeder/health-monitor-rails/badge.svg)](https://coveralls.io/r/lbeder/health-monitor-rails)
6
5
 
7
6
  This is a health monitoring Rails mountable plug-in, which checks various services (db, cache, sidekiq, redis, etc.).
8
7
 
@@ -8,7 +8,7 @@ module HealthMonitor
8
8
 
9
9
  class Cache < Base
10
10
  def check!
11
- time = Time.now.to_s
11
+ time = Time.now.to_formatted_s(:rfc2822)
12
12
 
13
13
  Rails.cache.write(key, time)
14
14
  fetched = Rails.cache.read(key)
@@ -11,7 +11,7 @@ module HealthMonitor
11
11
  failed_databases = []
12
12
 
13
13
  ActiveRecord::Base.connection_handler.connection_pool_list(:all).each do |cp|
14
- cp.connection.execute('SELECT 1')
14
+ cp.lease_connection.execute('SELECT 1')
15
15
  rescue Exception
16
16
  failed_databases << cp.db_config.name
17
17
  end
@@ -14,7 +14,7 @@ module HealthMonitor
14
14
  attr_accessor :queue_size
15
15
 
16
16
  def initialize(provider)
17
- super(provider)
17
+ super
18
18
 
19
19
  @queue_size = DEFAULT_QUEUES_SIZE
20
20
  end
@@ -12,7 +12,7 @@ module HealthMonitor
12
12
  attr_accessor :filename
13
13
 
14
14
  def initialize(provider)
15
- super(provider)
15
+ super
16
16
 
17
17
  @filename = DEFAULT_FILENAME
18
18
  end
@@ -15,7 +15,7 @@ module HealthMonitor
15
15
  attr_accessor :url, :connection, :max_used_memory
16
16
 
17
17
  def initialize(provider)
18
- super(provider)
18
+ super
19
19
 
20
20
  @url = DEFAULT_URL
21
21
  end
@@ -18,7 +18,7 @@ module HealthMonitor
18
18
  attr_reader :queues
19
19
 
20
20
  def initialize(provider)
21
- super(provider)
21
+ super
22
22
 
23
23
  @maximum_amount_of_retries = DEFAULT_RETRY_CHECK
24
24
 
@@ -13,7 +13,7 @@ module HealthMonitor
13
13
  attr_accessor :url, :collection
14
14
 
15
15
  def initialize(provider)
16
- super(provider)
16
+ super
17
17
 
18
18
  @url = DEFAULT_URL
19
19
  @collection = DEFAULT_COLLECTION
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HealthMonitor
4
- VERSION = '12.4.0'
4
+ VERSION = '12.4.2'
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: 12.4.0
4
+ version: 12.4.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: 2024-11-09 00:00:00.000000000 Z
11
+ date: 2024-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  requirements: []
74
- rubygems_version: 3.1.6
74
+ rubygems_version: 3.4.19
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: Health monitoring Rails plug-in, which checks various services (db, cache,