diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-08 09:07:31 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-08 09:07:31 +0000 |
commit | e539dc6080b4b1338968650c2b8ff645b72b11bf (patch) | |
tree | b969c97c53b99dc68885d2d45187b01e197b2bf6 /lib/rdoc/ri/ri_paths.rb | |
parent | cc22700b900d37ffd452b0139749c3f024b9c380 (diff) |
Replace ri with Ryan Davis' cached ri
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/ri/ri_paths.rb')
-rw-r--r-- | lib/rdoc/ri/ri_paths.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rdoc/ri/ri_paths.rb b/lib/rdoc/ri/ri_paths.rb index 6f581510ed..0957216794 100644 --- a/lib/rdoc/ri/ri_paths.rb +++ b/lib/rdoc/ri/ri_paths.rb @@ -23,7 +23,7 @@ module RI #:stopdoc: require 'rbconfig' - + DOC_DIR = "doc/rdoc" version = RbConfig::CONFIG['ruby_version'] @@ -42,7 +42,7 @@ module RI # This is the search path for 'ri' PATH = [ SYSDIR, SITEDIR, HOMEDIR ].find_all {|p| p && File.directory?(p)} - require 'rubygems' + require 'rubygems' unless defined?(Gem) and Gem::Enable # HACK dup'd from Gem.latest_partials and friends all_paths = [] |