Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make .rdoc_options file plain ruby objects only #839

Merged
merged 1 commit into from Feb 12, 2022
Merged

Conversation

nobu
Copy link
Member

@nobu nobu commented Sep 15, 2021

Currently, the .rdoc_options file generated by --write-options is not loadable.

$ rm -f .rdoc_options 

$ unset RDOCOPT

$ ruby -I./lib exe/rdoc --write-options

$ grep ^exclude: .rdoc_options 
exclude: !ruby/regexp /~\z|\.orig\z|\.rej\z|\.bak\z|\.gemspec\z/

$ ruby -I./lib exe/rdoc
uh-oh! RDoc had a problem:
Tried to load unspecified class: Regexp

run with --debug for full backtrace

So that the generated `.rdoc_options` file is loadable.
@nobu nobu merged commit adee2ba into ruby:master Feb 12, 2022
@nobu nobu deleted the options branch February 12, 2022 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

1 participant