file-based-healthcheck 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +1 -1
- data/.github/workflows/ci.yml +1 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +6 -5
- data/lib/file_based_healthcheck/version.rb +1 -1
- data/lib/file_based_healthcheck.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fe74acfa30a38c495d5b006203539ac98b4de978ce020dede5929c7639ac942
|
4
|
+
data.tar.gz: 1c320c97ea6d6b4f36bd862394717833c1f177773a4e0817cf510042f6993642
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 811e15a8db4312d0e5d617443d29fb045e3ca46a8116cca35a36a42fd996de540d6d4c5d2842b30fb93efa8214a69e3e98c38b92f8564b2b582053c0282467cf
|
7
|
+
data.tar.gz: c3c291c2350aaa65980df44373f4e86268ebec87c43b567a66adc4cf985e2c713e216561f4ebb7371d7e731694f25c9265cd7e4be9ed826568ca067000ec2963
|
data/.circleci/config.yml
CHANGED
data/.github/workflows/ci.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
file-based-healthcheck (0.
|
4
|
+
file-based-healthcheck (0.2.0)
|
5
5
|
activesupport (>= 3.2)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (7.0.4)
|
10
|
+
activesupport (7.0.4.3)
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
12
|
i18n (>= 1.6, < 2)
|
13
13
|
minitest (>= 5.1)
|
14
14
|
tzinfo (~> 2.0)
|
15
|
-
concurrent-ruby (1.
|
15
|
+
concurrent-ruby (1.2.2)
|
16
16
|
diff-lcs (1.5.0)
|
17
17
|
i18n (1.12.0)
|
18
18
|
concurrent-ruby (~> 1.0)
|
19
|
-
minitest (5.
|
19
|
+
minitest (5.18.0)
|
20
20
|
rake (13.0.6)
|
21
21
|
rspec (3.11.0)
|
22
22
|
rspec-core (~> 3.11.0)
|
@@ -31,11 +31,12 @@ GEM
|
|
31
31
|
diff-lcs (>= 1.2.0, < 2.0)
|
32
32
|
rspec-support (~> 3.11.0)
|
33
33
|
rspec-support (3.11.0)
|
34
|
-
tzinfo (2.0.
|
34
|
+
tzinfo (2.0.6)
|
35
35
|
concurrent-ruby (~> 1.0)
|
36
36
|
|
37
37
|
PLATFORMS
|
38
38
|
x86_64-darwin-18
|
39
|
+
x86_64-darwin-21
|
39
40
|
x86_64-linux
|
40
41
|
|
41
42
|
DEPENDENCIES
|
@@ -17,13 +17,13 @@ class FileBasedHealthcheck
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def running?
|
20
|
-
return false if !File.
|
20
|
+
return false if !File.exist?(file_path)
|
21
21
|
|
22
22
|
File.mtime(file_path).advance(seconds: time_threshold).utc > Time.now.utc
|
23
23
|
end
|
24
24
|
|
25
25
|
def remove
|
26
|
-
File.delete(file_path) if File.
|
26
|
+
File.delete(file_path) if File.exist?(file_path)
|
27
27
|
end
|
28
28
|
|
29
29
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: file-based-healthcheck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karol Galanciak
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
|
-
rubygems_version: 3.
|
74
|
+
rubygems_version: 3.4.6
|
75
75
|
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: A gem to use a healthcheck for readiness and liveness probes in Kubernetes.
|