aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-06-09 21:34:44 +0800
committerXu Cheng2015-06-09 21:34:44 +0800
commitea167399a293ac0a14d09150e0479ae849f9b2b8 (patch)
tree5d45df0ffcbd635332cdcfe235fce0b52c6051a6 /Library
parent1cc6fa2e05283849912f8bff17221d7bde3d2b0b (diff)
downloadbrew-ea167399a293ac0a14d09150e0479ae849f9b2b8.tar.bz2
audit: fix index method for ruby 1.8
Per https://github.com/Homebrew/homebrew/pull/40472#issuecomment-110357915
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
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