sidekiq-scheduler 2.0.3 → 2.0.4

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
  SHA1:
3
- metadata.gz: f6766179078471d4bbb226b1c7d0b9ea62ff8910
4
- data.tar.gz: 62e804fc6a38035a23cc7ce6040aed830b32ec57
3
+ metadata.gz: cb14c4d168f6e6e04f004a797c8a9247323a8a74
4
+ data.tar.gz: 230b4f176c716ca9bef539b4dc1d3f428d1ca48d
5
5
  SHA512:
6
- metadata.gz: dcbb3e68f950e13223d6fe0d76616abef9aa1969493abc84c3ee71ed102862e8228a62399af5f285106cf8f9e106e0b1cf245141b84248bd087771163e83a829
7
- data.tar.gz: 293774941cc79640c697fdc8a7b8d84b599a6faf46790245bba147aa8eb91a00ce529eea3390046a27e0c9a248eb3f787468032b912e8dec5daf5fdf2ca361f7
6
+ metadata.gz: ca5651d5962fbe5981ec4d57c43bb8114bad49d8160603168b2b8fda14a666abfa6b871e401e43b610b87c05ebd1f9652a37353b3110052da4feb97e25df94fd
7
+ data.tar.gz: 50563b08976a926199ccc2cc5dea1bd133574e3e5772c821b2be9e7ae3dd15da90cc7d633173717b3f34aa967eff19b4959db1214085bc11d4d9a20f178e13bd
@@ -1,5 +1,5 @@
1
1
  module SidekiqScheduler
2
2
 
3
- VERSION = '2.0.3'
3
+ VERSION = '2.0.4'
4
4
 
5
5
  end
@@ -7,10 +7,16 @@ require_relative 'sidekiq-scheduler/manager'
7
7
  Sidekiq.configure_server do |config|
8
8
 
9
9
  config.on(:startup) do
10
+ dynamic = Sidekiq::Scheduler.dynamic
11
+ dynamic = dynamic.nil? ? config.options.fetch(:dynamic, false) : dynamic
12
+
13
+ enabled = Sidekiq::Scheduler.enabled
14
+ enabled = enabled.nil? ? config.options.fetch(:enabled, true) : enabled
15
+
10
16
  scheduler_options = {
11
17
  scheduler: config.options.fetch(:scheduler, true),
12
- dynamic: config.options.fetch(:dynamic, false),
13
- enabled: config.options.fetch(:enabled, true),
18
+ dynamic: dynamic,
19
+ enabled: enabled,
14
20
  schedule: config.options.fetch(:schedule, nil)
15
21
  }
16
22
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-scheduler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Morton Jonuschat
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-15 00:00:00.000000000 Z
12
+ date: 2016-02-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sidekiq