2009-02-16 03:24:10 +00:00
|
|
|
require 'rubygems'
|
|
|
|
require 'rake'
|
|
|
|
|
2010-09-06 17:18:39 +00:00
|
|
|
require File.expand_path(File.dirname(__FILE__) + "/lib/whenever/version")
|
2009-02-17 02:32:55 +00:00
|
|
|
|
2009-10-20 19:54:09 +00:00
|
|
|
begin
|
|
|
|
require 'jeweler'
|
|
|
|
Jeweler::Tasks.new do |gemspec|
|
|
|
|
gemspec.name = "whenever"
|
|
|
|
gemspec.version = Whenever::VERSION
|
|
|
|
gemspec.summary = "Clean ruby syntax for defining and deploying messy cron jobs."
|
|
|
|
gemspec.description = "Clean ruby syntax for defining and deploying messy cron jobs."
|
|
|
|
gemspec.email = "javan@javan.us"
|
|
|
|
gemspec.homepage = "http://github.com/javan/whenever"
|
|
|
|
gemspec.authors = ["Javan Makhmali"]
|
2010-09-06 17:18:39 +00:00
|
|
|
gemspec.add_dependency 'activesupport', '>= 2.3.4'
|
|
|
|
gemspec.add_development_dependency 'shoulda', '>= 2.1.1'
|
|
|
|
gemspec.add_development_dependency 'mocha', '>= 0.9.5'
|
2009-10-20 19:54:09 +00:00
|
|
|
end
|
|
|
|
Jeweler::GemcutterTasks.new
|
|
|
|
rescue LoadError
|
|
|
|
puts "Jeweler not available. Install it with: sudo gem install jeweler -s http://gemcutter.org"
|
|
|
|
end
|
|
|
|
|
|
|
|
require 'rake/testtask'
|
|
|
|
Rake::TestTask.new(:test) do |test|
|
2010-09-06 17:18:39 +00:00
|
|
|
test.libs << 'lib' << 'test'
|
|
|
|
test.pattern = 'test/{functional,unit}/**/*_test.rb'
|
|
|
|
test.verbose = true
|
|
|
|
end
|
2009-10-20 19:54:09 +00:00
|
|
|
|
|
|
|
task :test => :check_dependencies
|
|
|
|
|
|
|
|
task :default => :test
|