This is ported over from the yaml_tree in 1.9.3
File
Fetcher. Dispatched by fetch_path
. Use it instead.
HTTP Fetcher. Dispatched by fetch_path
. Use it instead.
Returns true when it is possible and safe to update the cache directory.
Fetches a specification for the given name_tuple
.
Implementation for Specification#validate_metadata
Checks the scheme v
component against the URI::Parser
Regexp
for :SCHEME.
Checks the path v
component for RFC2396 compliance and against the URI::Parser
Regexp
for :ABS_PATH and :REL_PATH.
Can not have a opaque component defined, with a path component defined.
Returns a conversion path.
p Encoding::Converter.search_convpath("ISO-8859-1", "EUC-JP") #=> [[#<Encoding:ISO-8859-1>, #<Encoding:UTF-8>], # [#<Encoding:UTF-8>, #<Encoding:EUC-JP>]] p Encoding::Converter.search_convpath("ISO-8859-1", "EUC-JP", universal_newline: true) or p Encoding::Converter.search_convpath("ISO-8859-1", "EUC-JP", newline: :universal) #=> [[#<Encoding:ISO-8859-1>, #<Encoding:UTF-8>], # [#<Encoding:UTF-8>, #<Encoding:EUC-JP>], # "universal_newline"] p Encoding::Converter.search_convpath("ISO-8859-1", "UTF-32BE", universal_newline: true) or p Encoding::Converter.search_convpath("ISO-8859-1", "UTF-32BE", newline: :universal) #=> [[#<Encoding:ISO-8859-1>, #<Encoding:UTF-8>], # "universal_newline", # [#<Encoding:UTF-8>, #<Encoding:UTF-32BE>]]
Wraps text
to wrap
characters and optionally indents by indent
characters
Attach the comments to their respective locations in the tree by mutating the parse result.
A hint run by the resolver to allow the Set
to fetch data for DependencyRequests reqs
.
Prefetches reqs
in all sets.
Prefetches specifications from the git repositories in this set.
The prefetch
method may be overridden, but this is not necessary. This default implementation does nothing, which is suitable for sets where looking up a specification is cheap (such as installed gems).
When overridden, the prefetch
method should look up specifications matching reqs
.
The silent download reporter does not display filename
or care about filesize
because it is silent.
Tells the download reporter that the file_name
is being fetched. The other arguments are ignored.