bobotheshortm-whenever 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +8 -0
- data/lib/job_types/runner.rb +7 -2
- data/whenever.gemspec +2 -2
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
== 0.3.2 / June 18th, 2009
|
2
|
+
|
3
|
+
* Added an option for runner command to run the task as a file (ex: runner "script/my_recurring_script", :file => true). [Travis Petticrew]
|
4
|
+
|
5
|
+
== 0.3.1 / June 18th, 2009
|
6
|
+
|
7
|
+
* Whenever no longer fails when trying to load a rails app using an older version of Rails than the system has installed. [Travis Petticrew]
|
8
|
+
|
1
9
|
== 0.3.0 / June 2nd, 2009
|
2
10
|
|
3
11
|
* Added ability to set variables on the fly from the command line (ex: whenever --set environment=staging). [Javan Makhmali]
|
data/lib/job_types/runner.rb
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
module Whenever
|
2
2
|
module Job
|
3
3
|
class Runner < Whenever::Job::Default
|
4
|
-
|
4
|
+
|
5
|
+
def initialize(options = {})
|
6
|
+
super(options)
|
7
|
+
@file = !!options[:file]
|
8
|
+
end
|
9
|
+
|
5
10
|
def output
|
6
11
|
path_required
|
7
|
-
%Q(#{File.join(@path, 'script', 'runner')} -e #{@environment} "#{task}")
|
12
|
+
%Q(#{File.join(@path, 'script', 'runner')} -e #{@environment} #{@file ? task : %Q("#{task}") })
|
8
13
|
end
|
9
14
|
|
10
15
|
end
|
data/whenever.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{whenever}
|
5
|
-
s.version = "0.3.
|
5
|
+
s.version = "0.3.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Javan Makhmali"]
|
9
|
-
s.date = %q{2009-06-
|
9
|
+
s.date = %q{2009-06-18}
|
10
10
|
s.description = %q{Provides clean ruby syntax for defining messy cron jobs and running them Whenever.}
|
11
11
|
s.email = %q{javan@javan.us}
|
12
12
|
s.executables = ["whenever", "wheneverize"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bobotheshortm-whenever
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javan Makhmali
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
12
|
+
date: 2009-06-18 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|