How can I generate zip file without saving to the disk with Ruby?
I had a similar problem which I solved using the rubyzip gem and the stringio object. It turns out that rubyzip provides a method that returns a stringio object: ZipOutputStream.write_buffer. You can create the zip file structure as you like using put_next_entry and write and once you are finished you can rewind the stringio and … Read more