Allow unloading bundler
after Bundler.load
.
gem install bundler-unload
require 'bundler-unload'
Bundler.with_bundle do |bundler|
bundler.spec.do_the_magic
end
require 'bundler-unload'
rubygems_spec = Bundler.rubygems.plain_specs
begin
Bundler.load.spec.do_the_magic
ensure
Bundler.unload!(rubygems_spec)
end
- Michal Papis mpapis@gmail.com
- Joshua Hull
- Carl Lerche
- https://github.com/quetz