Rakefile in resque-kubernetes-0.10.0 vs Rakefile in resque-kubernetes-1.1.0
- old
+ new
@@ -1,16 +1,22 @@
# frozen_string_literal: true
+require "appraisal/task"
+require "bundler/audit/task"
require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "rubocop/rake_task"
-require "bundler/audit/task"
RSpec::Core::RakeTask.new(:spec)
RuboCop::RakeTask.new
Bundler::Audit::Task.new
+Appraisal::Task.new
# Remove default and replace with a series of test tasks
task default: []
Rake::Task[:default].clear
-task default: %w[spec rubocop bundle:audit]
+if ENV["APPRAISAL_INITIALIZED"]
+ task default: %i[spec]
+else
+ task default: %i[rubocop bundle:audit appraisal]
+end