Rakefile in review-2.1.0 vs Rakefile in review-2.2.0

- old
+ new

@@ -1,32 +1,30 @@ begin require 'bundler' Bundler::GemHelper.install_tasks rescue LoadError # ignore if bundler does not exist + warn "Bundler not found" end require 'rubygems' -require 'rake/testtask' require 'rake/clean' task :default => [:test, :rubocop] +desc "Check with rubocop" task :rubocop do begin require 'rubocop/rake_task' RuboCop::RakeTask.new rescue LoadError warn "rubocop not found" end end -Rake::TestTask.new("test") do |t| - t.libs << "test" - t.test_files = Dir.glob("test/**/test_*.rb") - t.verbose = true - t.warning = false +task :test do + ruby("test/run_test.rb") end begin require 'rcov/rcovtask' Rcov::RcovTask.new do |t| @@ -35,10 +33,11 @@ t.libs << 'test' t.pattern = 'test/test_*.rb' t.verbose = true end rescue LoadError + warn "rcov not found" end begin require 'rdoc/task' Rake::RDocTask.new do |rdoc| @@ -47,6 +46,7 @@ rdoc.title = "review #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end rescue LoadError + warn "rdoc not found" end