Creates server sockets based on the addresses option. If no addresses were given a server socket for all interfaces is created.
Replaces this SourceList
with the sources in other
See <<
for acceptable items in other
.
Normalize the list of files so that:
All file lists have redundancies removed.
Files referenced in the extra_rdoc_files
are included in the package file list.
Checks that the specification contains all required fields, and does a very basic sanity check.
Raises InvalidSpecificationException if the spec does not pass the checks..
Normalize the URI
by adding “http://” if it is missing.
Prints a formatted backtrace to the errors stream if backtraces are enabled.
Checks the gem directory for the following potential inconsistencies/problems:
Checksum gem itself
For each file in each gem, check consistency of installed versions
Check for files that aren’t part of the gem but are in the gems directory
1 cache - 1 spec - 1 directory.
returns a hash of ErrorData objects, keyed on the problem gem’s name.
See IO.unlink when path
is a file.
See Dir.unlink
when path
is a directory.
replace self by other URI
object
Checks if URI
has a path
Returns normalized URI
Destructive version of normalize
v
URI
or String
attempt to parse other URI +oth+ return [parsed_oth, self]
require 'uri' uri = URI.parse("http://my.example.com") uri.coerce("http://foo.com") #=> [#<URI::HTTP:0x00000000bcb028 URL:http://foo.com/>, #<URI::HTTP:0x00000000d92178 URL:http://my.example.com>]
Returns a split URI
against regexp
Returns a split URI
against regexp
Is this an SSL request?
Adds listeners from address
and port
to the server. See WEBrick::Utils::create_listeners
for details.
You can use this method to execute several methods on a XMLRPC
server which support the multi-call extension.
s.multicall( ['michael.add', 3, 4], ['michael.sub', 4, 5] ) # => [7, -1]
Same as XMLRPC::Client#multicall
, but returns two parameters instead of raising an XMLRPC::FaultException
.