Created
October 16, 2010 13:46
-
-
Save azul/629803 to your computer and use it in GitHub Desktop.
Testing to require system gems from within a bundle even though they have been excluded from bundle install
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
source :gemcutter | |
group :gems do | |
gem "haml", "~>2.2.0" | |
end |
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
(haml lib installed on the system) | |
$ bundle install --without gems | |
Using bundler (1.0.0) | |
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. | |
/usr/src/test_bundler_without_gems | |
$ ruby ./test_bundler_without.rb | |
<p>Haml code!</p> | |
:) |
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
require "rubygems" | |
require 'bundler/setup' | |
# require your gems as usual | |
require 'haml' | |
engine = Haml::Engine.new("%p Haml code!") | |
puts engine.render |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment