diff options
author | Hiroshi SHIBATA <[email protected]> | 2021-06-18 13:59:58 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-06-23 11:05:16 +0900 |
commit | 193eea9dcd77561521a85250aa008fd633a124bc (patch) | |
tree | 04d5f8bdf24524eaec81a53860f7d72aa8066f3f /lib/rdoc | |
parent | f2e39e5fed498b51ae914ed42ec51ae578330583 (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.rb | 4 |
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 |