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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b1e312e85c9620eb0cb62c736078fb450d1b275cf5d8960db1db3c7b1237de8
4
- data.tar.gz: 34b33af4c9cf65cf25357008ab3d869b2177e0b0e8b04b2e0c69bd437daf9f54
3
+ metadata.gz: dce6e85d9fca1ec1f595aab3b813f0a5c31c01bd9e921b48d5e6eaf06305d8b4
4
+ data.tar.gz: 334723acc91d510de0c3e1a2a090b52144918eb2577cf8c189f29d7c93099806
5
5
  SHA512:
6
- metadata.gz: 5ff250bd8cc958ad2be42e23ce13d584420e3562e382c65bee7d19d62a4d40c71519b00ff3bb44716f411b2bc45dd0744148e118cbae14a5a6aff38d97527d03
7
- data.tar.gz: dbd3b9a82af8ba2561beb08ecd75bb1a70f6b48101be891917b23fc4d8a48c51476035d14b61236f157d3349790940bda24d28795258a8917501d6013874c17f
6
+ metadata.gz: 9f1911c8782d04f88b5a6040c02a8e6f80f93c3c6e17ec69cf5fb5a96f3fb62c30a693c4fd83a6574da021250934dc5fe2510fcb534bcbf6b99156d25b85d359
7
+ data.tar.gz: 8d28a53a977285c1fcdadd9c919a0c2c0c57c0ae7784c9749f18883c2f0d387bf322632cae3c0e075a7739896bcebf045749bce422365696dbf50fe7b8468b3f
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sidekiq-kubernetes-probes (0.1.0)
4
+ sidekiq-kubernetes-probes (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,19 +1,18 @@
1
1
  require "sidekiq/kubernetes/probes/version"
2
2
 
3
- class SidekiqNotLoadedError < StandardError; end
3
+ require "sidekiq/launcher"
4
4
 
5
- unless defined?(Sidekiq)
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.respond_to?(:heartbeat)
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
@@ -1,7 +1,7 @@
1
1
  module Sidekiq
2
2
  module Kubernetes
3
3
  module Probes
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-kubernetes-probes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micke Lisinge