Performance optimization
Parsing with ripper is expensive If we know we don’t have any blocks with invalid syntax, then we know we cannot have found the incorrect syntax yet.
When an invalid block is added onto the frontier check document state
Keeps track of what lines have been added to blocks and which are not yet visited.
When one element fully encapsulates another we remove the smaller block from the frontier. This prevents double expansions and all-around weird behavior. However this guarantee is quite expensive to maintain
Discard changes that have not been committed and revert the last commit
Cannot revert the first commit
Returns the destination encoding name as a string.
Returns the destination encoding name as a string.
Returns URL-escaped string following RFC 3986.
Returns URL-unescaped string following RFC 3986.
Writes a number of random generated bytes (currently 1024) to filename which can be used to initialize the PRNG by calling ::load_random_file
in a later session.
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.
Retrieves the pre-configured API key key
or terminates interaction with an error.
Default options for the gem install and update commands.
Allows Gem::OptionParser
to handle HTTP URIs.
Asks the user to answer question
with an answer from the given list
.