Find
and fetch specs that match dependency
.
If matching_platform
is false, gems for all platforms are returned.
Adds a development dependency named gem
with requirements
to this gem.
Usage:
spec.add_development_dependency 'example', '~> 1.1', '>= 1.1.4'
Development dependencies aren’t installed by default and aren’t activated when a gem is required.
Return currently unresolved specs that contain the file matching path
.
Specification
attributes that must be non-nil
Finds all gems that satisfy dep
Creates a TargetRbConfig
for the platform that RubyGems is running on.
Given that we know our syntax error exists somewhere in our frontier, we want to find the smallest possible set of blocks that contain all the syntax errors
Comes from ripper, called on every parse error, msg is a string
Returns URL-escaped string following RFC 3986.
Parses a C struct’s members
Example:
require 'fiddle/import' include Fiddle::CParser #=> Object parse_struct_signature(['int i', 'char c']) #=> [[Fiddle::TYPE_INT, Fiddle::TYPE_CHAR], ["i", "c"]] parse_struct_signature(['char buffer[80]']) #=> [[[Fiddle::TYPE_CHAR, 80]], ["buffer"]]
Sets the value of field 'Content-Type'
; returns the new value; see Content-Type request header:
req = Net::HTTP::Get.new(uri) req.set_content_type('application/json') # => ["application/json"]
Net::HTTPHeader#content_type=
is an alias for Net::HTTPHeader#set_content_type
.
Yields to a block and preserves the previous set of objects being printed.
Check whether the object_id id
is in the current buffer of objects to be pretty printed. Used to break cycles in chains of objects to be pretty printed.
Adds the object_id id
to the set of objects being pretty printed, so as to not repeat objects.