* 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:
parent
739e022d00
commit
efbad5fa48
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user