Rakefile in silencer-1.0.0.rc3 vs Rakefile in silencer-1.0.0

- old
+ new

@@ -1,21 +1,16 @@ -#!/usr/bin/env rake -require "bundler/gem_tasks" +require 'bundler' +Bundler::GemHelper.install_tasks require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) task :default => :spec -task :test => :spec +task test: :spec -namespace :doc do - require 'yard' - YARD::Rake::YardocTask.new do |task| - task.files = ['lib/**/*.rb'] - task.options = [ - '--protected', - '--output-dir', 'doc/yard', - '--markup', 'markdown', - '--readme', 'README.md' - ] - end -end \ No newline at end of file +require 'rubocop/rake_task' +RuboCop::RakeTask.new + +require 'yard' +YARD::Rake::YardocTask.new + +task default: [:spec, :rubocop]