Hi,

I got simple Rails app and I'd like to compress xml data and send it
to the browser. I'm trying to use rubyzip for it, but i.e. the
following usage:

Zip::ZipFile.open("file.zip", Zip::ZipFile::CREATE) do |zip|
    zip.get_output_stream("file.xml") {|f| f.puts xml_data}
end

returns nil and creates file on the disk.

Is it possible for rubyzip to return zipped data (or file) instead of
writing it to the disk?