зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Refactor duplicate metadata logic
https://github.com/rubygems/rubygems/commit/1e5ef177ac
This commit is contained in:
Родитель
856f2f31ff
Коммит
22030fe508
|
@ -70,13 +70,7 @@ The push command will use ~/.gem/credentials to authenticate to a server, but yo
|
|||
def send_gem(name)
|
||||
args = [:post, "api/v1/gems"]
|
||||
|
||||
gem_data = Gem::Package.new(name)
|
||||
|
||||
push_host = nil
|
||||
|
||||
if gem_data.spec.metadata.has_key?('allowed_push_host')
|
||||
push_host = gem_data.spec.metadata['allowed_push_host']
|
||||
end
|
||||
_, push_host = get_hosts_for(name)
|
||||
|
||||
@host ||= push_host
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче