Creates a new package that will read or write to the file gem
.
A list of file names contained in this gem
Verifies that this gem:
Contains a valid gem specification
Contains a contents archive
The contents archive is not corrupt
After verification the gem specification from the gem is available from spec
Noop this out so there are no anchors
Cached RemoteFetcher
instance.
Resets HTTP connection connection
.
The release for this version (e.g. 1.2.0.a -> 1.2.0). Non-prerelease versions return themselves.
Removes all sources from the SourceList
.
Returns true if there are no sources in this SourceList
.
Returns the first source in the list.
Default fetcher instance. Use this instead of ::new
to reduce object allocation.
setup
prepares a sandboxed location to install gems. All installs are directed to a temporary directory. All install plugins are removed.
If the RUBY
environment variable is set the given path is used for Gem::ruby
. The local platform is set to i386-mswin32
for Windows or i686-darwin8.10.1
otherwise.
If the KEEP_FILES
environment variable is set the files will not be removed from /tmp/test_rubygems_#{$$}.#{Time.now.to_i}
.
teardown
restores the process to its original state and removes the tempdir unless the KEEP_FILES
environment variable was set.
Display an informational alert. Will ask question
if it is not nil.