Skip to content

Instantly share code, notes, and snippets.

@rampion
Created June 30, 2011 13:29
Show Gist options
  • Select an option

  • Save rampion/1056239 to your computer and use it in GitHub Desktop.

Select an option

Save rampion/1056239 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# sinatra_demo/bin/sinatra_demo
require 'rubygems'
require 'sinatra'
get "/hello" do
"Hello World!"
end
#!/usr/bin/env gem build
# sinatra_demo/sinatra_demo.gemspec
require 'rubygems'
Gem::Specification.new do |spec|
spec.name = 'sinatra_demo'
spec.summary = "A hello world webserver"
spec.author = "rampion"
spec.files = Dir['bin/*']
spec.executables = ['sinatra_demo']
spec.version = "1.0.0"
spec.add_dependency('sinatra')
spec.has_rdoc = false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment