health-monitor-rails 12.4.0 → 12.4.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
  SHA256:
3
- metadata.gz: 16d418a94d55bfea53470ed8a0b1d4b8614c32b2f3a0f439dd37859c99cb62b1
4
- data.tar.gz: 5f53e4f8bcc43d2a2ae27fa02a14f44c277b2a37388b500b7c9450ca6834197d
3
+ metadata.gz: 8b3587a34b753e20332f2ee30e5a8fabf95485edc28dbf0521be42895bc2dbb0
4
+ data.tar.gz: 4b9b77a3c16bb5d01182af1ff1d327deb0089785da6905012a498be977b20038
5
5
  SHA512:
6
- metadata.gz: e09ede9673ea8c30618eeffb12b169920705b4f54376e091141008303c060a6071ec627eec576724901f046d3c697e30c0519235a22175ec100ce58286188c97
7
- data.tar.gz: b0383068465c7ebb1e4beedd46c9f26801fcd2fdae8f0b591be3a4967bb72bb94f13a6a62a3c35290c3385f187ec917cafd3ea5add28386afa2c44bda9a6d6de
6
+ metadata.gz: 808e2ed0c5fa88496ff3eae0540e559b871629970210ea371f0cbf95ad8e71f2f9687e72bb802b6f26b961bb59dcc42c0c904a5f6a68af9754d172c5e42ccbfb
7
+ data.tar.gz: 6d31d3cf3605c2d3eddd144242794774db6abaf7022b2cbf8cb7430ba8495d38ac81018ea97a6d516258a190dd3933e031b52103e036538a60c7d3694e36af96
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.1'
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.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: 2024-11-09 00:00:00.000000000 Z
11
+ date: 2024-11-11 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,