gupta-ankit/fitgem_oauth2

View on GitHub
Rakefile

Summary

Maintainability
Test Coverage
# frozen_string_literal: true

require 'bundler'
require 'rspec/core/rake_task'

Bundler::GemHelper.install_tasks

desc 'Default: run specs.'

RSpec::Core::RakeTask.new(:spec)
task test: :spec

begin
  require 'rubocop/rake_task'
  RuboCop::RakeTask.new do |tsk|
    tsk.fail_on_error = false # do not fail the build if rubocop report
  end
rescue LoadError
  task :rubocop do
    warn 'RuboCop is disabled'
  end
end

task default: %i[spec rubocop]