lib/active_support/gzip.rb in activesupport-3.0.4 vs lib/active_support/gzip.rb in activesupport-3.0.5.rc1

- old
+ new

@@ -3,9 +3,13 @@ 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 def close; rewind; end end # Decompresses a gzipped string. def self.decompress(source) \ No newline at end of file