This commit is contained in:
Loic Nageleisen 2014-12-10 18:33:15 +01:00
commit 32b99b62bf
20 changed files with 644 additions and 0 deletions

21
Rakefile Normal file
View file

@ -0,0 +1,21 @@
require 'yard'
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb']
t.options = %w(- README.md LICENSE CONTRIBUTING)
end
require 'rspec/core'
require 'rspec/core/rake_task'
desc 'Run all specs in spec directory (excluding plugin specs)'
RSpec::Core::RakeTask.new
require 'rubocop/rake_task'
RuboCop::RakeTask.new
desc 'Run RSpec with code coverage'
task :coverage do
ENV['COVERAGE'] = 'yes'
Rake::Task['spec'].execute
end
task default: :spec