Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

gem loading

  • Loading branch information...
commit 97d5f95361056ae1a99b7ec46e8082d7578eacf0 1 parent 3f966d9
unknown authored
Showing with 49 additions and 42 deletions.
  1. +23 −23 LICENSE
  2. +18 −18 crontest.gemspec
  3. +8 −1 crontest.rb
View
46 LICENSE
@@ -1,23 +1,23 @@
-Copyright (c) 2010, Ari Russo
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
- * The names of its contributors may not be used to endorse or promote products
- derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
-DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+Copyright (c) 2010, Ari Russo
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ * The names of its contributors may not be used to endorse or promote products
+ derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
36 crontest.gemspec
@@ -1,18 +1,18 @@
-# -*- encoding: utf-8 -*-
-
-Gem::Specification.new do |s|
- s.name = "crontest"
- s.version = '0.0.3'
-
- s.authors = ["Ari Russo"]
- s.description = "ruby library/command line tool for testing cron jobs"
- s.summary = "Execute an (almost) immediate and transient cron job"
- s.email = ["ari.russo@gmail.com"]
- s.files = Dir.glob("{lib}/**/*") + %w(crontest.rb crontest LICENSE README.org)
- s.homepage = %q{http://github.com/arirusso/crontest}
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.5}
- s.specification_version = 3
-
- s.add_development_dependency("clap")
-end
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = "crontest"
+ s.version = '0.0.3'
+
+ s.authors = ["Ari Russo"]
+ s.description = "ruby library/command line tool for testing cron jobs"
+ s.summary = "Execute an (almost) immediate and transient cron job"
+ s.email = ["ari.russo@gmail.com"]
+ s.files = Dir.glob("{lib}/**/*") + %w(crontest.rb crontest LICENSE README.org)
+ s.homepage = %q{http://github.com/arirusso/crontest}
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.5}
+ s.specification_version = 3
+
+ s.add_development_dependency("clap")
+end
View
9 crontest.rb
@@ -1 +1,8 @@
-%w{crontest crontab_file crontab_helper}.each { |f| require File.expand_path("lib/#{f}", File.dirname(__FILE__)) }
+begin
+ require 'rubygems'
+rescue LoadError
+end
+
+require 'clap'
+
+%w{crontest crontab_file crontab_helper}.each { |f| require File.expand_path("lib/#{f}", File.dirname(__FILE__)) }
Please sign in to comment.
Something went wrong with that request. Please try again.