summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-20 09:53:54 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-20 09:53:54 +0000
commit6033673c795d398ad84aa17f6eb29dac1d2a9831 (patch)
tree6fdf639cfd9d84f1433f65938c8efb0c1e98f96c /lib
parent0c67de6704f1dd357e36a5b7d1e506f2cef59a01 (diff)
* 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
Diffstat (limited to 'lib')
-rw-r--r--lib/rdoc/ri/paths.rb3
1 files changed, 1 insertions, 2 deletions
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 = []