Skip to content

Instantly share code, notes, and snippets.

@atmos
Created April 1, 2010 21:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save atmos/352368 to your computer and use it in GitHub Desktop.
Save atmos/352368 to your computer and use it in GitHub Desktop.
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
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