Reset the list of known specs, running pre and post reset hooks registered in Gem.
Activate this spec, registering it as a loaded spec and adding it’s lib paths to $LOAD_PATH. Returns true if the spec was activated, false if it was previously activated. Freaks out if there are conflicts upon activation.
Sanitize the descriptive fields in the spec. Sometimes non-ASCII characters will garble the site index. Non-ASCII characters will be replaced by their XML
entity equivalent.
The list of author names who wrote this gem.
spec.authors = ['Chad Fowler', 'Jim Weirich', 'Rich Kilmer']
Return any possible conflicts against the currently loaded specs.
Singular accessor for licenses
A short summary of this gem’s description.
Merges the requirements of other
into this dependency
Backport of performance enhancement added to RubyGems 1.4
Concatenates the new
requirements onto this requirement.
Creates a new Net::HTTP
object, then additionally opens the TCP connection and HTTP
session.
Arguments are the following:
hostname or IP address of the server
port of the server
address of proxy
port of proxy
user of proxy
pass of proxy
optional hash
opt sets following values by its accessor. The keys are ca_file
, ca_path
, cert, cert_store
, ciphers, close_on_empty_response
, key, open_timeout
, read_timeout
, write_timeout
, ssl_timeout
, ssl_version
, use_ssl, verify_callback
, verify_depth
and verify_mode. If you set :use_ssl as true, you can use https and default value of verify_mode
is set as OpenSSL::SSL::VERIFY_PEER.
If the optional block is given, the newly created Net::HTTP
object is passed to it and closed when the block finishes. In this case, the return value of this method is the return value of the block. If no block is given, the return value of this method is the newly created Net::HTTP
object itself, and the caller is responsible for closing it upon completion using the finish() method.
Returns true if the HTTP
session has been started.
Opens a TCP connection and HTTP
session.
When this method is called with a block, it passes the Net::HTTP
object to the block, and closes the TCP connection and HTTP
session after the block has been executed.
When called with a block, it returns the return value of the block; otherwise, it returns self.
Sends a PATCH request to the path
and gets a response, as an HTTPResponse
object.
Sends a PROPFIND request to the path
and gets a response, as an HTTPResponse
object.
Sends a COPY request to the path
and gets a response, as an HTTPResponse
object.
Store session data on the server and close the session storage. For some session storage types, this is a no-op.