javan-whenever 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.rdoc CHANGED
@@ -1,4 +1,4 @@
1
- == 0.1.6 / March 5th, 2009
1
+ == 0.1.7 / March 5th, 2009
2
2
 
3
3
  * 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]
4
4
 
data/README.rdoc CHANGED
@@ -14,7 +14,7 @@ In a Rails (2.1 or greater) application:
14
14
  in your "config/environment.rb" file:
15
15
 
16
16
  Rails::Initializer.run do |config|
17
- config.gem 'javan-whenever', :lib => false, :version => '>= 0.1.6' :source => 'http://gems.github.com'
17
+ config.gem 'javan-whenever', :lib => false, :version => '>= 0.1.7' :source => 'http://gems.github.com'
18
18
  end
19
19
 
20
20
  To install this gem (and all other missing gem dependencies), run rake gems:install (use sudo if necessary).
data/bin/whenever CHANGED
@@ -26,9 +26,4 @@ OptionParser.new do |opts|
26
26
  end
27
27
  end.parse!
28
28
 
29
- if options[:update] || options[:write]
30
- Whenever::CommandLine.execute(options)
31
- else
32
- puts Whenever.cron(:file => options[:file])
33
- exit
34
- end
29
+ Whenever::CommandLine.execute(options)
data/lib/command_line.rb CHANGED
@@ -27,6 +27,9 @@ module Whenever
27
27
  write_crontab(updated_crontab)
28
28
  elsif @options[:write]
29
29
  write_crontab(whenever_cron)
30
+ else
31
+ puts Whenever.cron(:file => @options[:file])
32
+ exit
30
33
  end
31
34
  end
32
35
 
data/lib/version.rb CHANGED
@@ -2,7 +2,7 @@ module Whenever
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 6
5
+ TINY = 7
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/whenever.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{whenever}
5
- s.version = "0.1.6"
5
+ s.version = "0.1.7"
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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: javan-whenever
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javan Makhmali