Utility methods for using the RubyGems API.

Constants
No documentation available
No documentation available
Attributes
Write
No documentation available
Write
No documentation available
Instance Methods

Add the –key option

Add the –otp option

The API key from the command options or from the user’s configuration.

No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

The host to connect to either from the RUBYGEMS_HOST environment variable or from the user’s configuration

No documentation available

The OTP code from the command options or from the user’s configuration.

No documentation available
No documentation available

Creates an RubyGems API to host and path with the given HTTP method.

If allowed_push_host metadata is present, then it will only allow that host.

Returns true when the user has enabled multifactor authentication from response text and no otp provided by options.

Signs in with the RubyGems API at sign_in_host and sets the rubygems API key.

No documentation available

Retrieves the pre-configured API key key or terminates interaction with an error.

If response is an HTTP Success (2XX) response, yields the response if a block was given or shows the response body to the user.

If the response was not successful, shows an error to the user including the error_prefix and the response body. If the response was a permanent redirect, shows an error to the user including the redirect location.