require "rubygems" require "rake" require "spec/rake/spectask" require "rake/rdoctask" task :default => :spec Spec::Rake::SpecTask.new do |spec| spec.spec_files = FileList["spec/**/*_spec.rb"] spec.spec_opts << "--color" end Rake::RDocTask.new do |rdoc| rdoc.title = "Apricot eats Gorilla" rdoc.rdoc_dir = "rdoc" rdoc.main = "README.rdoc" rdoc.rdoc_files.include("README.rdoc", "lib/**/*.rb") rdoc.options = ["--line-numbers", "--inline-source"] end