summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-08 07:08:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-08 07:08:55 +0000
commitefbad5fa481a6e34f4d8b9f9355df2a6d7602a95 (patch)
tree24ec4d334e57e561b81fb95e0dba4d0b77496f83 /lib
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 'lib')
-rw-r--r--lib/rubygems.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index fcb1ebd3db..552c6f6b57 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -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