Git binary path
Return the full path to the cached gem file matching the given name and version requirement. Returns ‘nil’ if no match.
Example:
get_path 'rake', '> 0.4' # "/usr/lib/ruby/gems/1.8/cache/rake-0.4.2.gem" get_path 'rake', '< 0.1' # nil get_path 'rak' # nil (exact name required)
The full name of the specification to be activated.
Path of activations from the current
list.
The name and version of the specification.
Unlike Gem::Specification#full_name
, the platform is not included.
The name and version of the specification.
Unlike Gem::Specification#full_name
, the platform is not included.
Returns the path to the trusted certificate
Returns the full file path of this frame.
Same as path
, but includes the absolute path.
Returns every spec that matches name
and optional requirements
.
true if server advertises AUTH CRAM-MD5. You cannot get valid value before opening SMTP
session.
Iterates through the child elements, yielding for each Element
that has a particular attribute set.
the name of the attribute to search for
the value of the attribute
(optional) causes this method to return after yielding for this number of matching children
(optional) if supplied, this is an XPath
that filters the children to check.
doc = Document.new "<a><b @id='1'/><c @id='2'/><d @id='1'/><e/></a>" # Yields b, c, d doc.root.each_element_with_attribute( 'id' ) {|e| p e} # Yields b, d doc.root.each_element_with_attribute( 'id', '1' ) {|e| p e} # Yields b doc.root.each_element_with_attribute( 'id', '1', 1 ) {|e| p e} # Yields d doc.root.each_element_with_attribute( 'id', '1', 0, 'd' ) {|e| p e}
Get all gem names from the command line.
Get a single gem name from the command line. Fail if there is no gem name or if there is more than one gem name given.
Suggests gems based on the supplied gem_name
. Returns an array of alternative gem names.
Thanks, FakeWeb!