Skip to content

Commit

Permalink
Fixed #705 by not calling desc if ::Rake.application.last_comment is …
Browse files Browse the repository at this point in the history
…set. This allows users to enter their own description for the Rake task.
  • Loading branch information
DavidEGrayson committed Dec 9, 2013
1 parent 546fde3 commit 729f95f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yard/rake/yardoc_task.rb
Expand Up @@ -60,7 +60,7 @@ def initialize(name = :yard)
# Defines the rake task
# @return [void]
def define
desc "Generate YARD Documentation"
desc "Generate YARD Documentation" unless ::Rake.application.last_comment
task(name) do
before.call if before.is_a?(Proc)
yardoc = YARD::CLI::Yardoc.new
Expand Down

0 comments on commit 729f95f

Please sign in to comment.