mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems: Update to RubyGems 2.2.0.preview.1
This brings several new features to RubyGems summarized here: https://github.com/rubygems/rubygems/blob/v2.2.0.preview.1/History.txt * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
81629f0531
commit
95683e5cb2
25 changed files with 540 additions and 159 deletions
|
@ -69,13 +69,18 @@ You can upgrade or downgrade to the latest release version with:
|
|||
terminate_interaction 1
|
||||
end
|
||||
|
||||
gem_data = Gem::Package.new(name)
|
||||
|
||||
unless @host then
|
||||
if gem_data = Gem::Package.new(name) then
|
||||
@host = gem_data.spec.metadata['default_gem_server']
|
||||
end
|
||||
@host = gem_data.spec.metadata['default_gem_server']
|
||||
end
|
||||
|
||||
args << @host if @host
|
||||
# Always include this, even if it's nil
|
||||
args << @host
|
||||
|
||||
if gem_data.spec.metadata.has_key?('allowed_push_host')
|
||||
args << gem_data.spec.metadata['allowed_push_host']
|
||||
end
|
||||
|
||||
say "Pushing gem to #{@host || Gem.host}..."
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue