Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (30 sloc) 0.784 kB
require 'bundler'
Bundler::GemHelper.install_tasks
task :erd do
`bundle exec ruby ./etc/erd.rb > ./etc/erd.dot`
`dot -Tpng ./etc/erd.dot -o ./etc/erd.png`
`open ./etc/erd.png`
end
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :test => :spec
begin
require 'rubocop/rake_task'
Rubocop::RakeTask.new
rescue LoadError
desc 'Run RuboCop'
task :rubocop do
$stderr.puts 'Rubocop is disabled'
end
end
require 'yard'
YARD::Rake::YardocTask.new
require 'yardstick/rake/measurement'
Yardstick::Rake::Measurement.new do |measurement|
measurement.output = 'measurement/report.txt'
end
require 'yardstick/rake/verify'
Yardstick::Rake::Verify.new do |verify|
verify.threshold = 59.9
end
task :default => [:spec, :rubocop, :verify_measurements]
Jump to Line
Something went wrong with that request. Please try again.