Rakefile in sanitize_email-1.2.2 vs Rakefile in sanitize_email-2.0.0

- old
+ new

@@ -13,20 +13,28 @@ task :test => :spec rescue LoadError warn "Failed to load rspec or wwtd" end -require "reek/rake/task" -Reek::Rake::Task.new do |t| - t.fail_on_error = true - t.verbose = false - t.source_files = "lib/**/*.rb" +begin + require "reek/rake/task" + Reek::Rake::Task.new do |t| + t.fail_on_error = true + t.verbose = false + t.source_files = "lib/**/*.rb" + end +rescue LoadError + warn "Failed to load reek" end -require "roodi" -require "roodi_task" -RoodiTask.new do |t| - t.verbose = false +begin + require "roodi" + require "roodi_task" + RoodiTask.new do |t| + t.verbose = false + end +rescue LoadError + warn "Failed to load roodi" end require File.expand_path("../lib/sanitize_email/version", __FILE__) require "rdoc" require "rdoc/task"