Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add bundler

  • Loading branch information...
commit 8d12d4e0860ccc6b79e0eb5a491f2c4726d80d0f 1 parent ed16b04
Caleb Land authored
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
2  Gemfile
@@ -0,0 +1,2 @@
+gem 'sinatra'
+gem 'sqlite3-ruby'
View
20 Gemfile.lock
@@ -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
6 config.ru
@@ -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
3  main.rb
@@ -1,6 +1,3 @@
-require 'rubygems'
-require 'sinatra'
-
$LOAD_PATH.unshift File.dirname(__FILE__) + '/vendor/sequel'
require 'sequel'
Please sign in to comment.
Something went wrong with that request. Please try again.