sidekiq-cronitor 3.7.0 → 3.7.1

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: 58670e7c63fcd04abfa27f9e5e0e0ad717e3a630eb8e5d00f8ba8420eec6e5e2
4
- data.tar.gz: 859ef82c42ff3053ff10d5a1d20a8f8d35e471326ebcc067a6eed6a02832d856
3
+ metadata.gz: df6cdfd744692fd8210ed7ef0e6a3845b35d3f268141ff83093fb9a0fe710387
4
+ data.tar.gz: b3e6120323ea9859e142f2726d18a0f172468e4c91a8b2175805f28f39298dbe
5
5
  SHA512:
6
- metadata.gz: a7f3979bea1da06b7e8f30de736485f26867d4c10ebcf456e8c0e376764d689e77d00e7b7672830fa79abfec163fd9f27405d13100601bc0717d2b3bc13f38c1
7
- data.tar.gz: e6b23c396b7e27c0ad88bf12125b7da3c813b22c720df44e9c28ea173a89d435c633245f4b40e362b5a3419c521832ba063b65f7688686e59f21a3a9704c31c2
6
+ metadata.gz: 8b7896c002b1e9781b1156095968fadfdcbd7b560caf0f125c55ccdf20d9097021fb25029f8b7eb2b31c2fef2682445767e00502c50ba558188303f8024d3d8e
7
+ data.tar.gz: 576c4abccc65dba09da848161a8526ba058ee92279a7969da61a53b4d8105535aacf6500682274e1bb28f0d21fdd3dafe4173cf405eea3151ffc97d7f39e6476
@@ -6,7 +6,7 @@ module Sidekiq::Cronitor
6
6
  monitors_payload = []
7
7
  loops = Sidekiq::Periodic::LoopSet.new
8
8
  loops.each do |lop|
9
- if fetch_option(lop, 'cronitor_enabled')
9
+ if lop.options.has_key?('cronitor_enabled') || lop.klass.constantize.sidekiq_options.has_key?('cronitor_enabled')
10
10
  next unless fetch_option(lop, 'cronitor_enabled', Cronitor.auto_discover_sidekiq)
11
11
  else
12
12
  next if fetch_option(lop, 'cronitor_disabled', !Cronitor.auto_discover_sidekiq)
@@ -13,7 +13,7 @@ module Sidekiq::Cronitor
13
13
  job_klass = Object.const_get(v['class'])
14
14
  job_key = job_klass.sidekiq_options.fetch('cronitor_key', v['class'])
15
15
 
16
- if job_klass.sidekiq_options['cronitor_enabled']
16
+ if job_klass.sidekiq_options.has_key?('cronitor_enabled')
17
17
  next unless job_klass.sidekiq_options.fetch('cronitor_enabled', Cronitor.auto_discover_sidekiq)
18
18
  else
19
19
  next if job_klass.sidekiq_options.fetch('cronitor_disabled', !Cronitor.auto_discover_sidekiq)
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module Cronitor
3
- VERSION = '3.7.0'
3
+ VERSION = '3.7.1'
4
4
  end
5
5
  end
@@ -33,7 +33,7 @@ module Sidekiq::Cronitor
33
33
  end
34
34
 
35
35
  def cronitor_disabled?(worker)
36
- if worker.class.sidekiq_options["cronitor_enabled"]
36
+ if worker.class.sidekiq_options.has_key?("cronitor_enabled")
37
37
  !worker.class.sidekiq_options.fetch("cronitor_enabled", Cronitor.auto_discover_sidekiq)
38
38
  else
39
39
  worker.class.sidekiq_options.fetch("cronitor_disabled", options(worker).fetch(:disabled, !Cronitor.auto_discover_sidekiq))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-cronitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.0
4
+ version: 3.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeke Gabrielse