Sha256: 4741a8617df2c4b36b2fbfe10442456652f1fd4b0361c5b5470afcf666a7a34e

Contents?: true

Size: 646 Bytes

Versions: 1

Compression:

Stored size: 646 Bytes

Contents

ruby_19 = RUBY_VERSION > '1.9'
ruby_mri = !defined?(RUBY_ENGINE) || 'ruby' == RUBY_ENGINE
default_gemfile = ENV['BUNDLE_GEMFILE'] =~ /Gemfile$/

if ruby_19 && ruby_mri && default_gemfile
  task :default => [:enable_coverage, :spec, :quality]
else
  task :default => [:spec]
end

require 'bundler'
Bundler::GemHelper.install_tasks

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

task :enable_coverage do
  ENV['COVERAGE'] = 'yes'
end

desc %(Check code quality metrics with Cane)
task :quality do
  sh 'cane',
    '--abc-max=15',
    '--style-measure=110',
    '--gte=coverage/covered_percent,98.9',
    '--max-violations=0'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
faraday_middleware-0.9.1 Rakefile