require 'bundler' Bundler::GemHelper.install_tasks require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) task :default => :spec begin require 'yard' YARD::Rake::YardocTask.new rescue LoadError task :yard do abort 'YARD is not available. In order to run yard, you must: gem install yard' end end