From ea167399a293ac0a14d09150e0479ae849f9b2b8 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Tue, 9 Jun 2015 21:34:44 +0800 Subject: audit: fix index method for ruby 1.8 Per https://github.com/Homebrew/homebrew/pull/40472#issuecomment-110357915 --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 369c50e99..3334b6bfe 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -56,7 +56,7 @@ end class FormulaText def initialize path @text = path.open("rb", &:read) - @lines = @text.lines + @lines = @text.lines.to_a end def without_patch -- cgit v1.2.3