sferik/mtgox

View on GitHub
Rakefile

Summary

Maintainability
Test Coverage
require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)

task :test => :spec

begin
  require 'rubocop/rake_task'
  RuboCop::RakeTask.new
rescue LoadError
  task :rubocop do
    $stderr.puts 'RuboCop is disabled'
  end
end

require 'yard'
YARD::Rake::YardocTask.new do |task|
  task.files   = %w[LICENSE.md lib/**/*.rb]
  task.options = [
    '--tag', 'authenticated:Requires Authentication',
    '--markup', 'markdown',
  ]
end

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 = 60.5
end

task :default => [:spec, :rubocop, :verify_measurements]