Shell out to bzip2 instead of using bzip2-ruby

openid
Marcin Kulik 13 years ago
parent 7b33c31c70
commit 00d2a6fcc6

@ -9,7 +9,6 @@ gem 'confstruct'
gem 'omniauth'
gem 'omniauth-twitter'
gem 'omniauth-github'
gem 'bzip2-ruby'
gem 'kaminari'
gem 'airbrake'
gem 'twitter-bootstrap-rails'

@ -36,7 +36,6 @@ GEM
arel (3.0.0)
awesome_print (0.4.0)
builder (3.0.0)
bzip2-ruby (0.2.7)
cane (1.0.0)
tailor
capistrano (2.11.2)
@ -287,7 +286,6 @@ PLATFORMS
DEPENDENCIES
airbrake
awesome_print
bzip2-ruby
cane
capistrano
capybara

@ -27,8 +27,14 @@ class AsciicastDecorator < ApplicationDecorator
def stdout_timing_data
saved_time = 0
if data = stdout_timing.read
data = Bzip2.uncompress(data).lines.map do |line|
if file = stdout_timing.file
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
delay = delay.to_f

Loading…
Cancel
Save