From 61a29a41e1d0d11a9963315aa86d25ed690124c0 Mon Sep 17 00:00:00 2001 From: aycabta Date: Mon, 8 Mar 2021 06:14:03 +0900 Subject: [ruby/rdoc] Allow empty .rdoc_options https://github.com/ruby/rdoc/commit/0c8cb25b50 --- lib/rdoc/rdoc.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/rdoc/rdoc.rb') diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb index c47f639cc4..df04646f3c 100644 --- a/lib/rdoc/rdoc.rb +++ b/lib/rdoc/rdoc.rb @@ -166,6 +166,8 @@ class RDoc::RDoc rescue Psych::SyntaxError end + return RDoc::Options.new if options == false # Allow empty file. + raise RDoc::Error, "#{options_file} is not a valid rdoc options file" unless RDoc::Options === options or Hash === options -- cgit v1.2.3