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
IronDigital-rubyzip-0.9.2 samples/write_simple.rb
agraham-rubyzip-0.9.1 samples/write_simple.rb
erawk-rubyzip-0.9.1 samples/write_simple.rb
erawk-rubyzip-0.9.2 samples/write_simple.rb
expectedbehavior-rubyzip-0.9.1.2 samples/write_simple.rb
febeling-rubyzip-0.9.2 samples/write_simple.rb
mksm-rubyzip-0.9.3 samples/write_simple.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/rubyzip-0.9.9/samples/write_simple.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rubyzip-0.9.8/samples/write_simple.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rubyzip-0.9.8/samples/write_simple.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rubyzip-0.9.8/samples/write_simple.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rubyzip-0.9.8/samples/write_simple.rb
rubyzip-0.9.9 samples/write_simple.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rubyzip-0.9.8/samples/write_simple.rb
rubyzip-0.9.8 samples/write_simple.rb
rubyzip-0.9.7 samples/write_simple.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/rubyzip-0.9.6.1/samples/write_simple.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/rubyzip-0.9.6.1/samples/write_simple.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/rubyzip-0.9.6.1/samples/write_simple.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/rubyzip-0.9.6.1/samples/write_simple.rb