carlhuda/bundler — pull request #2187 by crowbot (2012-11-27 12:40:42+00:00)
Title: Allow the installation of rake and a rake-dependent gem in the same session when using sudo

Set the loaded_from attribute on the copy of the installed gem spec that is used by rubygems so that it will be correct when installing dependent gems in the same process.

This turns out to be the problem causing https://github.com/carlhuda/bundler/issues/2107.