You can clone with
# Based on http://yehudakatz.com/2009/11/03/using-the-new-gem-bundler-today/
# Instead of hooking into load_environment which breaks gems that assume a
# certain load order (which is bad in its own right, but a reality), I hook
# into load_gems... This way, gems that assume load order but work with
# config.gem will still work with bundler.
old_load = instance_method(:load_gems)