Skip to content

Commit

Permalink
Ensure YardocTask requires yard itself
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkarns committed Dec 20, 2024
1 parent 3c14200 commit 761a410
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/yard/rake/yardoc_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def initialize(name = :yard)
def define
desc "Generate YARD Documentation" unless ::Rake.application.last_description
task(name) do
require File.expand_path('../../yard', __dir__)

before.call if before.is_a?(Proc)
yardoc = YARD::CLI::Yardoc.new
yardoc.options[:verifier] = verifier if verifier
Expand Down

0 comments on commit 761a410

Please sign in to comment.