Extra files to add to RDoc
such as README or doc/examples.txt
When the user elects to generate the RDoc
documentation for a gem (typically at install time), all the library files are sent to RDoc
for processing. This option allows you to have some non-code files included for a more complete set of documentation.
Usage:
spec.extra_rdoc_files = ['README', 'doc/user-guide.txt']
Find
the best specification matching a name
and requirements
. Raises if the dependency doesn’t resolve to a valid specification.
Return the best specification that contains the file matching path
.
Return the latest installed spec for gem name
.
Make sure the YAML
specification is properly formatted with dashes
Returns the full path to the build info directory
Returns the full path to the file containing the build information generated when the gem was installed
Sets extra_rdoc_files
to files
, ensuring it is an array.
Finds all gems that satisfy dep
Finds stub specifications matching a pattern in the record, optionally filtering out specs not matching the current platform
Return the best specification in the record that contains the file matching path
.
Return the latest installed spec in the record for gem name
.
Choose from a list of options. question
is a prompt displayed above the list. list
is a list of option strings. Returns the pair [option_name, option_index].
Tells ‘scan_while` to look for mismatched keyword/end-s
When scanning up, if we see more keywords then end-s it will stop. This might happen when scanning outside of a method body. the first scan line up would be a keyword and this setting would trigger a stop.
When scanning down, stop if there are more end-s than keywords.
Scan blocks based on indentation of next line above/below block
Determines indentaion of the next line above/below the current block.
Normally this is called when a block has expanded to capture all “neighbors” at the same (or greater) indentation and needs to expand out. For example the ‘def/end` lines surrounding a method.
Given that we know our syntax error exists somewhere in our frontier, we want to find the smallest possible set of blocks that contain all the syntax errors
Discard changes that have not been committed and revert the last commit
Cannot revert the first commit
Returns URL-escaped string following RFC 3986.
Returns URL-unescaped string following RFC 3986.