resque-scheduler 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/HISTORY.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 1.0.3 (2010-02-11)
2
+
3
+ * Added support for scheduled jobs with empty crons. This is helpful to have
4
+ jobs that you don't want on a schedule, but do want to be able to queue by
5
+ clicking a button.
6
+
1
7
  ## 1.0.2 (2010-02-?)
2
8
 
3
9
  * Change Delayed Job tab to display job details if only 1 job exists
@@ -50,9 +50,13 @@ module Resque
50
50
 
51
51
  Resque.schedule.each do |name, config|
52
52
  log! "Scheduling #{name} "
53
- rufus_scheduler.cron config['cron'] do
54
- log! "queuing #{config['class']} (#{name})"
55
- enqueue_from_config(config)
53
+ if !config['cron'].nil? && config['cron'].length > 0
54
+ rufus_scheduler.cron config['cron'] do
55
+ log! "queuing #{config['class']} (#{name})"
56
+ enqueue_from_config(config)
57
+ end
58
+ else
59
+ log! "not cron found for #{config['class']} (#{name}) - skipping"
56
60
  end
57
61
  end
58
62
  end
@@ -1,3 +1,3 @@
1
1
  module ResqueScheduler
2
- Version = '1.0.2'
2
+ Version = '1.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-scheduler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben VandenBos
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-10 00:00:00 -08:00
12
+ date: 2010-02-11 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency