lib/yard/rake/yardoc_task.rb in yard-0.8.7.6 vs lib/yard/rake/yardoc_task.rb in yard-0.9.0
- old
+ new
@@ -64,15 +64,15 @@
protected
# Defines the rake task
# @return [void]
def define
- desc "Generate YARD Documentation" unless ::Rake.application.last_comment
+ desc "Generate YARD Documentation" unless ::Rake.application.last_description
task(name) do
before.call if before.is_a?(Proc)
yardoc = YARD::CLI::Yardoc.new
yardoc.options[:verifier] = verifier if verifier
- yardoc.run *(options + files)
+ yardoc.run(*(options + files))
YARD::CLI::Stats.run(*(stats_options + ['--use-cache'])) unless stats_options.empty?
after.call if after.is_a?(Proc)
end
end
end