health-monitor-rails 5.0.1 → 5.1.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
  SHA1:
3
- metadata.gz: 39cae4d2ffc60c828e0141dd8242812a3e02c33c
4
- data.tar.gz: a35a06e5ad27504f8e27a33a3ad4b00e958a0ef5
3
+ metadata.gz: 18ea1f63e27fc524811bf0f0d785e03411da2292
4
+ data.tar.gz: b4bc668466b6190638b65e6d22363cc7e40a7e93
5
5
  SHA512:
6
- metadata.gz: 24467e7c7dc34ae2efc1af05da9675d86eb65ad328cd1be7ed7b6662651623fda56b6c43f0ad79b79c78bd56bc9f2952a69b7748bd73975b7ef0a658daeacf73
7
- data.tar.gz: fc64ec4b3774ec2df033cf274faec72a26f2f3c98997b9cb6f00ae37a5ce04345c94c32b6ad46916c376aee30e32094b79bc8007eaeb4954eb8506d3c234e75e
6
+ metadata.gz: 776f605fe363a51b349a558def18f1d6791f589dd07f43e27c98b4842799492f96db9811a4b034e80ff61cc808d1551865058b985c7391b522c00f8704af9d1e
7
+ data.tar.gz: 4b2bce765e441b45d4557c89055cf9272835a7f10d6d48c8d56a4c69cdd96fb0713ff49e4230a482a5737d99568e9380ac94b996af89f9c53a3dfc95d48d80e7
data/README.md CHANGED
@@ -57,6 +57,15 @@ HealthMonitor.configure do |config|
57
57
  end
58
58
  ```
59
59
 
60
+ We believe that having the database check enabled by default is very important, but if you still want to disable it
61
+ (e.g., if you use a database that isn't covered by the check) - you can do that by calling the `no_database` method:
62
+
63
+ ```ruby
64
+ HealthMonitor.configure do |config|
65
+ config.no_database
66
+ end
67
+ ```
68
+
60
69
  ### Providers configuration
61
70
 
62
71
  Some of the providers can also accept additional configuration:
@@ -9,6 +9,10 @@ module HealthMonitor
9
9
  database
10
10
  end
11
11
 
12
+ def no_database
13
+ @providers.delete(HealthMonitor::Providers::Database)
14
+ end
15
+
12
16
  PROVIDERS.each do |provider_name|
13
17
  define_method provider_name do |&_block|
14
18
  require "health_monitor/providers/#{provider_name}"
@@ -1,5 +1,4 @@
1
1
  require 'health_monitor/providers/base'
2
- require 'redis/namespace'
3
2
 
4
3
  module HealthMonitor
5
4
  module Providers
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HealthMonitor
4
- VERSION = '5.0.1'.freeze
4
+ VERSION = '5.1.0'.freeze
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: 5.0.1
4
+ version: 5.1.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: 2016-08-18 00:00:00.000000000 Z
11
+ date: 2016-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails