1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Workaround with fbb4e3f96c in rdoc

This commit is contained in:
Hiroshi SHIBATA 2021-05-17 12:04:40 +09:00
parent 8e91b969df
commit d8fd92f620
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
2 changed files with 4 additions and 4 deletions

View file

@ -162,7 +162,7 @@ class RDoc::RDoc
RDoc.load_yaml RDoc.load_yaml
begin begin
options = YAML.load_file '.rdoc_options' options = YAML.unsafe_load_file '.rdoc_options'
rescue Psych::SyntaxError rescue Psych::SyntaxError
end end

View file

@ -145,7 +145,7 @@ class TestRDocOptions < RDoc::TestCase
@options.encoding = Encoding::IBM437 @options.encoding = Encoding::IBM437
options = YAML.load YAML.dump @options options = YAML.unsafe_load YAML.dump @options
assert_equal Encoding::IBM437, options.encoding assert_equal Encoding::IBM437, options.encoding
end end
@ -161,7 +161,7 @@ rdoc_include:
- /etc - /etc
YAML YAML
options = YAML.load yaml options = YAML.unsafe_load yaml
assert_empty options.rdoc_include assert_empty options.rdoc_include
assert_empty options.static_path assert_empty options.static_path
@ -749,7 +749,7 @@ rdoc_include:
assert File.exist? '.rdoc_options' assert File.exist? '.rdoc_options'
assert_equal @options, YAML.load(File.read('.rdoc_options')) assert_equal @options, YAML.unsafe_load(File.read('.rdoc_options'))
end end
end end