DaZoner wrote:
> RubyZip's docs do not have a "hey! this is how you use this to make a
zip"
> explanation and the methods aren't really documented - just source
code is
> shown. Anyone have examples or other docs?

Do you mind if you generate a .tar.gz instead of .zip? Both can be
opened in windows by winzip. I really like minitar
(http://raa.ruby-lang.org/project/minitar/), and zipping a bunch of
files can be as easy as:

  files = Dir['*.htm']

  tar = File.open 'guides.tar', 'wb'
  Minitar.pack files, tar

  # zip into .tar.gz:
  tgz = Zlib::GzipWriter.open('guides.tar.gz')
  tgz.write File.open('guides.tar', 'rb').read
  tgz.close

Just note that the files are always opened in binary mode.

HTH,
Assaph