katalyst-healthcheck 0.3.0 → 0.4.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: 0fb3e7e7967b4986de829f902564e8cc33824cd37dcadb850fc3a1ef432dea97
4
- data.tar.gz: 8195eb7f0c58c84a8a54cd9f6de021917e6f2b178ee2b37b2385c2ca8fa6bc37
3
+ metadata.gz: c405714831e17ff682cee082363e5e3b9433dd622aae6f125c7d6f8cb9e260ba
4
+ data.tar.gz: 5c72ee6dbe280e60404ae84b02b4f7db11a9aa59d8b313a638b5fa8b64c0d1ba
5
5
  SHA512:
6
- metadata.gz: 507cb6e20bb8f15899d7a276d135167846aae86ba6529f9b61e1cd6f83867c9d959ce044f2375f86520d1f568fa7cae32990207494d86fceb20ae028e9394987
7
- data.tar.gz: f216568079551ec2b46b13d4669626ff62c9f61a458c95d7ba072468fa9ca4a476bffa09810746f75a84f0b2284fe946df905863dfe41d874bc4f08dd38cc496
6
+ metadata.gz: 5fd33513793e0523ea4e6ff37d5210f0409c1dd6572c9715d97034664164ad1c3f2517bed5b514695b189e59f1170fcd58cb29873e6e03483c46047217acc3f0
7
+ data.tar.gz: b8edd34e5e1c248fedce6067fd6224b50d513b9c4742dc05cdf248c7059222cf00a1aebb4d3a2a7e9b354ffa4b382533977a8325095343bafed5916945ef7ae7
data/README.md CHANGED
@@ -58,7 +58,7 @@ the `Katalyst::Healthcheck::Monitored` concern's `healthy!` and `unhealthy` meth
58
58
  ``` ruby
59
59
  include Katalyst::Healthcheck::Monitored
60
60
 
61
- define_task :my_task, "My task description", interval: 1.day
61
+ define_healthcheck_task :my_task, "My task description", interval: 1.day
62
62
 
63
63
  def do_task
64
64
  ... task code here ...
@@ -11,7 +11,7 @@ module Katalyst
11
11
 
12
12
  sidekiq_options retry: false
13
13
 
14
- define_task :sidekiq_health, "Sidekiq background processing", interval: 60
14
+ define_healthcheck_task :sidekiq_health, "Sidekiq background processing", interval: 60
15
15
 
16
16
  def self.call
17
17
  perform_async
@@ -12,9 +12,10 @@ module Katalyst
12
12
  # @param name [Symbol] The name of the task
13
13
  # @param description [String] A description of the task's function
14
14
  # @param interval [Integer,ActiveSupport::Duration] Expected frequency that this task runs, e.g. 1.day
15
- def define_task(name, description, interval:)
15
+ def define_healthcheck_task(name, description, interval:)
16
16
  defined_healthcheck_tasks[name] = Task.new(name: name, description: description, interval: interval)
17
17
  end
18
+ alias define_task define_healthcheck_task
18
19
 
19
20
  # @return [Hash] Defined tasks keyed by name
20
21
  def defined_healthcheck_tasks
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Katalyst
4
4
  module Healthcheck
5
- VERSION = "0.3.0"
5
+ VERSION = "0.4.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-healthcheck
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-13 00:00:00.000000000 Z
11
+ date: 2022-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubygems_version: 3.1.6
87
+ rubygems_version: 3.3.15
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Health check routes and functions