Rakefile in multi_mime-0.0.4 vs Rakefile in multi_mime-1.0

- old
+ new

@@ -1,17 +1,23 @@ require 'bundler' Bundler.setup Bundler::GemHelper.install_tasks -require 'yard' -YARD::Rake::YardocTask.new - require 'rspec/core/rake_task' desc 'Run all examples' RSpec::Core::RakeTask.new(:spec) -require 'rubocop/rake_task' -desc 'Run rubocop' -Rubocop::RakeTask.new(:rubocop) +begin + require 'yard' + YARD::Rake::YardocTask.new +rescue LoadError +end + +begin + require 'rubocop/rake_task' + desc 'Run rubocop' + Rubocop::RakeTask.new(:rubocop) +rescue LoadError +end task default: :spec task test: :spec