lib/active_support/gzip.rb in activesupport-3.0.19 vs lib/active_support/gzip.rb in activesupport-3.0.20
- old
+ new
@@ -5,12 +5,12 @@
module ActiveSupport
# A convenient wrapper for the zlib standard library that allows compression/decompression of strings with gzip.
module Gzip
class Stream < StringIO
def initialize(*)
- super
- set_encoding "BINARY" if "".encoding_aware?
- end
+ super
+ set_encoding "BINARY" if "".encoding_aware?
+ end
def close; rewind; end
end
# Decompresses a gzipped string.
def self.decompress(source)