lsegal/yard — Issue #400: gem install (and gem rdoc) no longer installs rdoc or ri
Author: joekhoobyar
Created: 2011-10-20 13:13:42+00:00
State: open

After installing yard, neither `gem install` nor `gem rdoc` is able to install rdoc or ri, even when specifying --rdoc or --ri. I imagine that this is not intentional, but maybe I'm missing something.

I tracked the problem down to the fact that the overridden setup/install methods in lib/yard/rubygems/doc_manager.rb is actually more restrictive than the original rubygems version.

I've created a fix that also retains the behavior where `has_yardoc? == true` inhibits rdoc generation, and tested that the yri, ri, and rdoc are all being generated again by `gem update/install/rdoc`. I also tested that yardoc is still generated *instead* of rdoc when `has_yardoc? == true`.

Please me know what you think.