cron_wrapper 0.0.4 → 0.0.5
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/Manifest +0 -1
- data/Rakefile +1 -1
- data/cron_wrapper.gemspec +2 -2
- data/lib/cron_wrapper.rb +7 -5
- data.tar.gz.sig +0 -0
- metadata +4 -4
- metadata.gz.sig +0 -0
data/Manifest
CHANGED
data/Rakefile
CHANGED
|
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
|
2
2
|
require 'rake'
|
|
3
3
|
require 'echoe'
|
|
4
4
|
|
|
5
|
-
Echoe.new('cron_wrapper', '0.0.
|
|
5
|
+
Echoe.new('cron_wrapper', '0.0.5') do |p|
|
|
6
6
|
p.description = "A gem that provides useful features for running ruby or Rails scripts with cron"
|
|
7
7
|
p.url = "http://rubyisbeautiful.com"
|
|
8
8
|
p.author = "Bryan Taylor"
|
data/cron_wrapper.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{cron_wrapper}
|
|
5
|
-
s.version = "0.0.
|
|
5
|
+
s.version = "0.0.5"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = ["Bryan Taylor"]
|
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
|
13
13
|
s.email = %q{btaylor39 @nospam@ csc.com}
|
|
14
14
|
s.executables = ["cron_wrapper"]
|
|
15
15
|
s.extra_rdoc_files = ["bin/cron_wrapper", "lib/cron_wrapper.rb"]
|
|
16
|
-
s.files = ["Manifest", "Rakefile", "bin/cron_wrapper", "
|
|
16
|
+
s.files = ["Manifest", "Rakefile", "bin/cron_wrapper", "lib/cron_wrapper.rb", "spec/cron_wrapper_spec.rb", "spec/spec_helper.rb", "cron_wrapper.gemspec"]
|
|
17
17
|
s.homepage = %q{http://rubyisbeautiful.com}
|
|
18
18
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Cron_wrapper"]
|
|
19
19
|
s.require_paths = ["lib"]
|
data/lib/cron_wrapper.rb
CHANGED
|
@@ -51,14 +51,16 @@ class CronWrapper
|
|
|
51
51
|
@others << e.args
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
+
# if they did not enter a script name, then give them usage
|
|
55
|
+
if ARGV[0].nil? or ARGV[0] == ''
|
|
56
|
+
puts foo.banner
|
|
57
|
+
exit
|
|
58
|
+
end
|
|
59
|
+
|
|
54
60
|
|
|
55
61
|
# Setup rails
|
|
56
62
|
if !@options[:skip_rails]
|
|
57
|
-
|
|
58
|
-
libs = [ File.join(@options[:root], 'config/application.rb') ]
|
|
59
|
-
else
|
|
60
|
-
libs = [ File.join(@options[:root],'config/environment.rb') ]
|
|
61
|
-
end
|
|
63
|
+
libs = [ File.join(@options[:root],'config/environment.rb') ]
|
|
62
64
|
libs.each do |lib|
|
|
63
65
|
begin
|
|
64
66
|
require lib
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cron_wrapper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 21
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 5
|
|
10
|
+
version: 0.0.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Bryan Taylor
|
|
@@ -53,10 +53,10 @@ files:
|
|
|
53
53
|
- Manifest
|
|
54
54
|
- Rakefile
|
|
55
55
|
- bin/cron_wrapper
|
|
56
|
-
- cron_wrapper.gemspec
|
|
57
56
|
- lib/cron_wrapper.rb
|
|
58
57
|
- spec/cron_wrapper_spec.rb
|
|
59
58
|
- spec/spec_helper.rb
|
|
59
|
+
- cron_wrapper.gemspec
|
|
60
60
|
has_rdoc: true
|
|
61
61
|
homepage: http://rubyisbeautiful.com
|
|
62
62
|
licenses: []
|
metadata.gz.sig
CHANGED
|
Binary file
|