Rakefile in action_controller_tweaks-0.3.1 vs Rakefile in action_controller_tweaks-0.3.2
- old
+ new
@@ -1,15 +1,18 @@
require "appraisal"
require "bundler"
require "rspec/core/rake_task"
+require "rubocop/rake_task"
Bundler::GemHelper.install_tasks
RSpec::Core::RakeTask.new(:spec)
+RuboCop::RakeTask.new(:rubocop)
+
if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"]
task :default do
sh "appraisal install && rake appraisal spec"
end
else
- task :default => :spec
+ task default: [:spec]
end