From 6033673c795d398ad84aa17f6eb29dac1d2a9831 Mon Sep 17 00:00:00 2001 From: yugui Date: Tue, 20 Jan 2009 09:53:54 +0000 Subject: * lib/rdoc/ri/path.rb: Gem::Enable was removed. Use just defined?(Gem). And this prevents unexpected directory creation at installation. [ruby-core:20990] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/ri/paths.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/rdoc/ri/paths.rb b/lib/rdoc/ri/paths.rb index 2f72b9dfd5..6279723529 100644 --- a/lib/rdoc/ri/paths.rb +++ b/lib/rdoc/ri/paths.rb @@ -40,8 +40,7 @@ module RDoc::RI::Paths end begin - require 'rubygems' unless defined?(Gem) and defined?(Gem::Enable) and - Gem::Enable + require 'rubygems' unless defined?(Gem) # HACK dup'd from Gem.latest_partials and friends all_paths = [] -- cgit v1.2.3