Sha256: 3a8992bb22ed4febf59b7227537ce55187416571231e8d2857094a388f9f6843

Contents?: true

Size: 666 Bytes

Versions: 13

Compression:

Stored size: 666 Bytes

Contents

# frozen_string_literal: true

require "bundler/gem_tasks"

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

desc "Run RuboCop"
task :rubocop do
  require "rubocop"
  result = RuboCop::CLI.new.run([])
  abort("RuboCop failed!") if result.nonzero?
end

namespace :rubocop do
  desc "Auto-correct RuboCop offenses"
  task :autocorrect do
    require "rubocop"
    result = RuboCop::CLI.new.run(["--auto-correct"])
    abort("RuboCop failed!") if result.nonzero?
  end
end

default_suite = ENV["CI"] ? :spec : %i[spec rubocop]
named_suites  = { "rubocop" => :rubocop, "rspec" => :spec }

task :default => named_suites.fetch(ENV["SUITE"], default_suite)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sidekiq-throttled-0.15.1 Rakefile
sidekiq-throttled-0.15.0 Rakefile
sidekiq-throttled-0.14.1 Rakefile
sidekiq-throttled-0.13.0 Rakefile
sidekiq-throttled-0.12.0 Rakefile
sidekiq-throttled-0.11.0 Rakefile
sidekiq-throttled-0.10.0 Rakefile
sidekiq-throttled-0.10.0.beta Rakefile
sidekiq-throttled-0.10.0.alpha Rakefile
sidekiq-throttled-0.9.0 Rakefile
sidekiq-throttled-0.8.2 Rakefile
sidekiq-throttled-0.8.1 Rakefile
sidekiq-throttled-0.8.0 Rakefile