Skip to content

Instantly share code, notes, and snippets.

@perplexes
Created August 27, 2010 23:54
Show Gist options
  • Select an option

  • Save perplexes/554406 to your computer and use it in GitHub Desktop.

Select an option

Save perplexes/554406 to your computer and use it in GitHub Desktop.
gem 'sinatra'
~/algo_sinatra $ bundle install; bundle lock; ruby test.rb
Using rack (1.2.1)
Using sinatra (1.0)
Using bundler (1.0.0.rc.6)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
Lock is deprecated. Your bundle is now locked whenever you run `bundle install`.
test.rb:16:in `require': no such file to load -- sinatra/static_assets (LoadError)
from test.rb:16
begin
# Require the preresolved locked set of gems.
require File.expand_path('../.bundle/environment', __FILE__)
rescue LoadError
# Fallback on doing the resolve at runtime.
require "rubygems"
require "bundler"
Bundler.setup
end
# Auto-require all bundled libraries.
Bundler.require
require 'sinatra'
require 'sinatra/static_assets'
#!/bin/bash
bundle install; bundle lock; ruby test.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment