From e539dc6080b4b1338968650c2b8ff645b72b11bf Mon Sep 17 00:00:00 2001 From: drbrain Date: Tue, 8 Jan 2008 09:07:31 +0000 Subject: Replace ri with Ryan Davis' cached ri git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/ri/ri_paths.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rdoc/ri/ri_paths.rb') 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 = [] -- cgit v1.2.3