Rakefile in ddplugin-1.0.1 vs Rakefile in ddplugin-1.0.2
- old
+ new
@@ -1,14 +1,16 @@
+# frozen_string_literal: true
+
require 'rake/testtask'
require 'rubocop/rake_task'
Rake::TestTask.new do |t|
- t.libs = %w( lib test )
+ t.libs = %w[lib test]
t.test_files = FileList['test/**/test_*.rb', 'test/**/*_spec.rb']
end
RuboCop::RakeTask.new do |task|
- task.options = %w(--display-cop-names --format simple)
+ task.options = %w[--display-cop-names --format simple]
task.patterns = ['lib/**/*.rb', 'test/**/*.rb']
end
-task :default => [:test, :rubocop]
+task default: %i[test rubocop]