Rubygems + ri

Eric Hodel | Thu, 23 Feb 2006 11:42:00 GMT

Posted in , ,

I’ve almost finished doing what has previously been claimed as impossible. I’ve cleanly integrated ri and Rubygems so that you can use ri to search your installed gems’ documentation.

The first part was simple, tell Rubygems to generate ri data for its gems. Rather than have Rubygems install a gem’s ri data mixed-in with the standard library’s data it installs it into a per-gem directory.

The unfinished part is getting a patch into Ruby that makes ri go looking in the gem ri data directories. That patch is in [ruby-core:7423]. Hopefully I can push it into 1.8 so it will be usable with Rubygems 0.9.

Comments RSS FEED

Thanks so much for doing this: this has been a big holdup for a long time now and I am so glad it looks like we will have a decent solution within a year or two. Awesome!!

Rudi Cilibrasi said 1 minute later

Awesome!

topfunky said 2 days later

I third the awesome. This will be a huge help, especially if the RI plugin for RDT integrates with the normal store and not it’s own version of the RI documents for the standard library. Haven’t had time to pull that code and check, but I may have to try this when I get home from the day job.

AT said 2 days later

Comments are disabled