Returns whether the request may have a body:
Net::HTTP::Post.new(uri).request_body_permitted? # => true Net::HTTP::Get.new(uri).request_body_permitted? # => false
Returns whether the response may have a body:
Net::HTTP::Post.new(uri).response_body_permitted? # => true Net::HTTP::Head.new(uri).response_body_permitted? # => false
The character offset from the beginning of the source where this location starts.
The character offset from the beginning of the source where this location ends.
The column number in characters where this location ends from the start of the line.
The column number in characters where this location ends from the start of the line.
Regular gems take precedence over default gems
The full path to the gem (install path + full name).
TODO: This is duplicated with gem_dir
. Eventually either of them should be deprecated.
Return all files in this gem that match for glob
.
Returns a string usable in Dir.glob
to match all requirable paths for this spec.
Display to the user that a gem couldn’t be found and reasons why
Creates an option parser and fills it in with the help info for the command.
Checks the permissions of the credentials file. If they are not 0600 an error message is displayed and RubyGems aborts.
Returns the RubyGems.org API key
Sets the RubyGems.org API key to api_key
Ensures the Gem::Specification
written out for this gem is loadable upon installation.
Prefix and suffix the program filename the same as ruby.