summaryrefslogtreecommitdiff
path: root/lib/rdoc
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2021-06-18 13:59:58 +0900
committerNobuyoshi Nakada <[email protected]>2021-06-23 11:05:16 +0900
commit193eea9dcd77561521a85250aa008fd633a124bc (patch)
tree04d5f8bdf24524eaec81a53860f7d72aa8066f3f /lib/rdoc
parentf2e39e5fed498b51ae914ed42ec51ae578330583 (diff)
[ruby/rdoc] Specify working directory for RDoc::Options#check_files
https://github.com/ruby/rdoc/commit/f6cca9bd2f
Diffstat (limited to 'lib/rdoc')
-rw-r--r--lib/rdoc/rubygems_hook.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rdoc/rubygems_hook.rb b/lib/rdoc/rubygems_hook.rb
index f4aa9655ae..3781ff9858 100644
--- a/lib/rdoc/rubygems_hook.rb
+++ b/lib/rdoc/rubygems_hook.rb
@@ -120,7 +120,9 @@ class RDoc::RubygemsHook
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