Get a single optional argument from the command line. If more than one argument is given, return only the first. Return nil if none are given.
Adds a section with title
and content
to the parser help view. Used for adding command arguments and default arguments.
Returns a proxy URI
for the given scheme
if one is set in the environment variables.
Returns true and prepares http response, if rdoc for the requested gem name pattern was found.
The search is based on the file system content, not on the gems metadata. This allows additional documentation folders like ‘core’ for the Ruby core documentation - just put it underneath the main doc folder.
Enumerates the outdated local gems yielding the local specification and the latest remote version.
This method may take some time to return as it must check each local gem against the server’s index.
Sets up a fake fetcher using the gems from util_make_gems
. Optionally additional prerelease
gems may be included.
Gems created by this method may be fetched using Gem::RemoteFetcher
.
Sets up Gem::SpecFetcher
to return information from the gems in specs
. Best used with +@all_gems+ from util_setup_fake_fetcher
.
Creates a self-signed certificate with an issuer and subject of subject
and the given extensions
for the key
.
Add local/remote options to the command line parser.
Creates a self-signed certificate with the given number of bits
, the issuer cn
and a comment
to be stored in the certificate.
Creates a self-signed certificate with the given number of bits
, the issuer cn
and a comment
to be stored in the certificate.
Sets the close on exec flag for io
Sets the close on exec flag for io
Whether to expect full paths in default gems - true for non-MRI ruby implementations
Returns true if the element contains inline content that has a MIME media type.