Results for: "String# "

Writes out this config file, replacing its source.

Generates a ! line for bin_file_name‘s wrapper copying arguments if necessary.

If the :custom_shebang config is set, then it is used as a template for how to create the shebang used for to run a gem’s executables.

The template supports 4 expansions:

$env    the path to the unix env utility
$ruby   the path to the currently running ruby interpreter
$exec   the path to the gem's executable
$name   the name of the gem the executable is for
No documentation available
No documentation available

Creates a new package that will read or write to the file gem.

Verifies that this gem:

After verification the gem specification from the gem is available from spec

Initialization tasks without the “yield self” or define operations.

Create the Rake tasks and actions specified by this Gem::PackageTask. (define is automatically called if a block is given to new).

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.

Returns the first source in the list.

Returns true if this source list includes other which may be a Gem::Source or a source URI.

Returns a Gem::StubSpecification for every installed gem

A detailed description of this gem. See also summary

Recursively walk dependencies of this spec, executing the block for each hop.

No documentation available

Prints a formatted backtrace to the errors stream if backtraces are enabled.

No documentation available

Args

v

String

Description

Public setter for the host component v (with validation).

See also URI::Generic.check_host.

Usage

require 'uri'

uri = URI.parse("http://my.example.com")
uri.host = "foo.com"
uri.to_s  #=> "http://foo.com"

Extract the host part of the URI and unwrap brackets for IPv6 addresses.

This method is the same as URI::Generic#host except brackets for IPv6 (and future IP) addresses are removed.

uri = URI("http://[::1]/bar")
uri.hostname      #=> "::1"
uri.host          #=> "[::1]"

Sets the host part of the URI as the argument with brackets for IPv6 addresses.

This method is the same as URI::Generic#host= except the argument can be a bare IPv6 address.

uri = URI("http://foo/bar")
uri.hostname = "::1"
uri.to_s  #=> "http://[::1]/bar"

If the argument seems to be an IPv6 address, it is wrapped with brackets.

No documentation available

Args

uris

an Array of Strings

Description

Attempts to parse and merge a set of URIs.

Args

str

String to search

schemes

Patterns to apply to str

Description

Attempts to parse and merge a set of URIs. If no block given, then returns the result, else it calls block for each element in result.

See also URI::Parser.make_regexp.

No documentation available
Search took: 2ms  ·  Total Results: 2635