summaryrefslogtreecommitdiffstats
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
commitd351ce9b2519438813f00039ebe614cb6c2f90c0 (patch)
tree6fdf639cfd9d84f1433f65938c8efb0c1e98f96c
parent8401da7104704353cd3e58e78b349642f1d123ee (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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog7
-rw-r--r--lib/rdoc/ri/paths.rb3
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 4799ea115..d7692f62a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Tue Jan 20 18:49:59 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/rdoc/ri/path.rb: Gem::Enable was removed.
+ Use just defined?(Gem).
+ And this prevents unexpected directory creation at
+ installation. [ruby-core:20990]
+
Tue Jan 20 17:59:52 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* Reverts r21598 and r21599 because the original behavior is
diff --git a/lib/rdoc/ri/paths.rb b/lib/rdoc/ri/paths.rb
index 2f72b9dfd..627972352 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 = []