rails-healthcheck 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/generators/healthcheck/install_generator.rb +3 -3
- data/lib/healthcheck/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce27596dd48e930452ec7144f4ea22ead777cb823da6eaa94878f133bebf5e23
|
4
|
+
data.tar.gz: 481e699b6e66c2b4f8fd7b74b4cbe0a415090cd9280e77dd71c72a00801906a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d07453b2057255eb46516ba4b7111b98f5d9048a69c22b1e9caa9bdf61a3b5589461dc25e2f22cc7ff9016cb61a6c62cd704f6548fa7a289982cc14d11a7d182
|
7
|
+
data.tar.gz: 374e196839af8ae138834861d15e8919cda48e0a99b4c9b13113242536018ffbee454d1f42764a46d466fb19a1cf9a691f83ebacb6c34d0117b31a78905eea16
|
data/README.md
CHANGED
@@ -49,9 +49,9 @@ Healthcheck.configure do |config|
|
|
49
49
|
config.method = :get
|
50
50
|
|
51
51
|
# -- Checks --
|
52
|
-
# config.add_check :database,
|
53
|
-
# config.add_check :migrations
|
54
|
-
# config.add_check :cache,
|
52
|
+
# config.add_check :database, -> { ActiveRecord::Base.connection.execute('select 1') }
|
53
|
+
# config.add_check :migrations, -> { ActiveRecord::Migration.check_pending! }
|
54
|
+
# config.add_check :cache, -> { Rails.cache.read('some_key') }
|
55
55
|
# config.add_check :environments, -> { Dotenv.require_keys('ENV_NAME', 'ANOTHER_ENV') }
|
56
56
|
end
|
57
57
|
```
|
@@ -19,9 +19,9 @@ module Healthcheck
|
|
19
19
|
config.method = :get
|
20
20
|
|
21
21
|
# -- Checks --
|
22
|
-
# config.add_check :database,
|
23
|
-
# config.add_check :migrations
|
24
|
-
# config.add_check :cache,
|
22
|
+
# config.add_check :database, -> { ActiveRecord::Base.connection.execute('select 1') }
|
23
|
+
# config.add_check :migrations, -> { ActiveRecord::Migration.check_pending! }
|
24
|
+
# config.add_check :cache, -> { Rails.cache.read('some_key') }
|
25
25
|
# config.add_check :environments, -> { Dotenv.require_keys('ENV_NAME', 'ANOTHER_ENV') }
|
26
26
|
end
|
27
27
|
HEALTHCHECK_INITIALIZER_TEXT
|
data/lib/healthcheck/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-healthcheck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- linqueta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '13.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '13.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|