title: How to create zip file only in memory in ruby?
body: <p>I want to create a zip file of all HTML files in a given directory. The zip will be sent as an attachment via email along with the rest of the files from the directory. All email clients I tried so far have trouble reading an email if any attachment is a HTML file, if I send from pony. So I thought I'd zip them.</p>
  
  <p>Is there any way to <strong>zip</strong> the HTML <strong>files on the fly</strong> but really <strong>only in the memory</strong>, without using any temp files on <strong>Windows platform</strong>? Preferably not using any external program?</p>
  
  <p>If I understood right, both methods described in:</p>
  
  <ul>
  <li><a href="http://info.michael-simons.eu/2008/01/21/using-rubyzip-to-create-zip-files-on-the-fly/" rel="nofollow">http://info.michael-simons.eu/2008/01/21/using-rubyzip-to-create-zip-files-on-the-fly/</a> or</li>
  <li><a href="http://rubyzip.sourceforge.net/classes/Zip/ZipFile.html" rel="nofollow">http://rubyzip.sourceforge.net/classes/Zip/ZipFile.html</a> </li>
  </ul>
  
  <p>are using some kind of temp file.</p>