mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
* lib/rubygems: Update to RubyGems 2.4.2.
* test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ffe920d674
commit
cec4f5a9e0
12 changed files with 127 additions and 13 deletions
|
@ -203,7 +203,10 @@ command to remove old versions.
|
|||
def update_gem name, version = Gem::Requirement.default
|
||||
return if @updated.any? { |spec| spec.name == name }
|
||||
|
||||
@installer ||= Gem::DependencyInstaller.new options
|
||||
update_options = options.dup
|
||||
update_options[:prerelease] = version.prerelease?
|
||||
|
||||
@installer = Gem::DependencyInstaller.new update_options
|
||||
|
||||
say "Updating #{name}"
|
||||
begin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue