simple_compress

A tiny module for doing Gzip compression/expansion using a known pattern, that is usable with Ruby strings. Encapsulates the whole lap dance with IO and things.

SimpleCompress.compress("Hello world!") # => "\u001F\x8B\b\u0000M..."

and in reverse

SimpleCompress.expand(SimpleCompress.compress("Hello world!")) # => "Hello world!"

Contributing to simple_compress

Copyright © 2015 WeTransfer. See LICENSE.txt for further details.