popolo-project/popolo-engine

View on GitHub
Rakefile

Summary

Maintainability
Test Coverage
begin
  require 'bundler/setup'
rescue LoadError
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end

APP_RAKEFILE = File.expand_path('../spec/dummy/Rakefile', __FILE__)
load 'rails/tasks/engine.rake'

require 'thor'
helper = Bundler::GemHelper.new
helper.install

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