Writes the .gemspec specification (in Ruby) to the gem home’s specifications directory.
Reads the file index and extracts each file into the gem directory.
Ensures that files can’t be installed outside the gem directory.
Turn an array of [name, version, platform] into an array of NameTuple
objects.
Extracts the files in this package into destination_dir
If pattern
is specified, only entries matching that glob will be extracted.
Verifies the files of the gem
Reads a binary file at path
Writes a binary file to path
which is relative to +@gemhome+
Is this test being run on a Windows platform?
Is this test being run on a Windows platform?
Returns whether or not we’re on a version of Ruby built with VC++ (or Borland) versus Cygwin, Mingw, etc.
Returns whether or not we’re on a version of Ruby built with VC++ (or Borland) versus Cygwin, Mingw, etc.
Checks the host v
component for RFC2396 compliance and against the URI::Parser
Regexp
for :HOST.
Can not have a registry or opaque component defined, with a host component defined.
Returns a proxy URI
. The proxy URI
is obtained from environment variables such as http_proxy, ftp_proxy, no_proxy, etc. If there is no proper proxy, nil is returned.
If the optional parameter env
is specified, it is used instead of ENV
.
Note that capitalized variables (HTTP_PROXY, FTP_PROXY, NO_PROXY, etc.) are examined, too.
But http_proxy and HTTP_PROXY is treated specially under CGI
environment. It’s because HTTP_PROXY may be set by Proxy: header. So HTTP_PROXY is not used. http_proxy is not used too if the variable is case insensitive. CGI_HTTP_PROXY can be used instead.
Constructs the default Hash
of patterns.
Constructs the default Hash
of Regexp’s.