rails / sdoc

Standalone sdoc generator
http://api.rubyonrails.org/
Other
823 stars 131 forks source link

fix: Updated check logic for `token_stream` existence #346

Closed toshimaru closed 7 months ago

toshimaru commented 8 months ago

Due to the change in https://github.com/ruby/rdoc/pull/1055, token_stream returns empty Array instead of nil, so update check logic for token_stream existence.


The comment says "source_url is also nil", so add a test to cover that case.

toshimaru commented 7 months ago

Since https://github.com/ruby/rdoc/pull/1056 has been merged, I am closing this PR.