Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

rubyzip for dummies

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 zippy.gemspec
README
Zippy.create 'awsum.zip' do |zip|
  zip['README'] = 'In Soviet Russia, README READSYOU'
  zip['porn.mpeg'] = File.open('rick astley - never gonna give you up.mpg')
end

Zippy.list('awsum.zip') #=> ['README', 'porn.mpeg']

Zippy.open('awsum.zip') do |zip|
  zip['bin/hello_world'] = "#!/usr/bin/env ruby\n\nputs 'hello, zip world'"
end



#Your params as a zip
#It's SAAS!
require 'sinatra'
get '/' do
  Zippy.new{|z| params.each{|k,v| z[k] = v } }.data
end
Something went wrong with that request. Please try again.