Permalink
Browse files

Added Gemfile and Gemfile.lock for example Sinatra app

  • Loading branch information...
1 parent 8ddcbb0 commit 23eef32506c5e1c2e48c34756ee990e3fd549bb0 Nathan Duran committed Apr 11, 2011
Showing with 33 additions and 3 deletions.
  1. +0 −1 .gitignore
  2. +7 −0 example/sinatra/Gemfile
  3. +19 −0 example/sinatra/Gemfile.lock
  4. +7 −2 example/sinatra/config.ru
View
@@ -22,4 +22,3 @@ pkg
.bundle/
*.rbc
.rvmrc
-Gemfile.lock
View
@@ -0,0 +1,7 @@
+source :rubygems
+source 'http://gem.khiltd.com'
+
+group :sinatra do
+ gem 'sinatra'
+ gem 'khi-rack-mongrel2', '>=1.0.1'
+end
@@ -0,0 +1,19 @@
+GEM
+ remote: http://rubygems.org/
+ remote: http://gem.khiltd.com/
+ specs:
+ khi-rack-mongrel2 (1.0.1)
+ zmq (~> 2.1.0.1)
+ rack (1.2.2)
+ sinatra (1.2.2)
+ rack (~> 1.1)
+ tilt (>= 1.2.2, < 2.0)
+ tilt (1.2.2)
+ zmq (2.1.0.1)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ khi-rack-mongrel2 (>= 1.0.1)
+ sinatra
@@ -1,7 +1,12 @@
-#Setup your own load paths here
-$LOAD_PATH.push(File.expand_path(File.dirname(__FILE__)))
+#!/usr/bin/env ruby
+require 'rubygems'
+require 'bundler'
+Bundler.setup(:default, :sinatra)
require 'rack/handler/mongrel2'
+
+#Setup your own load paths here
+$LOAD_PATH.push(File.expand_path(File.dirname(__FILE__)))
require 'app'
#The connection specs are NOT optional, and they must

0 comments on commit 23eef32

Please sign in to comment.