Results for: "Array.new"

No documentation available

Handle the command arguments.

No documentation available

Reads the file index and extracts each file into the gem directory.

Ensures that files can’t be installed outside the gem directory.

Extracts only the bin/ files from the gem into the gem directory. This is used by default gems to allow a gem-aware stub to function without the full gem installed.

No documentation available
No documentation available

Extracts the Gem::Specification and raw metadata from the .gem file at path.

Extracts the files in this package into destination_dir

If pattern is specified, only entries matching that glob will be extracted.

Prepares the gem for signing and checksum generation. If a signing certificate and key are not present only checksum generation is set up.

Creates or an HTTP connection based on uri, or retrieves an existing connection, using a proxy if needed.

Resolve the requested dependencies against the gems available via Gem.path and return an Array of Specification objects to be activated.

Dump only the raw version string, not the complete object. It’s a string for backwards (RubyGems 1.3.5 and earlier) compatibility.

Load custom marshal format. It’s a string for backwards (RubyGems 1.3.5 and earlier) compatibility.

No documentation available
No documentation available

Returns the build_args used to install the gem

Sets the rubygems_version to the current RubyGems version.

Display a warning on stderr. Will ask question if it is not nil.

Display an error message in a location expected to get error messages. Will ask question if it is not nil.

Terminate the application with exit code status, running any exit handlers that might have been defined.

Private method to cleanup dn from using the path component attribute.

Private method to cleanup attributes, scope, filter, and extensions from using the query component attribute.

Returns the discarded bytes when Encoding::InvalidByteSequenceError occurs.

ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")
begin
  ec.convert("abc\xA1\xFFdef")
rescue Encoding::InvalidByteSequenceError
  p $!      #=> #<Encoding::InvalidByteSequenceError: "\xA1" followed by "\xFF" on EUC-JP>
  puts $!.error_bytes.dump          #=> "\xA1"
  puts $!.readagain_bytes.dump      #=> "\xFF"
end

Returns a conversion path.

p Encoding::Converter.search_convpath("ISO-8859-1", "EUC-JP")
#=> [[#<Encoding:ISO-8859-1>, #<Encoding:UTF-8>],
#    [#<Encoding:UTF-8>, #<Encoding:EUC-JP>]]

p Encoding::Converter.search_convpath("ISO-8859-1", "EUC-JP", universal_newline: true)
or
p Encoding::Converter.search_convpath("ISO-8859-1", "EUC-JP", newline: :universal)
#=> [[#<Encoding:ISO-8859-1>, #<Encoding:UTF-8>],
#    [#<Encoding:UTF-8>, #<Encoding:EUC-JP>],
#    "universal_newline"]

p Encoding::Converter.search_convpath("ISO-8859-1", "UTF-32BE", universal_newline: true)
or
p Encoding::Converter.search_convpath("ISO-8859-1", "UTF-32BE", newline: :universal)
#=> [[#<Encoding:ISO-8859-1>, #<Encoding:UTF-8>],
#    "universal_newline",
#    [#<Encoding:UTF-8>, #<Encoding:UTF-32BE>]]
Search took: 5ms  ·  Total Results: 2131