Fix inreplace barfing over Pathnames

This fix should be fairly tolerant of types.
This commit is contained in:
Max Howell 2010-02-20 02:07:51 +00:00
parent 786775152e
commit 15e145709b

View File

@ -195,7 +195,7 @@ module HomebrewInreplaceExtension
end
def inreplace path, before=nil, after=nil
path.each do |path|
[*path].each do |path|
f = File.open(path, 'r')
s = f.read