RubyFlow The Ruby and Rails community linklog

How to zip/unzip stuff with Ruby and Zip library

Small tutorial on how to zip/unzip directories and how to access single files stored in those archives without unzipping whole packages. Read more

Comments

Give the Pinch gem a try if you want to get hold of file in a zip archive.

The ruby zip landscape is a bit bleak. I made a completely independent gem for generating streaming zip files in rails—zipstream— because there were no reusable tools to do so.

Peter Hellbergs’ fantastic Pinch does the same.

A reusable zip library for these sorts of mash-ups would be amazing.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in