Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

Gem::ConfigFile#api_keys

api_keys

Hash of RubyGems.org and alternate API keys, as they appear in the credentials file. Keys held in the credential store are not included, so this is not the full set of keys a command can authenticate with. Use credential_store_api_key_for or credential_store_default_api_key to reach those.