diff options
author | zzak <[email protected]> | 2023-03-04 22:24:01 +0900 |
---|---|---|
committer | git <[email protected]> | 2023-05-06 07:39:24 +0000 |
commit | 8b2884c0b51e4733c09ecbb388ca1b236bad738b (patch) | |
tree | 220d66663e79698fd81e02cee29c03ac4ded0e81 /lib/rdoc/rdoc.rb | |
parent | 40438fc4d35738cad32d2bb7a0426ee2b1e32ade (diff) |
[ruby/rdoc] Isolate root dir if specified
This ensures only files from the root directory are chosen, in order to allow a clean build from outside the source directory.
https://github.com/ruby/rdoc/commit/f3b389aa9e
Diffstat (limited to 'lib/rdoc/rdoc.rb')
-rw-r--r-- | lib/rdoc/rdoc.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb index 7e17b71d6b..2da6d9b575 100644 --- a/lib/rdoc/rdoc.rb +++ b/lib/rdoc/rdoc.rb @@ -119,7 +119,7 @@ class RDoc::RDoc # +files+. def gather_files files - files = ["."] if files.empty? + files = [@options.root.to_s] if files.empty? file_list = normalized_file_list files, true, @options.exclude |