Rakefile in docparser-0.2.3 vs Rakefile in docparser-0.3.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'rubocop'
require 'yard'
YARD::Rake::YardocTask.new
@@ -14,9 +16,9 @@
task :rubocop do
puts "Running Rubocop #{RuboCop::Version::STRING}"
args = FileList['**/*.rb', 'Rakefile', 'docparser.gemspec', 'Gemfile']
cli = RuboCop::CLI.new
- fail unless cli.run(args) == 0
+ raise unless cli.run(args).zero?
end
task default: :test