True if version
satisfies this Requirement
.
Paths in the gem to add to $LOAD_PATH
when this gem is activated.
See also require_paths
If you have an extension you do not need to add "ext"
to the require path, the extension build process will copy the extension files into “lib” for you.
The default value is "lib"
Usage:
# If all library files are in the root directory... spec.require_paths = ['.']
Return the list of all array-oriented instance variables.
Activate all unambiguously resolved runtime dependencies of this spec. Add any ambiguous dependencies to the unresolved list to be resolved later, as needed.
Sanitize a single string.
Returns the build_args
used to install the gem
Return true if there are possible conflicts against the currently loaded specs.
List of dependencies that are used for development
Singular accessor for require_paths
Singular accessor for require_paths
List of dependencies that will automatically be activated at runtime.
Checks if this specification meets the requirement of dependency
.
Sets the ENABLE_SHARED entry in RbConfig::CONFIG to value
and restores the original value when the block ends
Reads a binary file at path
Creates a spec with name
, version
. deps
can specify the dependency or a block
can be given for full customization of the specification.
Creates a gem with name
, version
and deps
. The specification will be yielded before gem creation for customization. The gem will be placed in File.join @tempdir, 'gems'
. The specification and .gem file location are returned.
Gzips data
.
Deflates data
Creates a SpecFetcher pre-filled with the gems or specs defined in the block.
Yields a fetcher
object that responds to spec
and gem
. spec
adds a specification to the SpecFetcher while gem
adds both a specification and the gem data to the RemoteFetcher so the built gem can be downloaded.
If only the a-3 gem is supposed to be downloaded you can save setup time by creating only specs for the other versions:
spec_fetcher do |fetcher| fetcher.spec 'a', 1 fetcher.spec 'a', 2, 'b' => 3 # dependency on b = 3 fetcher.gem 'a', 3 do |spec| # spec is a Gem::Specification # ... end end
Loads certificate named cert_name
from test/rubygems/
.
Returns the path to the key named key_name
from test/rubygems