Upgraded rubyzip to 0.5.8
This commit is contained in:
parent
ee876a2907
commit
f776807dff
37 changed files with 1513 additions and 710 deletions
13
vendor/rubyzip-0.5.8/samples/write_simple.rb
vendored
Normal file
13
vendor/rubyzip-0.5.8/samples/write_simple.rb
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
$: << "../lib"
|
||||
|
||||
require 'zip/zip'
|
||||
|
||||
include Zip
|
||||
|
||||
ZipOutputStream.open('simple.zip') {
|
||||
|zos|
|
||||
ze = zos.put_next_entry 'entry.txt'
|
||||
zos.puts "Hello world"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue