health-monitor-rails 12.4.2 → 12.5.0

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: 611297bb03662c6a7c04da86df695c4064bc3e56706db97a6579e1f32ae154cc
4
- data.tar.gz: 90f90a0b406f000887343e4d473a9824ae71a7d565f825f0205fcc4f152bf503
3
+ metadata.gz: c16cdc04971eb81463bb19da409b3e1d41cf83683840819882ad33a6d8cdf4b0
4
+ data.tar.gz: 8091013b1770de119a9d9448696f97c3ec7baadafac9ce4173d6c279b65bc313
5
5
  SHA512:
6
- metadata.gz: 67493e6aa8f0871a07b6e82074a017ef98cc8cc66461485615fa391f432d18997612be296be209b79a4022cfcaac9ab6d09938db9a75265f0c221f6d068e9a96
7
- data.tar.gz: 68d6edd09b2d679f2db9eb134bcbd7b8f96c515cc385b58544b66c8ea014ee37cdbff90f9bc5a84606774e93f4b807bcdc5b266d21833ba538d50951bd9c3374
6
+ metadata.gz: 2d6f3818a0dabb60c514382d32815832e94f516ccd3d76751acf90889b61e90edfcfd62b4df44e34669909ed475e2c25585b4c08b5ebc0cfebea33f8f8c965a4
7
+ data.tar.gz: 7f519417d7e0adee2f367f776c0d193bc44b0cb8dd48661d5e0067171618efced5e0834ba26a66b51e6b0335a9c8ee81f4d483e1d01ae51a3951a4f872200d36
@@ -11,7 +11,11 @@ module HealthMonitor
11
11
  failed_databases = []
12
12
 
13
13
  ActiveRecord::Base.connection_handler.connection_pool_list(:all).each do |cp|
14
- cp.lease_connection.execute('SELECT 1')
14
+ if cp.respond_to? :lease_connection
15
+ cp.lease_connection.execute('SELECT 1')
16
+ else
17
+ cp.connection.execute('SELECT 1')
18
+ end
15
19
  rescue Exception
16
20
  failed_databases << cp.db_config.name
17
21
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HealthMonitor
4
- VERSION = '12.4.2'
4
+ VERSION = '12.5.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: health-monitor-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.4.2
4
+ version: 12.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonid Beder