Rakefile in docparser-0.1.2 vs Rakefile in docparser-0.1.3

- old
+ new

@@ -1,16 +1,22 @@ -require "bundler/gem_tasks" +require 'bundler/gem_tasks' require 'rake/testtask' +require 'rubocop' +require 'yard' +YARD::Rake::YardocTask.new Rake::TestTask.new do |t| t.libs << 'lib/docparser' t.test_files = FileList['test/lib/**/*_test.rb'] t.verbose = true end task test: :rubocop task :rubocop do - sh 'rubocop' + puts "Running Rubocop #{Rubocop::Version::STRING}" + args = FileList['**/*.rb', 'Rakefile', 'docparser.gemspec'] + cli = Rubocop::CLI.new + fail unless cli.run(args) == 0 end -task :default => :test +task default: :test \ No newline at end of file