Revert "Handle non-bzipped data also in AsciicastDecorator"

This reverts commit 9d08c17087.
openid
Marcin Kulik 12 years ago
parent cbce088f05
commit 62236504cf

@ -32,17 +32,11 @@ class AsciicastDecorator < ApplicationDecorator
saved_time = 0
if file = stdout_timing.file
data = file.read
if data[0] == 'B' and data[1] == 'Z'
f = IO.popen "bzip2 -d", "r+"
f.write data
f.close_write
lines = f.readlines
f.close
else
lines = data.split("\n")
end
f = IO.popen "bzip2 -d", "r+"
f.write file.read
f.close_write
lines = f.readlines
f.close
data = lines.map do |line|
delay, n = line.split

Loading…
Cancel
Save