Rakefile in broken_link_finder-0.9.0 vs Rakefile in broken_link_finder-0.9.1

- old
+ new

@@ -1,34 +1,31 @@ -require "bundler/gem_tasks" -require "rake/testtask" +# frozen_string_literal: true +require 'bundler/gem_tasks' +require 'rake/testtask' + Rake::TestTask.new(:test) do |t| - t.libs << "test" - t.libs << "lib" + t.libs << 'test' + t.libs << 'lib' t.test_files = FileList['test/**/*_test.rb'] end -desc "Print help information" +desc 'Print help information' task default: :help -desc "Print help information" +desc 'Print help information' task :help do - system "bundle exec rake -D" + system 'bundle exec rake -D' end -desc "Run the setup script" -task :setup do - system "./bin/setup" -end - -desc "Run the development console" +desc 'Run the development console' task :console do - system "./bin/console" + system './bin/console' end -desc "Compile all project Ruby files with warnings." +desc 'Compile all project Ruby files with warnings.' task :compile do - paths = Dir["**/*.rb", "**/*.gemspec", 'exe/broken_link_finder'] + paths = Dir['**/*.rb', '**/*.gemspec', 'exe/broken_link_finder'] paths.each do |f| puts "\nCompiling #{f}..." puts `ruby -cw #{f}` end end