Mirrors the Method#parameters
method.
Returns the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator.
Returns the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator.
Returns the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator.
Returns a new location that is the result of chopping off the last byte.
A Location
object representing the location of this token in the source.
Creates a new IPv6
address from arg
which may be:
Yields each Tuple
in this AvailableSet
True when the gem has been activated
The path to the data directory for this gem.
Platform of the gem
Delegates to @hash
Iterator over dependency_order
Construct an installer object for the gem file located at path
Factory method to create a Gem::Requirement
object. Input may be a Version, a String
, or nil. Intended to simplify client code.
If the input is “weird”, the default version requirement is returned.
Concatenates the new
requirements onto this requirement.
Factory method to create a Version
object. Input may be a Version
or a String
. Intended to simplify client code.
ver1 = Version.create('1.3.17') # -> (Version object) ver2 = Version.create(ver1) # -> (ver1) ver3 = Version.create(nil) # -> nil
Yields each source URI
in the list.
The platform this gem runs on.
This is usually Gem::Platform::RUBY or Gem::Platform::CURRENT.
Most gems contain pure Ruby
code; they should simply leave the default value in place. Some gems contain C (or other) code to be compiled into a Ruby
“extension”. The gem should leave the default value in place unless the code will only compile on a certain type of system. Some gems consist of pre-compiled code (“binary gems”). It’s especially important that they set the platform attribute appropriately. A shortcut is to set the platform to Gem::Platform::CURRENT, which will cause the gem builder to set the platform to the appropriate value for the system on which the build is being performed.
If this attribute is set to a non-default value, it will be included in the filename of the gem when it is built such as: nokogiri-1.6.0-x86-mingw32.gem
Usage:
spec.platform = Gem::Platform.local
Enumerate every known spec. See ::dirs=
and ::add_spec
to set the list of specs.
Return a list of all outdated local gem names. This method is HEAVY as it must go fetch specifications from the server.
Use outdated_and_latest_version
if you wish to retrieve the latest remote version as well.
Activate this spec, registering it as a loaded spec and adding it’s lib paths to $LOAD_PATH. Returns true if the spec was activated, false if it was previously activated. Freaks out if there are conflicts upon activation.