Replaces one child with another, making sure the nodelist is correct @param to_replace the child to replace (must be a Child
) @param replacement the child to insert into the nodelist (must be a Child
)
@return the current line in the source
@return the current line in the source
Returns a String namespace for a node, given a prefix The rules are:
1. Use the supplied namespace mapping first. 2. If no mapping was supplied, use the context node to look up the namespace
Try to get the XML
associated with rss
. Return rss
if it already looks like XML
, or treat it as a URI
, or a file to get the XML
,
Returns the paths to the source files for use with analysis and documentation tools. These paths are relative to full_gem_path.
Return a hash of predecessors. result[spec]
is an Array of gemspecs that have a dependency satisfied by the named gemspec.
Turn an array of [name, version, platform] into an array of NameTuple
objects.
Turn an array of NameTuple
objects back into an array of
tuples.
Yields each source in the list.
Duplicates array_attributes
from other_spec
so state isn’t shared.
Files in the Gem under one of the require_paths
Checks to see if the files to be packaged are world-readable.
Creates a Gem::Specification
with a minimum of extra work. name
and version
are the gem’s name and version, platform, author, email, homepage, summary and description are defaulted. The specification is yielded for customization.
The gem is added to the installed gems in +@gemhome+ and the runtime.
Use this with write_file
to build an installed gem.
Loads certificate named cert_name
from test/rubygems/
.