require 'rake' require 'rake/testtask' require 'rake/rdoctask' require 'rake/gempackagetask' Rake::TestTask.new do |t| t.libs << "test" << "../ruby-ajp/lib" t.pattern = [ 'test/**/test_*.rb' ] t.verbose = true end Rake::RDocTask.new do |rd| rd.rdoc_files.include *Dir.glob('lib/*.rb') rd.title = "AjpRails: Rails runner, cooperates with HTTPd using AJP" end File.open(File.dirname(__FILE__) + '/ajp-rails.gemspec') { |f| Rake::GemPackageTask.new(eval(f.read)) do |pkg| pkg.need_tar_gz = true pkg.need_zip = true end }