summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 4799ea1159..d7692f62a8 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 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 = []