Rakefile in review-2.3.0 vs Rakefile in review-2.4.0

- old
+ new

@@ -1,30 +1,30 @@ begin require 'bundler' Bundler::GemHelper.install_tasks rescue LoadError # ignore if bundler does not exist - warn "Bundler not found" + warn 'Bundler not found' end require 'rubygems' require 'rake/clean' -task :default => [:test, :rubocop] +task default: %i[test rubocop] -desc "Check with rubocop" +desc 'Check with rubocop' task :rubocop do begin require 'rubocop/rake_task' RuboCop::RakeTask.new rescue LoadError - warn "rubocop not found" + warn 'rubocop not found' end end task :test do - ruby("test/run_test.rb") + ruby('test/run_test.rb') end begin require 'rcov/rcovtask' Rcov::RcovTask.new do |t| @@ -33,20 +33,20 @@ t.libs << 'test' t.pattern = 'test/test_*.rb' t.verbose = true end rescue LoadError - warn "rcov not found" + warn 'rcov not found' end begin require 'rdoc/task' Rake::RDocTask.new do |rdoc| - version = File.exist?('VERSION') ? File.read('VERSION') : "" + version = File.exist?('VERSION') ? File.read('VERSION') : '' rdoc.rdoc_dir = 'rdoc' rdoc.title = "review #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end rescue LoadError - warn "rdoc not found" + warn 'rdoc not found' end