health-monitor-rails 11.3.0 → 12.0.0

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: ef2ab1a402fc161f4abe3c76733649ff053e3edeeb74143d97ff25e2431bda5e
4
- data.tar.gz: 4f49b79333e4e13e804e9219a2a9391833bc985b0ebed37d96887b527a3cb25e
3
+ metadata.gz: 27b214b33b4ea1a6deaca8dd0a2b7dfb568d4f268435dcc781074a18ce0f4be3
4
+ data.tar.gz: 1610408710e79f17a8c02706ecd917f4123c6796430e50a579ed732b41b7f2b7
5
5
  SHA512:
6
- metadata.gz: dd7b07152e96cf14cbf56ebaf66b9b4a0f018d2913f5f0ae72715b9b8758a4c674ab1c1eb5ffdd74128bf6d0323454dab39a63b16f2d6b089a80e872cbecd89c
7
- data.tar.gz: e5966d745ac421b1da9a3b65695bd668e34c391f26ad5d4e40a2a1e31372cb48667412d256f2bf4883ecafceec68653f44faa76d0ff93ef32b343a9a6213d597
6
+ metadata.gz: 8efc25eb888dd3bdeebd2c7766824f002c52ab2516d1361f32e91581d73065c0481cbf3688bdddd108164fed76814abfece4a58e66aa5aec7cfc84c325f0be2b
7
+ data.tar.gz: '048ca3f7345e38f63a4b86f5877a9e1c97864dc37c553502d2e53a7a1aa028be83dd47edf0c0c4fa39f75258d16dc3efab4fdf5c348f0afd8a7b8d708cca1c0c'
data/README.md CHANGED
@@ -332,7 +332,7 @@ end
332
332
 
333
333
  ```ruby
334
334
  HealthMonitor.configure do |config|
335
- config.add_custom_provider(CustomProvider.new)
335
+ config.add_custom_provider(CustomProvider)
336
336
  end
337
337
  ```
338
338
 
@@ -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.check_version
14
+ cp.connection.execute('SELECT 1')
15
15
  rescue Exception
16
16
  failed_databases << cp.db_config.name
17
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HealthMonitor
4
- VERSION = '11.3.0'
4
+ VERSION = '12.0.0'
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: 11.3.0
4
+ version: 12.0.0
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-01-21 00:00:00.000000000 Z
11
+ date: 2024-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties