remove String#has_suffix? monkey-patch; use String#end_with?

This commit is contained in:
josh committed 2014-02-14 10:20:32 -05:00
1 parent b43c473762
commit fa7d17675b
4 files changed
+6 -17

No files matched your search

+1 -1
View File
@@ -254,7 +254,7 @@ module Rscons
# Return a list of the converted file names.
def build_sources(sources, suffixes, cache, vars)
sources.map do |source|
if source.has_suffix?(suffixes)
if source.end_with?(*suffixes)
source
else
converted = nil