End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Commands::PushCommand#send_gem
send_gem(name)
lib/rubygems/commands/push_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/commands/push_command.rb, line 69
def send_gem(name)
args = [:post, "api/v1/gems"]
_, push_host = get_hosts_for(name)
@host ||= push_host
# Always include @host, even if it's nil
args += [ @host, push_host ]
say "Pushing gem to #{@host || Gem.host}..."
response = send_push_request(name, args)
with_response response
end
No documentation available
See also
#get_push_scope
#send_push_request
#get_hosts_for
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0