Find
and fetch gem name tuples that match dependency
.
If matching_platform
is false, gems for all platforms are returned.
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
Make sure the YAML
specification is properly formatted with dashes
Finds all gems that satisfy dep
Choose from a list of options. question
is a prompt displayed above the list. list
is a list of option strings. Returns the pair [option_name, option_index].
Performance optimization
Parsing with ripper is expensive If we know we don’t have any blocks with invalid syntax, then we know we cannot have found the incorrect syntax yet.
When an invalid block is added onto the frontier check document state
Builds blocks from bottom up
Private method to assemble query
from attributes
, scope
, filter
, and extensions
.
Returns the destination encoding name as a string.
Returns the destination encoding name as a string.
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"]]