Ditched Jeweler in favor of a self-managed gemspec with the Bundler helpers.
This commit is contained in:
parent
bbd5bcf782
commit
2a89d79a28
4
Gemfile
Normal file
4
Gemfile
Normal file
@ -0,0 +1,4 @@
|
||||
source "http://rubygems.org"
|
||||
|
||||
# Specify your gem's dependencies in newever.gemspec
|
||||
gemspec
|
28
Rakefile
28
Rakefile
@ -1,27 +1,5 @@
|
||||
require 'rubygems'
|
||||
require 'rake'
|
||||
|
||||
require File.expand_path(File.dirname(__FILE__) + "/lib/whenever/version")
|
||||
|
||||
begin
|
||||
require 'jeweler'
|
||||
Jeweler::Tasks.new do |gemspec|
|
||||
gemspec.name = "whenever"
|
||||
gemspec.version = Whenever::VERSION
|
||||
gemspec.summary = "Write your cron jobs in ruby."
|
||||
gemspec.description = "Clean ruby syntax for writing and deploying cron jobs."
|
||||
gemspec.email = "javan@javan.us"
|
||||
gemspec.homepage = "http://github.com/javan/whenever"
|
||||
gemspec.authors = ["Javan Makhmali"]
|
||||
gemspec.add_dependency 'aaronh-chronic', '>= 0.3.9'
|
||||
gemspec.add_dependency 'activesupport', '>= 2.3.4'
|
||||
gemspec.add_development_dependency 'shoulda', '>= 2.1.1'
|
||||
gemspec.add_development_dependency 'mocha', '>= 0.9.5'
|
||||
end
|
||||
Jeweler::GemcutterTasks.new
|
||||
rescue LoadError
|
||||
puts "Jeweler not available. Install it with: sudo gem install jeweler -s http://gemcutter.org"
|
||||
end
|
||||
require 'bundler'
|
||||
Bundler::GemHelper.install_tasks
|
||||
|
||||
require 'rake/testtask'
|
||||
Rake::TestTask.new(:test) do |test|
|
||||
@ -30,6 +8,4 @@ Rake::TestTask.new(:test) do |test|
|
||||
test.verbose = true
|
||||
end
|
||||
|
||||
task :test => :check_dependencies
|
||||
|
||||
task :default => :test
|
@ -39,7 +39,7 @@ module Whenever
|
||||
write_crontab(whenever_cron)
|
||||
else
|
||||
puts Whenever.cron(@options)
|
||||
puts "[message] Above your schedule file converted to cron syntax; your crontab file was not updated."
|
||||
puts "[message] Above is your schedule file converted to cron syntax; your crontab file was not updated."
|
||||
puts "[message] Run `whenever --help' for more options."
|
||||
exit(0)
|
||||
end
|
||||
|
@ -1,3 +1,3 @@
|
||||
module Whenever
|
||||
VERSION = '0.6.2'
|
||||
end unless defined?(Whenever::VERSION)
|
||||
VERSION = '0.6.5'
|
||||
end
|
@ -1,85 +1,22 @@
|
||||
# Generated by jeweler
|
||||
# DO NOT EDIT THIS FILE DIRECTLY
|
||||
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
||||
# -*- encoding: utf-8 -*-
|
||||
$:.push File.expand_path("../lib", __FILE__)
|
||||
require "whenever/version"
|
||||
|
||||
Gem::Specification.new do |s|
|
||||
s.name = %q{whenever}
|
||||
s.version = "0.6.2"
|
||||
|
||||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
||||
s.name = "whenever"
|
||||
s.version = Whenever::VERSION
|
||||
s.platform = Gem::Platform::RUBY
|
||||
s.authors = ["Javan Makhmali"]
|
||||
s.date = %q{2010-10-26}
|
||||
s.email = ["javan@javan.us"]
|
||||
s.homepage = ""
|
||||
s.summary = %q{Cron jobs in ruby.}
|
||||
s.description = %q{Clean ruby syntax for writing and deploying cron jobs.}
|
||||
s.email = %q{javan@javan.us}
|
||||
s.executables = ["whenever", "wheneverize"]
|
||||
s.extra_rdoc_files = [
|
||||
"README.md"
|
||||
]
|
||||
s.files = [
|
||||
".gitignore",
|
||||
"CHANGELOG.md",
|
||||
"README.md",
|
||||
"Rakefile",
|
||||
"bin/whenever",
|
||||
"bin/wheneverize",
|
||||
"lib/whenever.rb",
|
||||
"lib/whenever/capistrano.rb",
|
||||
"lib/whenever/command_line.rb",
|
||||
"lib/whenever/cron.rb",
|
||||
"lib/whenever/job.rb",
|
||||
"lib/whenever/job_list.rb",
|
||||
"lib/whenever/output_redirection.rb",
|
||||
"lib/whenever/setup.rb",
|
||||
"lib/whenever/version.rb",
|
||||
"test/functional/command_line_test.rb",
|
||||
"test/functional/output_at_test.rb",
|
||||
"test/functional/output_default_defined_jobs_test.rb",
|
||||
"test/functional/output_defined_job_test.rb",
|
||||
"test/functional/output_env_test.rb",
|
||||
"test/functional/output_redirection_test.rb",
|
||||
"test/test_helper.rb",
|
||||
"test/unit/cron_test.rb",
|
||||
"test/unit/job_test.rb",
|
||||
"whenever.gemspec"
|
||||
]
|
||||
s.homepage = %q{http://github.com/javan/whenever}
|
||||
s.rdoc_options = ["--charset=UTF-8"]
|
||||
s.files = `git ls-files`.split("\n")
|
||||
s.test_files = `git ls-files -- test/{functional,unit}/*`.split("\n")
|
||||
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
||||
s.require_paths = ["lib"]
|
||||
s.rubygems_version = %q{1.3.7}
|
||||
s.summary = %q{Write your cron jobs in ruby.}
|
||||
s.test_files = [
|
||||
"test/functional/command_line_test.rb",
|
||||
"test/functional/output_at_test.rb",
|
||||
"test/functional/output_default_defined_jobs_test.rb",
|
||||
"test/functional/output_defined_job_test.rb",
|
||||
"test/functional/output_env_test.rb",
|
||||
"test/functional/output_redirection_test.rb",
|
||||
"test/test_helper.rb",
|
||||
"test/unit/cron_test.rb",
|
||||
"test/unit/job_test.rb"
|
||||
]
|
||||
|
||||
if s.respond_to? :specification_version then
|
||||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
||||
s.specification_version = 3
|
||||
|
||||
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
||||
s.add_runtime_dependency(%q<aaronh-chronic>, [">= 0.3.9"])
|
||||
s.add_runtime_dependency(%q<activesupport>, [">= 2.3.4"])
|
||||
s.add_development_dependency(%q<shoulda>, [">= 2.1.1"])
|
||||
s.add_development_dependency(%q<mocha>, [">= 0.9.5"])
|
||||
else
|
||||
s.add_dependency(%q<aaronh-chronic>, [">= 0.3.9"])
|
||||
s.add_dependency(%q<activesupport>, [">= 2.3.4"])
|
||||
s.add_dependency(%q<shoulda>, [">= 2.1.1"])
|
||||
s.add_dependency(%q<mocha>, [">= 0.9.5"])
|
||||
end
|
||||
else
|
||||
s.add_dependency(%q<aaronh-chronic>, [">= 0.3.9"])
|
||||
s.add_dependency(%q<activesupport>, [">= 2.3.4"])
|
||||
s.add_dependency(%q<shoulda>, [">= 2.1.1"])
|
||||
s.add_dependency(%q<mocha>, [">= 0.9.5"])
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user