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:
parent
8e91b969df
commit
d8fd92f620
2 changed files with 4 additions and 4 deletions
|
@ -162,7 +162,7 @@ class RDoc::RDoc
|
|||
RDoc.load_yaml
|
||||
|
||||
begin
|
||||
options = YAML.load_file '.rdoc_options'
|
||||
options = YAML.unsafe_load_file '.rdoc_options'
|
||||
rescue Psych::SyntaxError
|
||||
end
|
||||
|
||||
|
|
|
@ -145,7 +145,7 @@ class TestRDocOptions < RDoc::TestCase
|
|||
|
||||
@options.encoding = Encoding::IBM437
|
||||
|
||||
options = YAML.load YAML.dump @options
|
||||
options = YAML.unsafe_load YAML.dump @options
|
||||
|
||||
assert_equal Encoding::IBM437, options.encoding
|
||||
end
|
||||
|
@ -161,7 +161,7 @@ rdoc_include:
|
|||
- /etc
|
||||
YAML
|
||||
|
||||
options = YAML.load yaml
|
||||
options = YAML.unsafe_load yaml
|
||||
|
||||
assert_empty options.rdoc_include
|
||||
assert_empty options.static_path
|
||||
|
@ -749,7 +749,7 @@ rdoc_include:
|
|||
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue