Created
April 1, 2010 21:14
-
-
Save atmos/352368 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV['RACK_ENV'] ||= 'development' | |
begin | |
require File.expand_path('../.bundle/environment', __FILE__) | |
rescue LoadError | |
require "rubygems" | |
require "bundler" | |
Bundler.setup(:runtime) | |
end | |
Bundler.require(:runtime) | |
class ShowHeaders < Sinatra::Base | |
get '/' do | |
content = "" | |
headers.each do |key, value| | |
content << "#{key} -> #{value}\n" | |
end | |
content | |
end | |
end | |
run ShowHeaders | |
# vim:ft=ruby |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :gemcutter | |
group :runtime do | |
gem 'sinatra', '~>1.0' | |
gem 'rack', '~>1.0.0' | |
end | |
# vim:ft=ruby |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment