13 lines
186 B
Ruby
13 lines
186 B
Ruby
|
#!/usr/bin/env ruby
|
||
|
|
||
|
$: << ".."
|
||
|
|
||
|
require 'zip/zip'
|
||
|
|
||
|
include Zip
|
||
|
|
||
|
ZipOutputStream.open('simple.zip') {
|
||
|
|zos|
|
||
|
ze = zos.put_next_entry 'entry.txt'
|
||
|
zos.puts "Hello world"
|
||
|
}
|