mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems/config_file.rb: Add missing require for
user_interaction.rb * lib/rubygems/dependency_installer.rb: Minor refactor for clarity. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
978c0f0f04
commit
8bb45796c8
3 changed files with 15 additions and 7 deletions
|
@ -1,3 +1,10 @@
|
|||
Fri Feb 8 10:11:09 2013 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/rubygems/config_file.rb: Add missing require for
|
||||
user_interaction.rb
|
||||
|
||||
* lib/rubygems/dependency_installer.rb: Minor refactor for clarity.
|
||||
|
||||
Fri Feb 8 09:35:17 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/mkmf.rb (MakeMakefile#configuration): set all ruby names.
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
# See LICENSE.txt for permissions.
|
||||
#++
|
||||
|
||||
require 'rubygems/user_interaction'
|
||||
|
||||
##
|
||||
# Gem::ConfigFile RubyGems options and gem command options from gemrc.
|
||||
#
|
||||
|
|
|
@ -57,13 +57,13 @@ class Gem::DependencyInstaller
|
|||
# :build_args:: See Gem::Installer::new
|
||||
|
||||
def initialize(options = {})
|
||||
if options[:install_dir] then
|
||||
@gem_home = options[:install_dir]
|
||||
@install_dir = options[:install_dir] || Gem.dir
|
||||
|
||||
# HACK shouldn't change the global settings
|
||||
Gem::Specification.dirs = @gem_home
|
||||
Gem.ensure_gem_subdirectories @gem_home
|
||||
options[:install_dir] = @gem_home # FIX: because we suck and reuse below
|
||||
if options[:install_dir] then
|
||||
# HACK shouldn't change the global settings, needed for -i behavior
|
||||
# maybe move to the install command? See also github #442
|
||||
Gem::Specification.dirs = @install_dir
|
||||
Gem.ensure_gem_subdirectories @install_dir
|
||||
end
|
||||
|
||||
options = DEFAULT_OPTIONS.merge options
|
||||
|
@ -91,7 +91,6 @@ class Gem::DependencyInstaller
|
|||
@installed_gems = []
|
||||
@toplevel_specs = nil
|
||||
|
||||
@install_dir = options[:install_dir] || Gem.dir
|
||||
@cache_dir = options[:cache_dir] || @install_dir
|
||||
|
||||
# Set with any errors that SpecFetcher finds while search through
|
||||
|
|
Loading…
Reference in a new issue