From ab3e8e6143049662cf724c8574cd9fb8e248a4a0 Mon Sep 17 00:00:00 2001 From: drbrain Date: Thu, 14 Feb 2008 22:38:20 +0000 Subject: Preserve ri compatibility with 1.8 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/ri/paths.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/rdoc/ri/paths.rb') diff --git a/lib/rdoc/ri/paths.rb b/lib/rdoc/ri/paths.rb index 035d0fc242..b4b6c64925 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 = [] -- cgit v1.2.3