Skip to content

Instantly share code, notes, and snippets.

@simonoff
Created February 2, 2012 23:10
Show Gist options
  • Save simonoff/1726361 to your computer and use it in GitHub Desktop.
Save simonoff/1726361 to your computer and use it in GitHub Desktop.
Example sinatra app with rubyzip required
source :rubygems
gem 'sinatra'
gem 'rubyzip', :git => 'git://github.com/aussiegeek/rubyzip.git'
GIT
remote: git://github.com/aussiegeek/rubyzip.git
revision: f82626867fabe9aa8433dc57b2ccf89150da8c93
specs:
rubyzip (0.9.5)
GEM
remote: http://rubygems.org/
specs:
rack (1.4.1)
rack-protection (1.2.0)
rack
sinatra (1.3.2)
rack (~> 1.3, >= 1.3.6)
rack-protection (~> 1.2)
tilt (~> 1.3, >= 1.3.3)
tilt (1.3.3)
PLATFORMS
ruby
DEPENDENCIES
rubyzip!
sinatra
require 'rubygems'
require 'bundler/setup'
require 'sinatra'
require 'zip/zip'
get '/' do
"Hello world, it's #{Time.now} at the server!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment