This is part of a rather interesting discovery I made while poking through the RDoc sources. The following bit of code will allow ri to pick up documentation from gems:

begin
  require 'rubygems'
  Dir["#{Gem.path}/gems/*/ri"].each do |path|
    RI::Paths::PATH << path
  end
rescue LoadError
end

So the attached patch will cause gems with RDoc to also generate ri data. It seems that there's a bunch of methods in doc_manager that didn't get called anymore, and I cleaned it up to make it much more explicit.

Attachment: doc_manager.rb.ri.patch
Description: Binary data


So now I can do things like:

$ ri MogileFS::MogileFS#delete
---------------------------------------------- MogileFS::MogileFS#delete
     delete(key)
------------------------------------------------------------------------
     Removes +key+.

--
Eric Hodel - [EMAIL PROTECTED] - http://segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com


_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to