Concatenates the new
requirements onto this requirement.
A string representation of this Version
.
Extensions to build when installing the gem, specifically the paths to extconf.rb-style files used to compile extensions.
These files will be run when the gem is installed, causing the C (or whatever) code to be compiled on the user’s machine.
Usage:
spec.extensions << 'ext/rmagic/extconf.rb'
See Gem::Ext::Builder
for information about writing extensions for gems.
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.
Return any possible conflicts against the currently loaded specs.
Sets extensions to extensions
, ensuring it is an array.
Set
the version to version
, potentially also setting required_rubygems_version
if version
indicates it is a prerelease.
Returns extensions.
Setter for extensions val
.
Obtains a lock, runs the block, and releases the lock when the block completes. See the example under Thread::Mutex
.
Returns URL-unescaped string following RFC 3986.
URL-decode a string following RFC 3986 with encoding(optional).
string = CGI.unescape("%27Stop%21%27+said%20Fred") # => "'Stop!'+said Fred"
This method injects an instance variable unconverted_fields
into row
and an accessor method for row
called unconverted_fields(). The variable is set to the contents of fields
.
Creates an option parser and fills it in with the help info for the command.
Checks the permissions of the credentials file. If they are not 0600 an error message is displayed and RubyGems aborts.
Adds a runtime dependency named gem
with requirements
to this gem.
Usage:
spec.add_runtime_dependency 'example', '~> 1.1', '>= 1.1.4'
Add the –key option