2005-01-24 19:52:04 +01:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
2005-04-10 18:55:44 +02:00
|
|
|
$: << "../lib"
|
2005-01-24 19:52:04 +01:00
|
|
|
|
|
|
|
require 'zip/zip'
|
|
|
|
|
|
|
|
include Zip
|
|
|
|
|
|
|
|
ZipOutputStream.open('simple.zip') {
|
|
|
|
|zos|
|
|
|
|
ze = zos.put_next_entry 'entry.txt'
|
|
|
|
zos.puts "Hello world"
|
2005-04-10 18:55:44 +02:00
|
|
|
}
|