Minor fixes. Bump to 0.1.3
This commit is contained in:
parent
bf9fb1d6c1
commit
44d6716f80
@ -1,4 +1,4 @@
|
|||||||
== 0.1.2 / February 16th, 2009
|
== 0.1.3 / February 16th, 2009
|
||||||
|
|
||||||
* Added 'rake' helper for defining scheduled rake tasks. [Javan Makhmali]
|
* Added 'rake' helper for defining scheduled rake tasks. [Javan Makhmali]
|
||||||
|
|
||||||
@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
* Got rid of already initialized constant warning. [Javan Makhmali]
|
* Got rid of already initialized constant warning. [Javan Makhmali]
|
||||||
|
|
||||||
|
* Requiring specific gem versions: Chronic >=0.2.3 and activesupport >= 1.3.0 [Javan Makhmali]
|
||||||
|
|
||||||
|
|
||||||
== 0.1.0 / February 15th, 2009
|
== 0.1.0 / February 15th, 2009
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ In a Rails (2.1 or greater) application:
|
|||||||
in your "config/environment.rb" file:
|
in your "config/environment.rb" file:
|
||||||
|
|
||||||
Rails::Initializer.run do |config|
|
Rails::Initializer.run do |config|
|
||||||
config.gem 'javan-whenever', :lib => false, :version => '>= 0.1.2' :source => 'http://gems.github.com'
|
config.gem 'javan-whenever', :lib => false, :version => '>= 0.1.3' :source => 'http://gems.github.com'
|
||||||
end
|
end
|
||||||
|
|
||||||
To install this gem (and all other missing gem dependencies), run rake gems:install (use sudo if necessary).
|
To install this gem (and all other missing gem dependencies), run rake gems:install (use sudo if necessary).
|
||||||
|
9
Rakefile
9
Rakefile
@ -1,16 +1,13 @@
|
|||||||
require './lib/version'
|
|
||||||
|
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
require 'rake'
|
require 'rake'
|
||||||
require 'echoe'
|
require 'echoe'
|
||||||
|
|
||||||
WHENEVER_VERSION = Whenever::VERSION::STRING.dup
|
require File.expand_path(File.dirname(__FILE__) + "/lib/version")
|
||||||
|
|
||||||
Echoe.new('whenever', WHENEVER_VERSION) do |p|
|
Echoe.new('whenever', Whenever::VERSION::STRING) do |p|
|
||||||
p.changelog = "CHANGELOG.rdoc"
|
|
||||||
p.description = "Provides clean ruby syntax for defining messy cron jobs and running them Whenever."
|
p.description = "Provides clean ruby syntax for defining messy cron jobs and running them Whenever."
|
||||||
p.url = "http://github.com/javan/whenever"
|
p.url = "http://github.com/javan/whenever"
|
||||||
p.author = "Javan Makhmali"
|
p.author = "Javan Makhmali"
|
||||||
p.email = "javan@javan.us"
|
p.email = "javan@javan.us"
|
||||||
p.dependencies = ["chronic", "activesupport"]
|
p.dependencies = ["chronic >=0.2.3", "activesupport >=1.3.0"]
|
||||||
end
|
end
|
@ -4,12 +4,14 @@ require 'rake'
|
|||||||
require 'optparse'
|
require 'optparse'
|
||||||
require 'whenever'
|
require 'whenever'
|
||||||
|
|
||||||
|
require File.expand_path(File.dirname(__FILE__) + "/../lib/version")
|
||||||
|
|
||||||
task = "whenever:output_cron"
|
task = "whenever:output_cron"
|
||||||
|
|
||||||
OptionParser.new do |opts|
|
OptionParser.new do |opts|
|
||||||
opts.banner = "Usage: whenever [options]"
|
opts.banner = "Usage: whenever [options]"
|
||||||
opts.on('-c', '--write-crontab') { task = "whenever:write_cron" }
|
opts.on('-c', '--write-crontab') { task = "whenever:write_cron" }
|
||||||
opts.on('-v', '--version') { puts "Whenever v#{WHENEVER_VERSION}"; exit }
|
opts.on('-v', '--version') { puts "Whenever v#{Whenever::VERSION::STRING}"; exit }
|
||||||
end.parse!
|
end.parse!
|
||||||
|
|
||||||
Rake::Task[task].invoke
|
Rake::Task[task].invoke
|
@ -2,8 +2,8 @@ module Whenever
|
|||||||
module VERSION #:nodoc:
|
module VERSION #:nodoc:
|
||||||
MAJOR = 0
|
MAJOR = 0
|
||||||
MINOR = 1
|
MINOR = 1
|
||||||
TINY = 2
|
TINY = 3
|
||||||
|
|
||||||
STRING = [MAJOR, MINOR, TINY].join('.')
|
STRING = [MAJOR, MINOR, TINY].join('.')
|
||||||
end
|
end
|
||||||
end
|
end unless defined?(Whenever::VERSION)
|
@ -21,6 +21,7 @@ require 'activesupport'
|
|||||||
require 'chronic'
|
require 'chronic'
|
||||||
|
|
||||||
require 'base'
|
require 'base'
|
||||||
|
require 'version'
|
||||||
require 'job_list'
|
require 'job_list'
|
||||||
require 'job_types/default'
|
require 'job_types/default'
|
||||||
require 'job_types/rake_task'
|
require 'job_types/rake_task'
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = %q{whenever}
|
s.name = %q{whenever}
|
||||||
s.version = "0.1.2"
|
s.version = "0.1.3"
|
||||||
|
|
||||||
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
||||||
s.authors = ["Javan Makhmali"]
|
s.authors = ["Javan Makhmali"]
|
||||||
@ -26,14 +26,14 @@ Gem::Specification.new do |s|
|
|||||||
s.specification_version = 2
|
s.specification_version = 2
|
||||||
|
|
||||||
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
||||||
s.add_runtime_dependency(%q<chronic>, [">= 0"])
|
s.add_runtime_dependency(%q<chronic>, [">= 0.2.3"])
|
||||||
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
|
s.add_runtime_dependency(%q<activesupport>, [">= 1.3.0"])
|
||||||
else
|
else
|
||||||
s.add_dependency(%q<chronic>, [">= 0"])
|
s.add_dependency(%q<chronic>, [">= 0.2.3"])
|
||||||
s.add_dependency(%q<activesupport>, [">= 0"])
|
s.add_dependency(%q<activesupport>, [">= 1.3.0"])
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
s.add_dependency(%q<chronic>, [">= 0"])
|
s.add_dependency(%q<chronic>, [">= 0.2.3"])
|
||||||
s.add_dependency(%q<activesupport>, [">= 0"])
|
s.add_dependency(%q<activesupport>, [">= 1.3.0"])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user