Their hard to debug, but funny to write.
This Ruby oneliner will extract the files in a zip archive
Zip::ZipFile::open("test.zip") {|zf| zf.each {|f| zf.extract(f, "/tmp/#{f.name}") }}
In this case, the files will just be extracted to your tmp directory