diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-20 09:53:54 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-20 09:53:54 +0000 |
commit | 6033673c795d398ad84aa17f6eb29dac1d2a9831 (patch) | |
tree | 6fdf639cfd9d84f1433f65938c8efb0c1e98f96c | |
parent | 0c67de6704f1dd357e36a5b7d1e506f2cef59a01 (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
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/rdoc/ri/paths.rb | 3 |
2 files changed, 8 insertions, 2 deletions
@@ -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 = [] |