health-monitor-rails 11.2.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: b00f406302fd6e63bb7e6455af60d3334d26fd189b1402f5936cc395facf4661
4
- data.tar.gz: 4bb3e0ed9c5e1532e5c088ddddaa0e55aa27d5cd48e1f7b75ebb19e6f4cc11e0
3
+ metadata.gz: 27b214b33b4ea1a6deaca8dd0a2b7dfb568d4f268435dcc781074a18ce0f4be3
4
+ data.tar.gz: 1610408710e79f17a8c02706ecd917f4123c6796430e50a579ed732b41b7f2b7
5
5
  SHA512:
6
- metadata.gz: 8360a21440827414697452c9cb2d82de435c7a21241f1073c00e3098d2c859e080f6d0a852476843f325236d3e5e70928c710fd71cc0586f3e85fe2dce7ac633
7
- data.tar.gz: a42042a7cda14a27b07e4da46d5b0311553354c9f1245a92ed7bb98ef58406c1c8003c07078525e1a1cd8fe03d553e28c052d742239e5a5bb2609d9fe873373a
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
 
@@ -43,7 +43,7 @@ module HealthMonitor
43
43
  end
44
44
 
45
45
  def providers_params
46
- params.except(:format).permit(providers: [])
46
+ params.except(:format, :subdomain).permit(providers: [])
47
47
  end
48
48
  end
49
49
  end
@@ -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.2.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.2.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: 2023-10-20 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