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
Implementation for Specification#validate_for_resolution
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
.
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"]]