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.
Check state file is writable. Creates empty file if not present to ensure we can write to it.
The name of the state file.
Creates windows .bat files for easy running of commands