Return the best specification that contains the file matching path
.
Return the latest installed spec for gem name
.
Specification
attributes that must be non-nil
Finds all gems that satisfy dep
Finds stub specifications matching a pattern in the record, optionally filtering out specs not matching the current platform
Return the best specification in the record that contains the file matching path
.
Return the latest installed spec in the record for gem name
.
@return true if the specs of any default gems are ‘==` to the given `spec`.
Helper method for grabbing elements from document
Like ‘take_while` except when it stops iterating, it also returns the line that caused it to stop
Private method to assemble query
from attributes
, scope
, filter
, and extensions
.
Invoked by Ruby’s core methods to run a blocking operation in a non-blocking way.
Minimal suggested implementation is:
def blocking_operation_wait(work) Thread.new(&work).join end
Returns the destination encoding name as a string.
Returns the destination encoding name as a string.
Calls the block with each capitalized field name:
res = Net::HTTP.get_response(hostname, '/todos/1') res.each_capitalized_name do |key| p key if key.start_with?('C') end
Output:
"Content-Type" "Connection" "Cache-Control" "Cf-Cache-Status" "Cf-Ray"
The capitalization is system-dependent; see Case Mapping.
Returns an enumerator if no block is given.
Creates a self-signed certificate with an issuer and subject from email
, a subject alternative name of email
and the given extensions
for the key
.
Deprecation method to deprecate Rubygems commands
Deprecation method to deprecate Rubygems commands