Sha256: a460fc64aa521d550b67d1fd521e8bb8cc5d994a05dfd1a85c5218433b5c9b82

Contents?: true

Size: 272 Bytes

Versions: 4

Compression:

Stored size: 272 Bytes

Contents

require 'stringio'
require 'zlib'

# Simple gzip encoder/decoder for testing
def gzip_compress(s)
  io = StringIO.new('w')
  w = Zlib::GzipWriter.new(io)
  w.write(s)
  w.close
  io.string
end

def gzip_decompress(s)
  Zlib::GzipReader.new(StringIO.new(s, 'rb')).read
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kicks-3.1.1 spec/gzip_helper.rb
kicks-3.1.0 spec/gzip_helper.rb
kicks-3.0.0 spec/gzip_helper.rb
kicks-3.0.0.pre spec/gzip_helper.rb