* 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

@ -1,3 +1,8 @@
Sun Aug 8 16:08:51 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* gem_prelude.rb, lib/rubygems.rb (Gem.suffixes): return truely
require-able suffixes only.
Sun Aug 8 13:20:57 2010 Tanaka Akira <akr@fsij.org>
* ext/pathname/pathname.c (path_ftype): Pathname#ftype translated

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

View File

@ -903,8 +903,8 @@ module Gem
# Suffixes for require-able paths.
def self.suffixes
['', '.rb', '.rbw', '.so', '.bundle', '.dll', '.sl', '.jar']
end
['.rb', ".#{RbConfig::CONFIG["DLEXT"]}"]
end unless defined?(suffixes)
##
# Prints the amount of time the supplied block takes to run using the debug