diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-14 22:38:20 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-14 22:38:20 +0000 |
commit | 2a38688064007815670572ccd3dfea3bf7bd9e6c (patch) | |
tree | 0378ceb48031855fbdb932efeb2431f0a3e6eb68 /lib | |
parent | 9a2e03d33b37f31620cd3c00b6fa20986c2ce7d5 (diff) | |
download | ruby-2a38688064007815670572ccd3dfea3bf7bd9e6c.tar.gz ruby-2a38688064007815670572ccd3dfea3bf7bd9e6c.tar.xz ruby-2a38688064007815670572ccd3dfea3bf7bd9e6c.zip |
Preserve ri compatibility with 1.8
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rdoc/ri/paths.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rdoc/ri/paths.rb b/lib/rdoc/ri/paths.rb index 035d0fc24..b4b6c6492 100644 --- a/lib/rdoc/ri/paths.rb +++ b/lib/rdoc/ri/paths.rb @@ -43,7 +43,8 @@ module RDoc::RI::Paths PATH = [ SYSDIR, SITEDIR, HOMEDIR ].find_all {|p| p && File.directory?(p)} begin - require 'rubygems' unless defined?(Gem) and Gem::Enable + require 'rubygems' unless defined?(Gem) and defined?(Gem::Enable) and + Gem::Enable # HACK dup'd from Gem.latest_partials and friends all_paths = [] |