Creates an option parser and fills it in with the help info for the command.
Builds Marshal
quick index gemspecs.
Creates windows .bat files for easy running of commands
Creates the scripts to run the applications in the gem.
Creates the symlinks to run the applications in the gem. Moves the symlink if the gem being installed has a newer version.
Prefix and suffix the program filename the same as ruby.
Creates a Resolver
that queries only against the already installed gems for the needed
dependencies.
Find
and fetch gem name tuples that match dependency
.
If matching_platform
is false, gems for all platforms are returned.
Extra files to add to RDoc
such as README or doc/examples.txt
When the user elects to generate the RDoc
documentation for a gem (typically at install time), all the library files are sent to RDoc
for processing. This option allows you to have some non-code files included for a more complete set of documentation.
Usage:
spec.extra_rdoc_files = ['README', 'doc/user-guide.txt']
Sets extra_rdoc_files
to files
, ensuring it is an array. Don’t use this, push onto the array instead.
Removes all installed gems from +@gemhome+.
Set
the platform to arch
Allows the proper version of rake
to be used for the test.
Parses the cookie in str
Parses the cookies in str
Parses a C struct’s members
Example:
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"]]
Reads bytes from filename
and adds them to the PRNG.
Writes a number of random generated bytes (currently 1024) to filename
which can be used to initialize the PRNG by calling ::load_random_file
in a later session.
Yields to a block and preserves the previous set of objects being printed.
Returns the position that self
holds in its parent’s array, indexed from 1.