sidekiq-kubernetes-probes 0.1.0 → 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/Gemfile.lock +1 -1
- data/lib/sidekiq/kubernetes/probes.rb +5 -8
- data/lib/sidekiq/kubernetes/probes/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dce6e85d9fca1ec1f595aab3b813f0a5c31c01bd9e921b48d5e6eaf06305d8b4
|
4
|
+
data.tar.gz: 334723acc91d510de0c3e1a2a090b52144918eb2577cf8c189f29d7c93099806
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f1911c8782d04f88b5a6040c02a8e6f80f93c3c6e17ec69cf5fb5a96f3fb62c30a693c4fd83a6574da021250934dc5fe2510fcb534bcbf6b99156d25b85d359
|
7
|
+
data.tar.gz: 8d28a53a977285c1fcdadd9c919a0c2c0c57c0ae7784c9749f18883c2f0d387bf322632cae3c0e075a7739896bcebf045749bce422365696dbf50fe7b8468b3f
|
data/Gemfile.lock
CHANGED
@@ -1,19 +1,18 @@
|
|
1
1
|
require "sidekiq/kubernetes/probes/version"
|
2
2
|
|
3
|
-
|
3
|
+
require "sidekiq/launcher"
|
4
4
|
|
5
|
-
|
6
|
-
raise SidekiqNotLoadedError, "[sidekiq-kubernetes-probes] sidekiq is not loaded. " \
|
7
|
-
"Make sure that the sidekiq gem is loaded before `sidekiq-kubernetes-probes` in your Gemfile"
|
8
|
-
end
|
5
|
+
class SidekiqNotLoadedError < StandardError; end
|
9
6
|
|
10
|
-
unless Sidekiq::Launcher.
|
7
|
+
unless Sidekiq::Launcher.private_instance_methods.include?(:heartbeat)
|
11
8
|
raise SidekiqNotLoadedError, "[sidekiq-kubernetes-probes] I'm not compatible with this version of sidekiq. " \
|
12
9
|
"Because Sidekiq::Launcher does not respond to the heartbeat method"
|
13
10
|
end
|
14
11
|
|
15
12
|
module Sidekiq
|
16
13
|
class Launcher
|
14
|
+
private
|
15
|
+
|
17
16
|
alias original_heartbeat heartbeat
|
18
17
|
|
19
18
|
def heartbeat
|
@@ -21,8 +20,6 @@ module Sidekiq
|
|
21
20
|
original_heartbeat
|
22
21
|
end
|
23
22
|
|
24
|
-
private
|
25
|
-
|
26
23
|
def root
|
27
24
|
Dir.getwd
|
28
25
|
end
|