audit: fix index method for ruby 1.8

Per
https://github.com/Homebrew/homebrew/pull/40472#issuecomment-110357915
This commit is contained in:
Xu Cheng 2015-06-09 21:34:44 +08:00
parent 1cc6fa2e05
commit ea167399a2

View File

@ -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