scottmotte-whenever 0.3.7 → 0.3.8

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.7
1
+ 0.3.8
@@ -5,12 +5,13 @@ module Whenever
5
5
  attr_accessor :task, :at, :cron_log
6
6
 
7
7
  def initialize(options = {})
8
- @task = options[:task]
9
- @at = options[:at]
10
- @cron_log = options[:cron_log]
11
- @environment = options[:environment] || :production
12
- @framework_env = options[:framework_env] || "RAILS_ENV"
13
- @path = options[:path] || Whenever.path
8
+ @task = options[:task]
9
+ @at = options[:at]
10
+ @cron_log = options[:cron_log]
11
+ @environment = options[:environment] || :production
12
+ @framework_env = options[:framework_env] || "RAILS_ENV"
13
+ @rake_path = options[:rake_path] || "/usr/bin/env rake"
14
+ @path = options[:path] || Whenever.path
14
15
  end
15
16
 
16
17
  def output
@@ -4,7 +4,7 @@ module Whenever
4
4
 
5
5
  def output
6
6
  path_required
7
- "cd #{@path} && #{@framework_env}=#{@environment} /usr/bin/env rake #{task}"
7
+ "cd #{@path} && #{@framework_env}=#{@environment} #{@rake_path} #{task}"
8
8
  end
9
9
 
10
10
  end
data/whenever.gemspec ADDED
@@ -0,0 +1,72 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{whenever}
5
+ s.version = "0.3.8"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Javan Makhmali", "Scott Motte"]
9
+ s.date = %q{2009-07-26}
10
+ s.description = %q{Provides clean ruby syntax for defining messy cron jobs and running them Whenever.}
11
+ s.email = %q{javan@javan.us}
12
+ s.executables = ["whenever", "wheneverize"]
13
+ s.extra_rdoc_files = [
14
+ "README.rdoc"
15
+ ]
16
+ s.files = [
17
+ ".gitignore",
18
+ "CHANGELOG.rdoc",
19
+ "Manifest",
20
+ "README.rdoc",
21
+ "Rakefile",
22
+ "VERSION",
23
+ "bin/whenever",
24
+ "bin/wheneverize",
25
+ "lib/base.rb",
26
+ "lib/command_line.rb",
27
+ "lib/job_list.rb",
28
+ "lib/job_types/default.rb",
29
+ "lib/job_types/rake_task.rb",
30
+ "lib/job_types/runner.rb",
31
+ "lib/outputs/cron.rb",
32
+ "lib/version.rb",
33
+ "lib/whenever.rb",
34
+ "test/command_line_test.rb",
35
+ "test/cron_test.rb",
36
+ "test/output_at_test.rb",
37
+ "test/output_command_test.rb",
38
+ "test/output_env_test.rb",
39
+ "test/output_rake_test.rb",
40
+ "test/output_runner_test.rb",
41
+ "test/test_helper.rb",
42
+ "whenever.gemspec"
43
+ ]
44
+ s.homepage = %q{http://github.com/scottmotte/whenever}
45
+ s.rdoc_options = ["--charset=UTF-8"]
46
+ s.require_paths = ["lib"]
47
+ s.rubygems_version = %q{1.3.4}
48
+ s.summary = %q{Provides clean ruby syntax for defining messy cron jobs and running them Whenever.}
49
+ s.test_files = [
50
+ "test/command_line_test.rb",
51
+ "test/cron_test.rb",
52
+ "test/output_at_test.rb",
53
+ "test/output_command_test.rb",
54
+ "test/output_env_test.rb",
55
+ "test/output_rake_test.rb",
56
+ "test/output_runner_test.rb",
57
+ "test/test_helper.rb"
58
+ ]
59
+
60
+ if s.respond_to? :specification_version then
61
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
62
+ s.specification_version = 3
63
+
64
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
65
+ s.add_runtime_dependency(%q<chronic>, [">= 0"])
66
+ else
67
+ s.add_dependency(%q<chronic>, [">= 0"])
68
+ end
69
+ else
70
+ s.add_dependency(%q<chronic>, [">= 0"])
71
+ end
72
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scottmotte-whenever
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javan Makhmali
@@ -58,6 +58,7 @@ files:
58
58
  - test/output_rake_test.rb
59
59
  - test/output_runner_test.rb
60
60
  - test/test_helper.rb
61
+ - whenever.gemspec
61
62
  has_rdoc: false
62
63
  homepage: http://github.com/scottmotte/whenever
63
64
  post_install_message: