Skip to content

Commit

Permalink
Moved more code out of the bin and into the CommandLine class. Bumped…
Browse files Browse the repository at this point in the history
… to 0.1.7
  • Loading branch information
javan committed Mar 6, 2009
1 parent 841c5a4 commit b2f282c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rdoc
@@ -1,4 +1,4 @@
== 0.1.6 / March 5th, 2009
== 0.1.7 / March 5th, 2009

* Added ability to update the crontab file non-destuctively instead of only overwriting it. [Javan Makhmali -- Inspired by code submitted individually from: Tien Dung (tiendung), Tom Lea (cwninja), Kyle Maxwell (fizx), and Andrew Timberlake (andrewtimberlake) on github]

Expand Down
2 changes: 1 addition & 1 deletion README.rdoc
Expand Up @@ -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.6' :source => 'http://gems.github.com'
config.gem 'javan-whenever', :lib => false, :version => '>= 0.1.7' :source => 'http://gems.github.com'
end

To install this gem (and all other missing gem dependencies), run rake gems:install (use sudo if necessary).
Expand Down
7 changes: 1 addition & 6 deletions bin/whenever
Expand Up @@ -26,9 +26,4 @@ OptionParser.new do |opts|
end
end.parse!

if options[:update] || options[:write]
Whenever::CommandLine.execute(options)
else
puts Whenever.cron(:file => options[:file])
exit
end
Whenever::CommandLine.execute(options)
3 changes: 3 additions & 0 deletions lib/command_line.rb
Expand Up @@ -27,6 +27,9 @@ def run
write_crontab(updated_crontab)
elsif @options[:write]
write_crontab(whenever_cron)
else
puts Whenever.cron(:file => @options[:file])
exit
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/version.rb
Expand Up @@ -2,7 +2,7 @@ module Whenever
module VERSION #:nodoc:
MAJOR = 0
MINOR = 1
TINY = 6
TINY = 7

STRING = [MAJOR, MINOR, TINY].join('.')
end
Expand Down
2 changes: 1 addition & 1 deletion whenever.gemspec
Expand Up @@ -2,7 +2,7 @@

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

s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
s.authors = ["Javan Makhmali"]
Expand Down

0 comments on commit b2f282c

Please sign in to comment.