mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* 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
3 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue