From 62170811dd89dfc7b660a7674664a292c8df7efb Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 5 Dec 2013 16:39:39 -0600 Subject: [PATCH] bottle: String is not Enumerable in 1.9+ --- Library/Homebrew/cmd/bottle.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index ceaa3fa939..c7cba11f1e 100644 --- a/Library/Homebrew/cmd/bottle.rb +++ b/Library/Homebrew/cmd/bottle.rb @@ -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)