Sha256: 27f48ed79700228965bdce29d3fd6bb3ae553902d07cc89bfca7d8f897e334c8

Contents?: true

Size: 754 Bytes

Versions: 27

Compression:

Stored size: 754 Bytes

Contents

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

desc('Documentation stats and measurements')
task('qa:docs') do
  yaml = YAML.load_file(File.expand_path('../.yardstick.yml', __FILE__))
  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

desc('Codestyle check and linter')
RuboCop::RakeTask.new('qa:code') do |task|
  task.fail_on_error = true
  task.patterns = [
    'lib/**/*.rb',
    'spec/**/*.rb'
  ]
end

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

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

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
jsonapi.rb-1.5.7 Rakefile
jsonapi.rb-1.5.6 Rakefile
jsonapi.rb-1.5.5 Rakefile
jsonapi.rb-1.5.4 Rakefile
otp-jwt-0.2.4 Rakefile
jsonapi.rb-1.4.5 Rakefile
otp-jwt-0.2.3 Rakefile
otp-jwt-0.2.2 Rakefile
otp-jwt-0.2.1 Rakefile
otp-jwt-0.2.0 Rakefile
otp-jwt-0.1.0 Rakefile
jsonapi.rb-1.4.4 Rakefile
jsonapi.rb-1.4.3 Rakefile
jsonapi.rb-1.4.2 Rakefile
jsonapi.rb-1.4.1 Rakefile
jsonapi.rb-1.4.0 Rakefile
jsonapi.rb-1.3.3 Rakefile
jsonapi.rb-1.3.2 Rakefile
jsonapi.rb-1.3.1 Rakefile
jsonapi.rb-1.3.0 Rakefile