Rakefile in multi_mime-0.0.2 vs Rakefile in multi_mime-0.0.3
- old
+ new
@@ -1,27 +1,17 @@
-require "bundler"
+require 'bundler'
Bundler.setup
Bundler::GemHelper.install_tasks
-require "yard"
+require 'yard'
YARD::Rake::YardocTask.new
-require "rspec/core/rake_task"
-desc "Run all examples"
+require 'rspec/core/rake_task'
+desc 'Run all examples'
RSpec::Core::RakeTask.new(:spec)
-begin
- require "cane/rake_task"
- namespace :metric do
- desc "Analyze for code quality"
- Cane::RakeTask.new(:quality) do |cane|
- cane.abc_max = 27
- cane.no_doc = true
- cane.style_measure = 200
- end
- end
-rescue LoadError
- warn "Cane is not available, metric:quality task not provided."
-end
+require 'rubocop/rake_task'
+desc 'Run rubocop'
+Rubocop::RakeTask.new(:rubocop)
-task :default => :spec
-task :test => :spec
\ No newline at end of file
+task default: :spec
+task test: :spec