Skip to content

Commit

Permalink
Specify working directory for RDoc::Options#check_files
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jun 18, 2021
1 parent fb264c4 commit f6cca9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rdoc/rubygems_hook.rb
Expand Up @@ -120,7 +120,9 @@ def document generator, options, destination
options.exclude ||= [] # TODO maybe move to RDoc::Options#finish
options.setup_generator generator
options.op_dir = destination
options.finish
Dir.chdir @spec.full_gem_path do
options.finish
end

generator = options.generator.new @rdoc.store, options

Expand Down

0 comments on commit f6cca9b

Please sign in to comment.