Skip to content

Instantly share code, notes, and snippets.

@azul
Created October 16, 2010 13:46
Show Gist options
  • Save azul/629803 to your computer and use it in GitHub Desktop.
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
source :gemcutter
group :gems do
gem "haml", "~>2.2.0"
end
(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>
:)
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