Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.

Commit

Permalink
Release v0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
javan committed Sep 16, 2010
1 parent 119f26c commit a3d2da9
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 33 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.rdoc
@@ -1,3 +1,14 @@
== 0.5.2 / September 15th, 2010

* Quotes automatically escaped in jobs. [Jay Adkisson]

* Added --cut option to the command line to allow pruning of the crontab. [Peer Allan]

* Switched to aaronh-chronic which is ruby 1.9.2 compatible. [Aaron Hurley, Javan Makhmali]

* Lots of internal reorganizing; tests broken into unit and functional. [Javan Makhmali]


== 0.5.0 / June 28th, 2010

* New job_type API for writing custom jobs. Internals use this to define command, runner, and rake. [Javan Makhmali - inspired by idlefingers (Damien)]
Expand Down
6 changes: 3 additions & 3 deletions README.rdoc
Expand Up @@ -55,9 +55,9 @@ Would run <code>/usr/local/bin/awesome party extreme</code> every two hours. <co

The default job types that ship with Whenever are defined like so:

job_type :command, ':task'
job_type :runner, 'cd :path && script/runner -e :environment ":task"'
job_type :rake, 'cd :path && RAILS_ENV=:environment /usr/bin/env rake :task'
job_type :command, ":task"
job_type :runner, "cd :path && script/runner -e :environment ':task'"
job_type :rake, "cd :path && RAILS_ENV=:environment /usr/bin/env rake :task"

If a <code>:path</code> is not set it will default to the directory in which <code>whenever</code> was executed. <code>:environment</code> will default to 'production'.

Expand Down
6 changes: 3 additions & 3 deletions lib/whenever/job_types/default.rb
@@ -1,3 +1,3 @@
job_type :command, %(:task)
job_type :runner, %(cd :path && script/runner -e :environment ':task')
job_type :rake, %(cd :path && RAILS_ENV=:environment /usr/bin/env rake :task)
job_type :command, ":task"
job_type :runner, "cd :path && script/runner -e :environment ':task'"
job_type :rake, "cd :path && RAILS_ENV=:environment /usr/bin/env rake :task"
2 changes: 1 addition & 1 deletion lib/whenever/version.rb
@@ -1,3 +1,3 @@
module Whenever
VERSION = '0.5.0'
VERSION = '0.5.2'
end unless defined?(Whenever::VERSION)
59 changes: 33 additions & 26 deletions whenever.gemspec
Expand Up @@ -5,11 +5,11 @@

Gem::Specification.new do |s|
s.name = %q{whenever}
s.version = "0.5.0"
s.version = "0.5.2"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Javan Makhmali"]
s.date = %q{2010-06-28}
s.date = %q{2010-09-15}
s.description = %q{Clean ruby syntax for defining and deploying messy cron jobs.}
s.email = %q{javan@javan.us}
s.executables = ["whenever", "wheneverize"]
Expand All @@ -26,22 +26,21 @@ Gem::Specification.new do |s|
"lib/whenever.rb",
"lib/whenever/base.rb",
"lib/whenever/command_line.rb",
"lib/whenever/cron.rb",
"lib/whenever/job.rb",
"lib/whenever/job_list.rb",
"lib/whenever/job_types/default.rb",
"lib/whenever/outputs/cron.rb",
"lib/whenever/outputs/cron/output_redirection.rb",
"lib/whenever/output_redirection.rb",
"lib/whenever/version.rb",
"test/command_line_test.rb",
"test/cron_test.rb",
"test/output_at_test.rb",
"test/output_command_test.rb",
"test/output_defined_job_test.rb",
"test/output_env_test.rb",
"test/output_rake_test.rb",
"test/output_redirection_test.rb",
"test/output_runner_test.rb",
"test/functional/command_line_test.rb",
"test/functional/output_at_test.rb",
"test/functional/output_default_defined_jobs_test.rb",
"test/functional/output_defined_job_test.rb",
"test/functional/output_env_test.rb",
"test/functional/output_redirection_test.rb",
"test/test_helper.rb",
"test/unit/cron_test.rb",
"test/unit/job_test.rb",
"whenever.gemspec"
]
s.homepage = %q{http://github.com/javan/whenever}
Expand All @@ -50,29 +49,37 @@ Gem::Specification.new do |s|
s.rubygems_version = %q{1.3.6}
s.summary = %q{Clean ruby syntax for defining and deploying messy cron jobs.}
s.test_files = [
"test/command_line_test.rb",
"test/cron_test.rb",
"test/output_at_test.rb",
"test/output_command_test.rb",
"test/output_defined_job_test.rb",
"test/output_env_test.rb",
"test/output_rake_test.rb",
"test/output_redirection_test.rb",
"test/output_runner_test.rb",
"test/test_helper.rb"
"test/functional/command_line_test.rb",
"test/functional/output_at_test.rb",
"test/functional/output_default_defined_jobs_test.rb",
"test/functional/output_defined_job_test.rb",
"test/functional/output_env_test.rb",
"test/functional/output_redirection_test.rb",
"test/test_helper.rb",
"test/unit/cron_test.rb",
"test/unit/job_test.rb"
]

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<chronic>, [">= 0.2.3"])
s.add_runtime_dependency(%q<aaronh-chronic>, [">= 0.3.9"])
s.add_runtime_dependency(%q<activesupport>, [">= 2.3.4"])
s.add_development_dependency(%q<shoulda>, [">= 2.1.1"])
s.add_development_dependency(%q<mocha>, [">= 0.9.5"])
else
s.add_dependency(%q<chronic>, [">= 0.2.3"])
s.add_dependency(%q<aaronh-chronic>, [">= 0.3.9"])
s.add_dependency(%q<activesupport>, [">= 2.3.4"])
s.add_dependency(%q<shoulda>, [">= 2.1.1"])
s.add_dependency(%q<mocha>, [">= 0.9.5"])
end
else
s.add_dependency(%q<chronic>, [">= 0.2.3"])
s.add_dependency(%q<aaronh-chronic>, [">= 0.3.9"])
s.add_dependency(%q<activesupport>, [">= 2.3.4"])
s.add_dependency(%q<shoulda>, [">= 2.1.1"])
s.add_dependency(%q<mocha>, [">= 0.9.5"])
end
end

0 comments on commit a3d2da9

Please sign in to comment.