* gem_prelude.rb, lib/rubygems.rb (Gem.suffixes): return truely

require-able suffixes only.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-08-08 07:08:55 +00:00
parent 739e022d00
commit efbad5fa48
3 changed files with 11 additions and 2 deletions

View file

@ -34,6 +34,10 @@ if defined?(Gem) then
:sitelibdir => RbConfig::CONFIG["sitelibdir"],
}
def self.suffixes
['.rb', ".#{RbConfig::CONFIG["DLEXT"]}"]
end
def self.dir
@gem_home ||= nil
set_home(ENV['GEM_HOME'] || default_dir) unless @gem_home