ruby-changes:66567
From: Hiroshi <ko1@a...>
Date: Wed, 23 Jun 2021 11:06:19 +0900 (JST)
Subject: [ruby-changes:66567] 193eea9dcd (master): [ruby/rdoc] Specify working directory for RDoc::Options#check_files
https://git.ruby-lang.org/ruby.git/commit/?id=193eea9dcd From 193eea9dcd77561521a85250aa008fd633a124bc Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Fri, 18 Jun 2021 13:59:58 +0900 Subject: [ruby/rdoc] Specify working directory for RDoc::Options#check_files https://github.com/ruby/rdoc/commit/f6cca9bd2f --- lib/rdoc/rubygems_hook.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/rdoc/rubygems_hook.rb b/lib/rdoc/rubygems_hook.rb index f4aa965..3781ff9 100644 --- a/lib/rdoc/rubygems_hook.rb +++ b/lib/rdoc/rubygems_hook.rb @@ -120,7 +120,9 @@ class RDoc::RubygemsHook https://github.com/ruby/ruby/blob/trunk/lib/rdoc/rubygems_hook.rb#L120 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 -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/