cronic 0.1.1 → 0.1.2

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.
@@ -1,3 +1,11 @@
1
+ == 0.1.2 2013-03-22
2
+
3
+ * pass through options to Rufus::Scheduler.start_new
4
+
5
+ == 0.1.1
6
+
7
+ * fix the gemspec
8
+
1
9
  == 0.1.0 2012-11-27
2
10
 
3
11
  * Initial release
@@ -9,8 +9,8 @@ end
9
9
  module Cronic
10
10
  class Scheduler
11
11
 
12
- def initialize
13
- @rufus_scheduler = Rufus::Scheduler.start_new
12
+ def initialize(opts = {})
13
+ @rufus_scheduler = Rufus::Scheduler.start_new(opts)
14
14
  setup_exception_handler
15
15
  end
16
16
 
@@ -1,3 +1,3 @@
1
1
  module Cronic
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
@@ -20,7 +20,10 @@ require "dante"
20
20
 
21
21
 
22
22
  Dante.run('cronic scheduler') do
23
+ # Instantiate the scheduler.
24
+ # The optional hash argument is passed directly to Rufus::Scheduler.start_new
23
25
  scheduler = Cronic::Scheduler.new
26
+ # scheduler = Cronic::Scheduler.new :frequency => 60.0
24
27
  Dir[Rails.root.join('config', 'cronic.d', '**/*.rb')].each do |file|
25
28
  puts "loading #{file}"
26
29
  scheduler.load_jobs file
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cronic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Jens Kr\xC3\xA4mer"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-03-07 00:00:00 Z
18
+ date: 2013-03-22 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rufus-scheduler