2005-01-02 15:16:59 +00:00
|
|
|
require 'rake/testtask'
|
2011-05-24 18:08:11 +00:00
|
|
|
require 'rubygems/package_task'
|
2008-03-18 04:46:51 +00:00
|
|
|
|
2005-01-02 15:16:59 +00:00
|
|
|
task :default => :test
|
2009-09-25 06:16:41 +00:00
|
|
|
Rake::TestTask.new do |t|
|
|
|
|
t.libs << 'test'
|
2005-01-09 15:02:39 +00:00
|
|
|
t.pattern = 'test/**/*_test.rb'
|
2007-10-07 09:15:26 +00:00
|
|
|
t.warning = true
|
2010-08-18 00:21:52 +00:00
|
|
|
t.verbose = true
|
2009-09-25 06:16:41 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
namespace :test do
|
|
|
|
Rake::TestTask.new(:isolated) do |t|
|
|
|
|
t.pattern = 'test/ts_isolated.rb'
|
|
|
|
end
|
2009-04-23 00:41:28 +00:00
|
|
|
end
|
2005-02-15 15:57:44 +00:00
|
|
|
|
|
|
|
# Create compressed packages
|
|
|
|
dist_dirs = [ "lib", "test"]
|
|
|
|
|
2009-09-25 05:24:34 +00:00
|
|
|
spec = eval(File.read('activesupport.gemspec'))
|
2005-02-15 15:57:44 +00:00
|
|
|
|
2011-05-24 18:08:11 +00:00
|
|
|
Gem::PackageTask.new(spec) do |p|
|
2005-02-15 15:57:44 +00:00
|
|
|
p.gem_spec = spec
|
|
|
|
end
|
|
|
|
|
2010-02-05 02:28:45 +00:00
|
|
|
desc "Release to gemcutter"
|
2010-02-05 08:03:03 +00:00
|
|
|
task :release => :package do
|
|
|
|
require 'rake/gemcutter'
|
|
|
|
Rake::Gemcutter::Tasks.new(spec).define
|
|
|
|
Rake::Task['gem:push'].invoke
|
|
|
|
end
|