Turns on net/http 1.2 (Ruby 1.8) features. Defaults to ON in Ruby 1.8 or later.
Sends an HTTPRequest
object req
to the HTTP
server.
If req
is a Net::HTTP::Post
or Net::HTTP::Put
request containing data, the data is also sent. Providing data for a Net::HTTP::Head
or Net::HTTP::Get
request results in an ArgumentError
.
Returns an HTTPResponse
object.
When called with a block, passes an HTTPResponse
object to the block. The body of the response will not have been read yet; the block can process it using HTTPResponse#read_body
, if desired.
This method never raises Net::* exceptions.
Returns error reason. Override this for I18N.
Version of the gem
The Requirement of the unresolved dependency (not Version).
Compress filename
with extension
.
Noop this out so there are no anchors
Performs a Net::HTTP
request of type request_class
on uri
returning a Net::HTTP
response object. request maintains a table of persistent connections to reduce connect overhead.
A string representation of this Version
.
True if the version
string matches RubyGems’ requirements.
Set
the version to version
, potentially also setting required_rubygems_version
if version
indicates it is a prerelease.
Stores value
in database with key
as the index. value
is converted to YAML
before being stored.
Returns value
Returns true
if stat generated a coredump when it terminated. Not available on all platforms.
Quietly ensure the Gem
directory dir
contains all the proper subdirectories for handling default gems. If we can’t create a directory due to a permission problem, then we will silently continue.
If mode
is given, missing directories are created with this mode.
World-writable directories will never be created.