Using Bundler with Sinatra

To use bundler with a Sinatra application, you only need to do two things. First, create a Gemfile.
gem 'sinatra'

Then, set up your file to load the bundle before it loads your Sinatra app.
require 'rubygems'
require 'bundler'


require './my_sinatra_app'
run MySinatraApp

Start your development server with rackup, and Sinatra will be loaded via Bundler.
$ bundle exec rackup
Fork me on GitHub
Docs: Previous Version (v1.11) Current Version (v1.12)