diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-03-03 17:39:28 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-03-03 17:39:28 +0000 |
| commit | 96284ce43b316f552a110f86648ba271068b6864 (patch) | |
| tree | 4d9ec8f87d9338a3a73d834f59df1e5bad6a0cfd /lib | |
| parent | bb1ac7756c6ee1791fb800be144b4a621e228587 (diff) | |
| download | ruby-96284ce43b316f552a110f86648ba271068b6864.tar.gz ruby-96284ce43b316f552a110f86648ba271068b6864.tar.xz ruby-96284ce43b316f552a110f86648ba271068b6864.zip | |
* lib/rdoc/ri/ri_paths.rb (RI::Paths): adding paths from rubygems
directories. a patch from Eric Hodel <drbrain at segment7.net>.
[ruby-core:07423]
* eval.c (rb_thread_fd_writable): should not re-schedule output
from KILLED thread (must be error printing).
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/rdoc/ri/ri_paths.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rdoc/ri/ri_paths.rb b/lib/rdoc/ri/ri_paths.rb index 32c2542c0..07d900238 100644 --- a/lib/rdoc/ri/ri_paths.rb +++ b/lib/rdoc/ri/ri_paths.rb @@ -47,5 +47,11 @@ module RI # 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 |
