[前][次][番号順一覧][スレッド一覧]

ruby-changes:61104

From: Thomas <ko1@a...>
Date: Fri, 8 May 2020 14:14:13 +0900 (JST)
Subject: [ruby-changes:61104] 22030fe508 (master): [rubygems/rubygems] Refactor duplicate metadata logic

https://git.ruby-lang.org/ruby.git/commit/?id=22030fe508

From 22030fe508603652c3c3e975f3927859dc4fa85c Mon Sep 17 00:00:00 2001
From: Thomas McDonald <thomasm@p...>
Date: Tue, 28 Apr 2020 17:44:45 +0200
Subject: [rubygems/rubygems] Refactor duplicate metadata logic

https://github.com/rubygems/rubygems/commit/1e5ef177ac

diff --git a/lib/rubygems/commands/push_command.rb b/lib/rubygems/commands/push_command.rb
index 0c121cb..dadd397 100644
--- a/lib/rubygems/commands/push_command.rb
+++ b/lib/rubygems/commands/push_command.rb
@@ -70,13 +70,7 @@ The push command will use ~/.gem/credentials to authenticate to a server, but yo https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/push_command.rb#L70
   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
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]