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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39774c221c18a3f7ad66477a7c4a407605f951f0016888728e672170bbcc6206
4
- data.tar.gz: bfdc6005a88ee87d18f7d8943fb28bf676d2823e87c406c4177672946e0b356a
3
+ metadata.gz: 0fe74acfa30a38c495d5b006203539ac98b4de978ce020dede5929c7639ac942
4
+ data.tar.gz: 1c320c97ea6d6b4f36bd862394717833c1f177773a4e0817cf510042f6993642
5
5
  SHA512:
6
- metadata.gz: 6bb69ea8fd5f406121604a31fa3ee74293ef55ac886e79e24f4497a1e21f13dfc2010263558ec135e86a6f051ddfb20387eb7f698c31b8f450a274188b694478
7
- data.tar.gz: 1f2653d4bd2004f2a475a428a3f2abec687cafc4ab4629b8d28b7405fa0e98598903c1583b8cabe3497e2bcb158e26706aedce7f58ff43db2aa0bee24ae45331
6
+ metadata.gz: 811e15a8db4312d0e5d617443d29fb045e3ca46a8116cca35a36a42fd996de540d6d4c5d2842b30fb93efa8214a69e3e98c38b92f8564b2b582053c0282467cf
7
+ data.tar.gz: c3c291c2350aaa65980df44373f4e86268ebec87c43b567a66adc4cf985e2c713e216561f4ebb7371d7e731694f25c9265cd7e4be9ed826568ca067000ec2963
data/.circleci/config.yml CHANGED
@@ -2,7 +2,7 @@ version: 2.1
2
2
  jobs:
3
3
  build:
4
4
  docker:
5
- - image: ruby:2.7.2
5
+ - image: cimg/ruby:3.2.1
6
6
  steps:
7
7
  - checkout
8
8
  - run:
@@ -9,6 +9,7 @@ jobs:
9
9
  - { ruby: '2.7' }
10
10
  - { ruby: '3.0' }
11
11
  - { ruby: '3.1' }
12
+ - { ruby: '3.2' }
12
13
  runs-on: ubuntu-latest
13
14
  steps:
14
15
  - uses: actions/checkout@v2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.0] - 2023-03-29
4
+
5
+ - Use `File.exist?` instead of `File.exists?`
6
+
3
7
  ## [0.1.1] - 2022-12-19
4
8
 
5
9
  - Fix `require` statement in a main file
data/Gemfile.lock CHANGED
@@ -1,22 +1,22 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- file-based-healthcheck (0.1.1)
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.1.10)
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.16.3)
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.5)
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
@@ -1,5 +1,5 @@
1
1
  class FileBasedHealthcheck
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
 
4
4
  module Version
5
5
  end
@@ -17,13 +17,13 @@ class FileBasedHealthcheck
17
17
  end
18
18
 
19
19
  def running?
20
- return false if !File.exists?(file_path)
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.exists?(file_path)
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.1.1
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: 2022-12-19 00:00:00.000000000 Z
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.1.4
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.