require 'bundler/gem_tasks' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new('spec') RSpec::Core::RakeTask.new('rcov') do |spec| spec.rcov = true spec.rcov_opts = %w[--exclude spec] end task :default => :spec begin require 'yard' YARD::Rake::YardocTask.new rescue LoadError task :yardoc do abort 'YARD is not available. In order to run yardoc, you must: sudo gem install yard' end end