Unzipping with the Zip Gem

EDIT: 8 Oct 2016
I deleted the snippet that was here before as I found it just wasn’t working right in all situations :/.

This blog post by Mark Needham turned out to be exactly what I needed though. With a few tweaks we have it where calling unzip_file will give us an array of every file extracted from our zip file.

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on TumblrShare on RedditBuffer this pageDigg thisEmail this to someone
Tell Your Friends