Sha256: 7639d0a0c1c3f99513919ad7a5aaa28ec31ad068a3ba9becfebfb7496ca70754

Contents?: true

Size: 593 Bytes

Versions: 15

Compression:

Stored size: 593 Bytes

Contents

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'yaml'
require 'yardstick/rake/verify'

desc('Documentation stats and measurements')
task('qa:docs') do
  yaml = YAML.load_file('.yardstick.yml')
  config = Yardstick::Config.coerce(yaml)
  measure = Yardstick.measure(config)
  measure.puts
  coverage = Yardstick.round_percentage(measure.coverage * 100)
  exit(1) if coverage < config.threshold
end

RuboCop::RakeTask.new('qa:code')

desc('Run QA tasks')
task(qa: ['qa:docs', 'qa:code'])

RSpec::Core::RakeTask.new(spec: :qa)
task(default: :spec)

Version data entries

15 entries across 15 versions & 6 rubygems

Version Path
active_record-pgcrypto-0.2.4 Rakefile
dpd-0.1.0 Rakefile
tnt.rb-0.1.0 Rakefile
active_record-pgcrypto-0.2.3 Rakefile
fluxx-0.1.5 Rakefile
fluxx-0.1.4 Rakefile
fluxx-0.1.3 Rakefile
fluxx-0.1.1 Rakefile
active_record-pgcrypto-0.2.2 Rakefile
active_record-pgcrypto-0.2.1 Rakefile
active_record-pgcrypto-0.2.0 Rakefile
active_record-pgcrypto-0.1.1 Rakefile
paylike.rb-0.1.0 Rakefile
http-rest_client-0.1.1 Rakefile
http-rest_client-0.1.0 Rakefile