Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed SUFFIX_PATTERN (evidently missed during an earlier cleanup of

the list of suffixes).


git-svn-id: svn+ssh://rubyforge.org/var/svn/rubygems/trunk@1177 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information...
commit e186fbafbc587349c5bcd176661b1d44be424e7e 1 parent 3b6a888
@jimweirich jimweirich authored
Showing with 7 additions and 5 deletions.
  1. +6 −0 ChangeLog
  2. +1 −5 lib/rubygems/custom_require.rb
View
6 ChangeLog
@@ -1,5 +1,11 @@
2006-12-25 Jim Weirich <jim@weirichhouse.org>
+ * lib/rubygems/custom_require.rb (Gem::GemPathSearcher::find):
+ Removed SUFFIX_PATTERN. Evidently this was miss during an earlier
+ attempt to remove it.
+ (Gem::GemPathSearcher::matching_file): Changed reference to
+ SUFFIX_PATTERN into a call to Gem.suffix_pattern.
+
* Removed tab characters from numerous source files.
* lib/rubygems/installer.rb (Gem::Uninstaller::uninstall): Removed
View
6 lib/rubygems/custom_require.rb
@@ -90,17 +90,13 @@ def find(path)
private
- SUFFIX_PATTERN = "{,.rb,.rbw,.so,.bundle,.dll,.sl}"
-
- #
# Attempts to find a matching path using the require_paths of the
# given _spec_.
#
# Some of the intermediate results are cached in @lib_dirs for
# speed.
- #
def matching_file(spec, path) # :doc:
- glob = File.join @lib_dirs[spec.object_id], "#{path}#{SUFFIX_PATTERN}"
+ glob = File.join @lib_dirs[spec.object_id], "#{path}#{Gem.suffix_pattern}"
return true unless Dir[glob].select { |f| File.file?(f.untaint) }.empty?
end
Please sign in to comment.
Something went wrong with that request. Please try again.