bottle: String is not Enumerable in 1.9+

This commit is contained in:
Jack Nagel 2013-12-05 16:39:39 -06:00
parent d9afb4f9ea
commit 62170811dd

View File

@ -75,7 +75,7 @@ module Homebrew extend self
end
# Use strings to search through the file for each string
strings = `strings -t x - "#{file}"`.select{ |str| str.include? string }.map{ |s| s.strip }
strings = `strings -t x - "#{file}"`.split("\n").select{ |str| str.include? string }
strings.each do |str|
offset, match = str.split(" ", 2)