#!/usr/bin/env rake require 'rubygems' require 'bundler' Bundler.setup :default, :test, :development Bundler::GemHelper.install_tasks if ENV['COVERAGE'] require 'simplecov' SimpleCov.start do add_filter '/test/' add_filter '/features/' end end require 'yard' YARD::Config.load_plugin('yard-tomdoc') YARD::Rake::YardocTask.new do |t| t.files = ['lib/**/*.rb'] t.options = %w(-r README.md) end require 'rake/testtask' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.libs << 'test' t.pattern = 'test/**/*_test.rb' t.verbose = false t.warning = true end desc 'runs the whole spinach suite' task :spinach do ruby '-S spinach' end require 'rubocop/rake_task' RuboCop::RakeTask.new(:rubocop) task default: [:rubocop, :test, :spinach]