Sha256: b7931288af7bbb44bc9530f712d9c87aa2fa4f48536fa285ad67c9f73d45ac51
Contents?: true
Size: 677 Bytes
Versions: 5
Compression:
Stored size: 677 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.fetch("SUITE", nil), default_suite)
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-throttled-0.18.0 | Rakefile |
sidekiq-throttled-0.17.0 | Rakefile |
sidekiq-throttled-0.16.2 | Rakefile |
sidekiq-throttled-0.16.1 | Rakefile |
sidekiq-throttled-0.16.0 | Rakefile |