lib/rack/logs/viewer.rb in rack-logs-0.0.6 vs lib/rack/logs/viewer.rb in rack-logs-0.1.0
- old
+ new
@@ -64,10 +64,10 @@
end while lines < n && file.pos >= 0
else
buffer = file.read
end
- buffer.lines.pop n
+ buffer.lines.to_a.pop n
end
end
def joined_logs path