Loads the given private key identified by id and data.
An EngineError
is raised of the OpenSSL::PKey
is unavailable.
Create a new session id.
The session id is a secure random number by SecureRandom
if possible, otherwise an SHA512 hash based upon the time, a random number, and a constant string. This routine is used internally for automatically generated session ids.
Generate a cache that targets a specific encoding for calculating code unit offsets.
Returns a cache that is the identity function in order to maintain the same interface. We can do this because code units are always equivalent to byte offsets for ASCII-only sources.
The character offset from the beginning of the source where this location starts.
The character offset from the beginning of the source where this location ends.
The column number in characters where this location ends from the start of the line.
The column number in characters where this location ends from the start of the line.
Create a code units cache for the given encoding.
The full path to the gem (install path + full name).
TODO: This is duplicated with gem_dir
. Eventually either of them should be deprecated.
Full paths in the gem to add to $LOAD_PATH
when this gem is activated.
Creates an option parser and fills it in with the help info for the command.
Checks the permissions of the credentials file. If they are not 0600 an error message is displayed and RubyGems aborts.