Handle the command arguments.
The location of the spec file that is installed.
Verifies the files of the gem
Return the default Gem path
File
Fetcher. Dispatched by fetch_path
. Use it instead.
Dump only the raw version string, not the complete object. It’s a string for backwards (RubyGems 1.3.5 and earlier) compatibility.
Returns a list of gems available for each source in Gem::sources
.
type
can be one of 3 values: :released => Return the list of all released specs :complete => Return the list of all specs :latest => Return the list of only the highest version of each gem :prerelease => Return the list of all prerelease only specs
Sets the ENABLE_SHARED entry in RbConfig::CONFIG to value
and restores the original value when the block ends
Writes a binary file to path
which is relative to +@gemhome+
Display a warning on stderr. Will ask question
if it is not nil.
Display an error message in a location expected to get error messages. Will ask question
if it is not nil.
Returns default port.
Returns default port.
Prepares the HTTPRequest
object for use as the source for IO.copy_stream
The client’s IP address
Finds a servlet for path
Calls the given block once for each key
, value
pair in the database. Deletes all entries for which the block returns true.
Returns self
.
Reads the file from pathname
, then parses it like ::parse
, returning the root node of the abstract syntax tree.
SyntaxError
is raised if pathname
‘s contents are not valid Ruby syntax.
RubyVM::AbstractSyntaxTree.parse_file("my-app/app.rb") # => #<RubyVM::AbstractSyntaxTree::Node(NODE_SCOPE(0) 1:0, 31:3): >
Returns the length of the hash value of the digest.
This method should be overridden by each implementation subclass. If not, digest_obj.digest().length() is returned.