--Apple-Mail-5--694703171
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed
I just added a patch to Rubygems that allows it to generate ri data
for gems. In order to work correctly the gem ri documentation
directories need to be added to ri's search path.
The attached patch allows ri to look into Rubygems for ri data
provided Rubygems is installed.
--Apple-Mail-5--694703171
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="ri_path.rb.rubygems.patch"
Content-Disposition: attachment;
filename=ri_path.rb.rubygems.patch
Index: lib/rdoc/ri/ri_paths.rb
===================================================================
RCS file: /src/ruby/lib/rdoc/ri/ri_paths.rb,v
retrieving revision 1.5
diff -u -r1.5 ri_paths.rb
--- lib/rdoc/ri/ri_paths.rb 20 Feb 2006 08:34:51 -0000 1.5
+++ lib/rdoc/ri/ri_paths.rb 24 Feb 2006 22:44:47 -0000
@@ -41,5 +41,11 @@
# This is the search path for 'ri'
PATH = [ SYSDIR, SITEDIR, HOMEDIR ].find_all {|p| p && File.directory?(p)}
+
+ begin
+ require 'rubygems'
+ Dir["#{Gem.path}/doc/*/ri"].each { |path| RI::Paths::PATH << path }
+ rescue LoadError
+ end
end
end
--Apple-Mail-5--694703171
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
--
Eric Hodel - drbrain / segment7.net - http://segment7.net
This implementation is HODEL-HASH-9600 compliant
http://trackmap.robotcoop.com
--Apple-Mail-5--694703171--