cronic 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +8 -0
- data/lib/cronic/scheduler.rb +2 -2
- data/lib/cronic/version.rb +1 -1
- data/templates/script/cronic +3 -0
- metadata +4 -4
data/CHANGELOG.md
CHANGED
data/lib/cronic/scheduler.rb
CHANGED
data/lib/cronic/version.rb
CHANGED
data/templates/script/cronic
CHANGED
@@ -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:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.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-
|
18
|
+
date: 2013-03-22 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rufus-scheduler
|