Skip to content

Commit

Permalink
Ignore locale at write_options
Browse files Browse the repository at this point in the history
`@locale` is set from `@locale_name` after `write_options`, and is not
to expected to load.
  • Loading branch information
nobu committed Jan 6, 2024
1 parent 4c9a690 commit 663a667
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions lib/rdoc/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class RDoc::Options
generator_name
generator_options
generators
locale
op_dir
page_dir
option_parser
Expand Down
1 change: 0 additions & 1 deletion test/rdoc/test_rdoc_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def test_to_yaml
'exclude' => %w[~\z \.orig\z \.rej\z \.bak\z \.gemspec\z],
'hyperlink_all' => false,
'line_numbers' => false,
'locale' => nil,
'locale_dir' => 'locale',
'locale_name' => nil,
'main_page' => nil,
Expand Down

0 comments on commit 663a667

Please sign in to comment.