Sha256: ec23e1d2fdfb5bd450f3ca91df1408bcea2e8a70ec15467f5047f8bb0603a8e3

Contents?: true

Size: 192 Bytes

Versions: 37

Compression:

Stored size: 192 Bytes

Contents

#!/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"
}

Version data entries

37 entries across 37 versions & 15 rubygems

Version Path
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/rubyzip-0.9.6.1/samples/write_simple.rb
rubyzip-0.9.6.1 samples/write_simple.rb
rubyzip2-2.0.2 samples/write_simple.rb
rubyzip-0.9.5 samples/write_simple.rb
openlogic-zip-2.0.3 samples/write_simple.rb
mezza-rubyzip-0.9.4.1 samples/write_simple.rb
rzip-2.1.1 samples/write_simple.rb
zip-2.0.2 samples/write_simple.rb
rubyzip-0.9.4 samples/write_simple.rb
viva-rubyzip-0.9.1.2 samples/write_simple.rb
viva-rubyzip-0.9.1.1 samples/write_simple.rb
rubyzip-0.5.11 samples/write_simple.rb
rubyzip-0.5.12 samples/write_simple.rb
rubyzip-0.5.9 samples/write_simple.rb
rubyzip-0.5.7 samples/write_simple.rb
rubyzip-0.5.8 samples/write_simple.rb
rubyzip-0.9.1 samples/write_simple.rb