diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc index 7867a97..c56d63f 100644 --- a/CHANGELOG.rdoc +++ b/CHANGELOG.rdoc @@ -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] @@ -8,6 +8,8 @@ * 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 diff --git a/README.rdoc b/README.rdoc index 52f7b32..443fe2b 100644 --- a/README.rdoc +++ b/README.rdoc @@ -14,7 +14,7 @@ In a Rails (2.1 or greater) application: in your "config/environment.rb" file: 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 To install this gem (and all other missing gem dependencies), run rake gems:install (use sudo if necessary). diff --git a/Rakefile b/Rakefile index 8974076..dcb6d59 100644 --- a/Rakefile +++ b/Rakefile @@ -1,16 +1,13 @@ -require './lib/version' - require 'rubygems' require 'rake' require 'echoe' -WHENEVER_VERSION = Whenever::VERSION::STRING.dup +require File.expand_path(File.dirname(__FILE__) + "/lib/version") -Echoe.new('whenever', WHENEVER_VERSION) do |p| - p.changelog = "CHANGELOG.rdoc" +Echoe.new('whenever', Whenever::VERSION::STRING) do |p| p.description = "Provides clean ruby syntax for defining messy cron jobs and running them Whenever." p.url = "http://github.com/javan/whenever" p.author = "Javan Makhmali" p.email = "javan@javan.us" - p.dependencies = ["chronic", "activesupport"] + p.dependencies = ["chronic >=0.2.3", "activesupport >=1.3.0"] end \ No newline at end of file diff --git a/bin/whenever b/bin/whenever index 141f17c..a1f512d 100644 --- a/bin/whenever +++ b/bin/whenever @@ -4,12 +4,14 @@ require 'rake' require 'optparse' require 'whenever' +require File.expand_path(File.dirname(__FILE__) + "/../lib/version") + task = "whenever:output_cron" OptionParser.new do |opts| opts.banner = "Usage: whenever [options]" 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! Rake::Task[task].invoke \ No newline at end of file diff --git a/lib/version.rb b/lib/version.rb index 34278ab..9e0357d 100644 --- a/lib/version.rb +++ b/lib/version.rb @@ -2,8 +2,8 @@ module Whenever module VERSION #:nodoc: MAJOR = 0 MINOR = 1 - TINY = 2 + TINY = 3 STRING = [MAJOR, MINOR, TINY].join('.') end -end \ No newline at end of file +end unless defined?(Whenever::VERSION) \ No newline at end of file diff --git a/lib/whenever.rb b/lib/whenever.rb index 35dea3d..ff1fed5 100644 --- a/lib/whenever.rb +++ b/lib/whenever.rb @@ -21,6 +21,7 @@ require 'activesupport' require 'chronic' require 'base' +require 'version' require 'job_list' require 'job_types/default' require 'job_types/rake_task' diff --git a/whenever.gemspec b/whenever.gemspec index faf1aa6..9c5c157 100644 --- a/whenever.gemspec +++ b/whenever.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |s| 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.authors = ["Javan Makhmali"] @@ -26,14 +26,14 @@ Gem::Specification.new do |s| s.specification_version = 2 if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - s.add_runtime_dependency(%q, [">= 0"]) - s.add_runtime_dependency(%q, [">= 0"]) + s.add_runtime_dependency(%q, [">= 0.2.3"]) + s.add_runtime_dependency(%q, [">= 1.3.0"]) else - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 0.2.3"]) + s.add_dependency(%q, [">= 1.3.0"]) end else - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 0.2.3"]) + s.add_dependency(%q, [">= 1.3.0"]) end end