aniero/ringleader — pull request #4 by francescoagati (2012-08-23 18:26:07+00:00)
Title: running process spawn inside Bundler.with_clean_env 

the process spawned should be runned inside the Bundler.with_clean_env.
In this mode the bundle command the load the application use his gem env.

Here the doc of with_clean_env (http://gembundler.com/man/bundle-exec.1.html)

Shelling out
When shelling out (using the system or backticks methods, for example), Bundler's environment changes will propogate to the subshell environment. If you desire to shell out without Bundler's environment changes, simply employ the with_clean_env method. It will restore all environment variables to what they were before Bundler was activated. For example:

Bundler.with_clean_env do
`brew install wget`
end