Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::ConfigFile#rubygems_api_key
rubygems_api_key
lib/rubygems/config_file.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/config_file.rb, line 400
def rubygems_api_key
load_api_keys unless @rubygems_api_key
# #load_api_keys only reads the credentials file, which no longer holds the
# key once it is stored. A copy left there after the move is stale.
credential_store_default_api_key || @rubygems_api_key
end
Returns the RubyGems.org API key
See also
#rubygems_api_key=
#remove_api_key_from_file
#really_verbose
#set_api_key
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0