Created
August 27, 2010 23:54
-
-
Save perplexes/554406 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gem 'sinatra' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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