Returns true when it is possible and safe to update the cache directory.
Fetches a specification for the given name_tuple
.
Returns the make command for the current platform. For versions of Ruby built on MS Windows with VC++ or Borland it will return ‘nmake’. On all other platforms, including Cygwin, it will return ‘make’.
Returns the make command for the current platform. For versions of Ruby built on MS Windows with VC++ or Borland it will return ‘nmake’. On all other platforms, including Cygwin, it will return ‘make’.
Returns whether or not the nmake command could be found.
Creates a SpecFetcher pre-filled with the gems or specs defined in the block.
Yields a fetcher
object that responds to spec
and gem
. spec
adds a specification to the SpecFetcher while gem
adds both a specification and the gem data to the RemoteFetcher so the built gem can be downloaded.
If only the a-3 gem is supposed to be downloaded you can save setup time by creating only specs for the other versions:
spec_fetcher do |fetcher| fetcher.spec 'a', 1 fetcher.spec 'a', 2, 'b' => 3 # dependency on b = 3 fetcher.gem 'a', 3 do |spec| # spec is a Gem::Specification # ... end end
check the scheme v
component against the URI::Parser
Regexp
for :SCHEME
check 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
Normalizes a request path. Raises an exception if the path cannot be normalized.
Normalizes a request path. Raises an exception if the path cannot be normalized.
| RelativeLocationPath | '/' RelativeLocationPath? | '//' RelativeLocationPath
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 and contains total_bytes
.
Returns the inverse of the eigenvector matrix V