--no-api and --api creates incorrect verifier expression for YardocTask #559

chtrinh opened this Issue Jun 19, 2012 · 0 comments


None yet
2 participants

chtrinh commented Jun 19, 2012

There is a test case for --no-api options being used in conjunction with --api, however it does not take in consideration of YardocTask.
When passing both these options to YardocTask, it creates an incorrect verifier expression due to Yardoc#parse_arguments being run twice. On the first pass Yardoc#parse_arguments executes Yardoc#add_api_verifier which delete the no_api placeholder. On the second pass Yardoc#run also executes Yardoc#parse_arguments and subsequently Yardoc#add_api_verifier but the placeholder for no_api is removed thus invalidating the Verifier expression and generates nothing.

@lsegal lsegal closed this in 02db880 Jul 14, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment