title: Ruby unpack file compressed in snappy framing format *.sz
body: <p>I need to unpack snappy *.sz files in Ruby.</p>
  
  <p>Format specification is here:
  <a href="https://github.com/google/snappy/blob/master/framing_format.txt" rel="nofollow noreferrer">https://github.com/google/snappy/blob/master/framing_format.txt</a></p>
  
  <p>I have found 2 gems so far.</p>
  
  <p><a href="https://github.com/miyucy/snappy" rel="nofollow noreferrer">https://github.com/miyucy/snappy</a> - seems to be completely useless.</p>
  
  <p><a href="https://github.com/willglynn/snappy-ruby" rel="nofollow noreferrer">https://github.com/willglynn/snappy-ruby</a> - is able to unpack separate snappy chunks but not the whole framing snappy file.</p>
  
  <p><strong>QUESTION:</strong>
  Is there a working ruby gem that would allow me to do something like:</p>
  
  <pre><code>framing_snappy.unpack('filename.sz')
  </code></pre>
  
  <p>or the only way is write own code that will parse bytes and mess with bitwise shifts?</p>