Sha256: e3592c8df8cc1cd770004c50576b5b389a1a34b20732b6034257658ca84b8558
Contents?: true
Size: 665 Bytes
Versions: 5
Compression:
Stored size: 665 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-throttled-0.7.3 | Rakefile |
sidekiq-throttled-0.7.2 | Rakefile |
sidekiq-throttled-0.7.1 | Rakefile |
sidekiq-throttled-0.7.0 | Rakefile |
sidekiq-throttled-0.6.7 | Rakefile |