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 +4 -4
- data/README.md +9 -0
- data/lib/health_monitor/configuration.rb +4 -0
- data/lib/health_monitor/providers/redis.rb +0 -1
- data/lib/health_monitor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18ea1f63e27fc524811bf0f0d785e03411da2292
|
4
|
+
data.tar.gz: b4bc668466b6190638b65e6d22363cc7e40a7e93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}"
|
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
|
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-
|
11
|
+
date: 2016-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|