whenever 0.4.0 → 0.4.1

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.
@@ -1,3 +1,10 @@
1
+ == 0.4.1 / November 30th, 2009
2
+
3
+ * exit(0) instead of just exit to make JRuby happy. [Elan Meng]
4
+
5
+ * Fixed activesupport deprecation warning by requiring active_support. #37 [Andrew Nesbitt]
6
+
7
+
1
8
  == 0.4.0 / October 20th, 2009
2
9
 
3
10
  * New output option replaces the old cron_log option for output redirection and is much more flexible. #31 [Peer Allan]
@@ -10,7 +10,7 @@ options = Hash.new
10
10
 
11
11
  OptionParser.new do |opts|
12
12
  opts.banner = "Usage: whenever [options]"
13
- opts.on('-v', '--version') { puts "Whenever v#{Whenever::VERSION}"; exit }
13
+ opts.on('-v', '--version') { puts "Whenever v#{Whenever::VERSION}"; exit(0) }
14
14
  opts.on('-w', '--write-crontab') { options[:write] = true }
15
15
  opts.on('-i', '--update-crontab [identifier]', 'Default: full path to schedule.rb file') do |identifier|
16
16
  options[:update] = true
@@ -7,15 +7,15 @@ rescue LoadError
7
7
  nil
8
8
  end
9
9
 
10
- # If Rails' rakefile was loaded than so was activesupport, but
10
+ # If Rails' rakefile was loaded than so was active_support, but
11
11
  # if this is being used in a non-rails enviroment we need to require it.
12
12
  # It was previously defined as a dependency of this gem, but that became
13
13
  # problematic. See: http://github.com/javan/whenever/issues#issue/1
14
14
  begin
15
- require 'activesupport'
15
+ require 'active_support'
16
16
  rescue LoadError
17
- warn 'To user Whenever you need the activesupport gem:'
18
- warn '$ sudo gem install activesupport'
17
+ warn 'To user Whenever you need the active_support gem:'
18
+ warn '$ sudo gem install active_support'
19
19
  exit(1)
20
20
  end
21
21
 
@@ -29,7 +29,7 @@ module Whenever
29
29
  write_crontab(whenever_cron)
30
30
  else
31
31
  puts Whenever.cron(@options)
32
- exit
32
+ exit(0)
33
33
  end
34
34
  end
35
35
 
@@ -67,7 +67,7 @@ module Whenever
67
67
  action = 'written' if @options[:write]
68
68
  action = 'updated' if @options[:update]
69
69
  puts "[write] crontab file #{action}"
70
- exit
70
+ exit(0)
71
71
  else
72
72
  warn "[fail] Couldn't write crontab; try running `whenever' with no options to ensure your schedule file is valid."
73
73
  exit(1)
@@ -1,3 +1,3 @@
1
1
  module Whenever
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end unless defined?(Whenever::VERSION)
@@ -115,7 +115,7 @@ class OutputAtTest < Test::Unit::TestCase
115
115
  setup do
116
116
  @output = Whenever.cron \
117
117
  <<-file
118
- every [1.month, 1.day], :at => 'beginning of the month at 5:02am, june 17th at 2:22pm, june 3rd at 3:33am' do
118
+ every [1.month, 1.day], :at => 'january 5:02am, june 17th at 2:22pm, june 3rd at 3:33am' do
119
119
  command "blahblah"
120
120
  end
121
121
  file
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{whenever}
8
- s.version = "0.4.0"
8
+ s.version = "0.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Javan Makhmali"]
12
- s.date = %q{2009-10-20}
12
+ s.date = %q{2009-11-30}
13
13
  s.description = %q{Clean ruby syntax for defining and deploying messy cron jobs.}
14
14
  s.email = %q{javan@javan.us}
15
15
  s.executables = ["whenever", "wheneverize"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whenever
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javan Makhmali
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-20 00:00:00 -04:00
12
+ date: 2009-11-30 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency