mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems: Update to RubyGems master af60443. Changes include:
* Improved speed of `gem install --ignore-dependencies`. * Open read-write for exclusive flock. [ruby-trunk - Bug #9257] * Remove specification before install to prevent infinite loop. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4cd675ea9e
commit
f8bcd57cb7
5 changed files with 36 additions and 14 deletions
|
@ -200,25 +200,31 @@ to write the specification by hand. For example:
|
|||
|
||||
req = Gem::Requirement.create(version)
|
||||
|
||||
inst = Gem::DependencyInstaller.new options
|
||||
if options[:ignore_dependencies]
|
||||
inst = Gem::Installer.new name, options
|
||||
inst.install
|
||||
@installed_specs.push(inst.spec)
|
||||
else
|
||||
inst = Gem::DependencyInstaller.new options
|
||||
|
||||
if options[:explain]
|
||||
request_set = inst.resolve_dependencies name, req
|
||||
if options[:explain]
|
||||
request_set = inst.resolve_dependencies name, req
|
||||
|
||||
puts "Gems to install:"
|
||||
puts "Gems to install:"
|
||||
|
||||
request_set.specs.map { |s| s.full_name }.sort.each do |s|
|
||||
puts " #{s}"
|
||||
request_set.specs.map { |s| s.full_name }.sort.each do |s|
|
||||
puts " #{s}"
|
||||
end
|
||||
|
||||
return
|
||||
else
|
||||
inst.install name, req
|
||||
end
|
||||
|
||||
return
|
||||
else
|
||||
inst.install name, req
|
||||
@installed_specs.push(*inst.installed_gems)
|
||||
|
||||
show_install_errors inst.errors
|
||||
end
|
||||
|
||||
@installed_specs.push(*inst.installed_gems)
|
||||
|
||||
show_install_errors inst.errors
|
||||
end
|
||||
|
||||
def install_gems # :nodoc:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue