require 'rake/rdoctask' require 'spec/rake/spectask' task :default => :spec desc 'Run specs' Spec::Rake::SpecTask.new('spec') do |t| t.spec_files = FileList['spec/**/*_spec.rb'] end Rake::RDocTask.new do |task| task.rdoc_dir = 'doc' task.title = 'FastCache - memcache client protocol implementation' task.options << '--line-numbers' << '--inline-source' << '--main' << 'README' task.rdoc_files.include 'README' task.rdoc_files.include 'lib/**/*.rb' end