chriseppstein/compass — pull request #894 by mpapis (2012-05-17 06:18:27+00:00)
Title: Fix finding bundler

it's related to this SO answer: http://stackoverflow.com/questions/10610254/cant-install-compass-via-rvm/10611366#10611366

I was talking to @wycats and there are two possible solutions:

1) detect if Gemfile is in effect - this pull request:

if defined?(Bundler)
require 'bundler/shared_helpers'
Bundler.require :assets if Bundler::SharedHelpers.in_bundle?
end

2) detect if `Bundlr.setup` was called:

if defined?(Bundler) && Bundler.instance_variable_defined?("@setup")
Bundler.require :assets
end