require 'rake/testtask' require 'yard' require 'yard/rake/yardoc_task' task :default => :test desc 'Run tests.' Rake::TestTask.new(:test) do |task| task.test_files = FileList['test/*_test.rb'] task.verbose = true end desc 'Build Yardoc documentation.' YARD::Rake::YardocTask.new :yardoc do |t| t.files = ['lib/**/*.rb'] t.options = ['--output-dir', "doc/", '--files', 'LICENSE', '--readme', 'README.md', '--title', 'resque-lock-timeout documentation'] end