Rakefile in sidekiq-throttled-0.7.3 vs Rakefile in sidekiq-throttled-0.8.0
- old
+ new
@@ -1,6 +1,7 @@
# frozen_string_literal: true
+
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
@@ -18,9 +19,9 @@
result = RuboCop::CLI.new.run(["--auto-correct"])
abort("RuboCop failed!") if result.nonzero?
end
end
-default_suite = ENV["CI"] ? :spec : %i(spec rubocop)
+default_suite = ENV["CI"] ? :spec : %i[spec rubocop]
named_suites = { "rubocop" => :rubocop, "rspec" => :spec }
task :default => named_suites.fetch(ENV["SUITE"], default_suite)