2009-10-13 18:03:03 +00:00
|
|
|
--- ruby-1.8.6-p369/lib/rdoc/ri/ri_options.rb.gemmulti 2007-02-13 08:01:19.000000000 +0900
|
2009-10-14 15:24:31 +00:00
|
|
|
+++ ruby-1.8.6-p369/lib/rdoc/ri/ri_options.rb 2009-10-14 23:51:09.000000000 +0900
|
2009-10-13 18:03:03 +00:00
|
|
|
@@ -63,7 +63,7 @@
|
|
|
|
|
|
|
|
[ "--gems", nil, nil,
|
|
|
|
"Include documentation from Rubygems:\n " +
|
|
|
|
- (RI::Paths::GEMDIRS ? "#{Gem.path}/doc/*/ri" :
|
2009-10-14 15:24:31 +00:00
|
|
|
+ (RI::Paths::GEMDIRS ? Gem.path.map {|path| "#{path}/doc/*/ri" }.join(', ') :
|
2009-10-13 18:03:03 +00:00
|
|
|
"No Rubygems ri found.") ],
|
|
|
|
|
|
|
|
[ "--format", "-f", "<name>",
|
|
|
|
@@ -136,7 +136,11 @@
|
|
|
|
RI::Paths::HOMEDIR
|
|
|
|
]
|
|
|
|
|
|
|
|
- directories << "#{Gem.path}/doc/*/ri" if RI::Paths::GEMDIRS
|
|
|
|
+ if RI::Paths::GEMDIRS
|
|
|
|
+ Gem.path.each {|gempath|
|
|
|
|
+ directories << "#{gempath}/doc/*/ri"
|
|
|
|
+ }
|
|
|
|
+ end
|
|
|
|
|
|
|
|
directories = directories.join("\n ")
|
|
|
|
|
|
|
|
--- ruby-1.8.6-p369/lib/rdoc/ri/ri_paths.rb.gemmulti 2007-02-13 08:01:19.000000000 +0900
|
2009-10-14 15:24:31 +00:00
|
|
|
+++ ruby-1.8.6-p369/lib/rdoc/ri/ri_paths.rb 2009-10-15 00:02:05.000000000 +0900
|
|
|
|
@@ -44,7 +44,7 @@
|
2009-10-13 18:03:03 +00:00
|
|
|
|
|
|
|
begin
|
2009-10-14 15:24:31 +00:00
|
|
|
require 'rubygems'
|
2009-10-13 18:03:03 +00:00
|
|
|
- GEMDIRS = Dir["#{Gem.path}/doc/*/ri"]
|
2009-10-14 15:24:31 +00:00
|
|
|
+ GEMDIRS = Gem.path.map {|path| Dir["#{path}/doc/*/ri"]}.flatten
|
|
|
|
GEMDIRS.each { |path| RI::Paths::PATH << path }
|
2009-10-13 18:03:03 +00:00
|
|
|
rescue LoadError
|
|
|
|
GEMDIRS = nil
|