Verifies the files of the gem
Load a dependency management file.
Sets the ENABLE_SHARED entry in RbConfig::CONFIG to value
and restores the original value when the block ends
A git_gem
is used with a gem dependencies file. The gem created here has no files, just a gem specification for the given name
and version
.
Yields the specification
to the block, if given
Skips this test unless you have a git executable
Reads a Marshal
file at path
Reads a binary file at path
Creates a Gem::Specification
with a minimum of extra work. name
and version
are the gem’s name and version, platform, author, email, homepage, summary and description are defaulted. The specification is yielded for customization.
The gem is added to the installed gems in +@gemhome+ and the runtime.
Use this with write_file
to build an installed gem.
Creates a gem with name
, version
and deps
. The specification will be yielded before gem creation for customization. The gem will be placed in File.join @tempdir, 'gems'
. The specification and .gem file location are returned.
Return a download reporter object chosen from the current verbosity
Checks the scheme v
component against the URI::Parser
Regexp
for :SCHEME.
Returns Regexp
that is default self.regexp, unless schemes
is provided. Then it is a Regexp.union
with self.pattern.
Constructs the default Hash
of Regexp’s.
Returns Regexp
that is default self.regexp, unless schemes
is provided. Then it is a Regexp.union
with self.pattern.
Constructs the default Hash
of Regexp’s.
Prepares the HTTPRequest
object for use as the source for IO.copy_stream
The server name this request is for
Should the connection this request was made on be kept alive?
Will this response’s connection be kept alive?
Mounts proc
or block
on dir
and calls it with a WEBrick::HTTPRequest
and WEBrick::HTTPResponse
Finds the appropriate virtual host to handle req
Returns the bytes to be read again when Encoding::InvalidByteSequenceError
occurs.