Permalink
Browse files

add bundler

  • Loading branch information...
Caleb Land
Caleb Land committed Jan 12, 2012
1 parent ed16b04 commit 8d12d4e0860ccc6b79e0eb5a491f2c4726d80d0f
Showing with 26 additions and 5 deletions.
  1. +2 −0 Gemfile
  2. +20 −0 Gemfile.lock
  3. +4 −2 config.ru
  4. +0 −3 main.rb
View
@@ -0,0 +1,2 @@
+gem 'sinatra'
+gem 'sqlite3-ruby'
View
@@ -0,0 +1,20 @@
+GEM
+ specs:
+ rack (1.3.6)
+ rack-protection (1.1.4)
+ rack
+ sinatra (1.3.1)
+ rack (~> 1.3, >= 1.3.4)
+ rack-protection (~> 1.1, >= 1.1.2)
+ tilt (~> 1.3, >= 1.3.3)
+ sqlite3 (1.3.5)
+ sqlite3-ruby (1.3.3)
+ sqlite3 (>= 1.3.3)
+ tilt (1.3.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ sinatra
+ sqlite3-ruby
View
@@ -1,9 +1,11 @@
require 'rubygems'
-require 'sinatra'
+require 'bundler'
+
+Bundler.require
Sinatra::Application.set :views, File.join(File.dirname(__FILE__), 'views')
Sinatra::Application.set :run, false
Sinatra::Application.set :environment, ENV['RACK_ENV']
-require 'main'
+require File.expand_path('../main', __FILE__)
run Sinatra::Application
View
@@ -1,6 +1,3 @@
-require 'rubygems'
-require 'sinatra'
-
$LOAD_PATH.unshift File.dirname(__FILE__) + '/vendor/sequel'
require 'sequel'

0 comments on commit 8d12d4e

Please sign in to comment.