Rakefile in bagit-0.4.2 vs Rakefile in bagit-0.4.3
- old
+ new
@@ -3,14 +3,20 @@
Bundler.setup(:default, :development, :test)
require 'rake'
require 'rdoc/task'
require 'rspec/core/rake_task'
+require 'rubocop/rake_task'
Bundler::GemHelper.install_tasks
+desc 'Run rubocop'
+task :rubocop do
+ RuboCop::RakeTask.new
+end
+
RSpec::Core::RakeTask.new do |t|
t.pattern = 'spec/**/*_spec.rb'
- t.rspec_opts = %w(--format documentation --color)
+ t.rspec_opts = %w[--format documentation --color]
end
-task :default => [:spec]
+task default: [:rubocop, :spec]