Preview Ruby 4.1 is a preview. It can change before the final release. 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-4.1.0-preview1/lib/rubygems/commands/push_command.rb, line 93
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
#resolve_gem_name
#send_push_request
#multiple_matches_message
#send_push_request_with_attestation
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0