Add the –clear-sources option
Returns a URL-encoded string derived from the given string str
.
The returned string:
Preserves:
Characters '*'
, '.'
, '-'
, and '_'
.
Character in ranges 'a'..'z'
, 'A'..'Z'
, and '0'..'9'
.
Example:
URI.encode_www_form_component('*.-_azAZ09') # => "*.-_azAZ09"
Converts:
Character ' '
to character '+'
.
Any other character to “percent notation”; the percent notation for character c is '%%%X' % c.ord
.
Example:
URI.encode_www_form_component('Here are some punctuation characters: ,;?:') # => "Here+are+some+punctuation+characters%3A+%2C%3B%3F%3A"
Encoding:
If str
has encoding Encoding::ASCII_8BIT, argument enc
is ignored.
Otherwise str
is converted first to Encoding::UTF_8 (with suitable character replacements), and then to encoding enc
.
In either case, the returned string has forced encoding Encoding::US_ASCII.
Related: URI.encode_uri_component
(encodes ' '
as '%20'
).
/foo #{bar}/ ^^^^^^^^^^^^
Like Enumerable#chunk_while
, but chains operation to be lazy-evaluated.
Like Enumerable#reject
, but chains operation to be lazy-evaluated.
Like Enumerable#uniq
, but chains operation to be lazy-evaluated.
This method is called when some event handler is undefined. event
is :on_XXX, token
is the scanned token, and data
is a data accumulator.
The return value of this method is passed to the next event handler (as of Enumerable#inject
).
See Zlib::GzipReader
documentation for a description.
Returns the full name of this constant. For example: “Foo”
Returns the full name of this constant. For example: “Foo”
Returns the full name of this constant path. For example: “Foo::Bar”
Returns the full name of this constant path. For example: “Foo::Bar”
Returns the full name of this constant. For example: “Foo”
Returns the full name (name-version) of this Gem
. Platform information is included (name-version-platform) if it is specified and not the default Ruby
platform.
Full path of the target library file. If the file is not in this gem, return nil.
Indicated, based on the requested domain, if remote gems should be considered.
Reads the file index and extracts each file into the gem directory.
Ensures that files can’t be installed outside the gem directory.