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 | d351ce9b2519438813f00039ebe614cb6c2f90c0 (patch) | |
| tree | 6fdf639cfd9d84f1433f65938c8efb0c1e98f96c /lib | |
| parent | 8401da7104704353cd3e58e78b349642f1d123ee (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
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/rdoc/ri/paths.rb | 3 |
1 files changed, 1 insertions, 2 deletions
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 = [] |
