Methods

Class Index [+]

Quicksearch

Bundler::RubygemsIntegration::AlmostModern

Rubygems 1.8.0 to 1.8.4

Public Instance Methods

preserve_paths() click to toggle source

Rubygems [>= 1.8.0, < 1.8.5] has a bug that changes Gem.dir whenever you call Gem::Installer#install with an :install_dir set. We have to change it back for our sudo mode to work.

     # File lib/bundler/rubygems_integration.rb, line 301
301:       def preserve_paths
302:         old_dir, old_path = gem_dir, gem_path
303:         yield
304:         Gem.use_paths(old_dir, old_path)
305:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.