summaryrefslogtreecommitdiff
path: root/gem_prelude.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-08 07:08:55 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-08 07:08:55 (GMT)
commitefbad5fa481a6e34f4d8b9f9355df2a6d7602a95 (patch)
tree24ec4d334e57e561b81fb95e0dba4d0b77496f83 /gem_prelude.rb
parent739e022d006b755b4c6641eda958bdfb5969b65d (diff)
* 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
Diffstat (limited to 'gem_prelude.rb')
-rw-r--r--gem_prelude.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/gem_prelude.rb b/gem_prelude.rb
index 017adc2..55fd913 100644
--- a/gem_prelude.rb
+++ b/gem_prelude.rb
@@ -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