Class: Bundler::RubygemsIntegration::AlmostModern
- Inherits:
-
Modern
- Object
- Bundler::RubygemsIntegration
- Modern
- Bundler::RubygemsIntegration::AlmostModern
- Defined in:
- lib/bundler/rubygems_integration.rb
Overview
Rubygems 1.8.0 to 1.8.4
Constant Summary
Constants inherited from Bundler::RubygemsIntegration
Instance Method Summary collapse
-
#preserve_paths ⇒ Object
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.
Methods inherited from Modern
#all_specs, #find_name, #stub_rubygems
Methods inherited from Bundler::RubygemsIntegration
#backport_base_dir, #backport_cache_file, #backport_segment_generation, #backport_spec_file, #backport_yaml_initialize, #bin_path, #build, #build_args, #build_args=, #build_gem, #clear_paths, #config_map, #configuration, #download_gem, #ext_lock, #fetch_all_remote_specs, #fetch_prerelease_specs, #fetch_specs, #gem_bindir, #gem_cache, #gem_dir, #gem_from_path, #gem_path, #inflate, #load_path_insert_index, #loaded_gem_paths, #loaded_specs, #mark_loaded, #marshal_spec_dir, #path, #platforms, #provides?, provides?, #read_binary, #redefine_method, #replace_bin_path, #replace_entrypoints, #replace_gem, #replace_refresh, #repository_subdirectories, #reverse_rubygems_kernel_mixin, #ruby_engine, #security_policies, #security_policy_keys, #set_installed_by_version, #sources, #sources=, #spec_cache_dirs, #spec_from_gem, #spec_missing_extensions?, #stub_source_index, #ui=, #user_home, #validate, version, #version, #with_build_args
Instance Method Details
#preserve_paths ⇒ Object
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.
555 556 557 558 559 560 |
# File 'lib/bundler/rubygems_integration.rb', line 555 def preserve_paths old_dir = gem_dir old_path = gem_path yield Gem.use_paths(old_dir, old_path) end |