Fix gzip extension

This commit is contained in:
Ben Hollis 2012-07-07 20:50:43 -07:00
parent 9f7f3370aa
commit 6dad42bc77

View file

@ -28,8 +28,10 @@ module Middleman::Extensions
output_filename, old_size, new_size = Middleman::Extensions::Gzip.gzip_file(path.to_s) output_filename, old_size, new_size = Middleman::Extensions::Gzip.gzip_file(path.to_s)
size_change_word = (old_size - new_size) > 0 ? 'smaller' : 'larger' if output_filename
builder.say_status :gzip, "#{output_filename} (#{number_to_human_size((old_size - new_size).abs)} #{size_change_word})" size_change_word = (old_size - new_size) > 0 ? 'smaller' : 'larger'
builder.say_status :gzip, "#{output_filename} (#{number_to_human_size((old_size - new_size).abs)} #{size_change_word})"
end
end end
end end
end end