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

Ignore constants discovered in passing #599

Merged
merged 2 commits into from
Feb 21, 2018

Conversation

aycabta
Copy link
Member

@aycabta aycabta commented Feb 20, 2018

This closes #209 and #298.

ref. rails/rails#14150

I confirmed this patch to keep original behavior for all CRuby documents.

RDoc::Parser::Ruby#parse_constant registers nested constants
automatically. For example, it registers module 'A' and 'B' with
A::B::C. Second, constant 'C' is registered if assign token '=' comes.
This logic automatically registers 'A' and 'B' if assign token doesn't
come. This commit fixes it.
RDoc::Context#add_module_alias registers module alias only when original
module found, but the original modules are sometimes registered in other
files. This commit fixes it with lazy registration module alias.
@aycabta aycabta merged commit 2e836d2 into ruby:master Feb 21, 2018
@aycabta aycabta deleted the ignore-constants-discovered-in-passing branch February 21, 2018 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

rdoc coverage reporting wierd stuff
1 participant