Return a list of all gems that have a dependency on this gemspec. The list is structured with entries that conform to:
[depending_gem, dependency, [list_of_gems_that_satisfy_dependency]]
List of dependencies that are used for development
Sets the rubygems_version
to the current RubyGems version.
Checks to see if the files to be packaged are world-readable.
A git_gem
is used with a gem dependencies file. The gem created here has no files, just a gem specification for the given name
and version
.
Yields the specification
to the block, if given
Builds and installs the Gem::Specification
spec
Uninstalls the Gem::Specification
spec
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.
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.
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
A vendor_gem
is used with a gem dependencies file. The gem created here has no files, just a gem specification for the given name
and version
.
Yields the specification
to the block, if given
create_gemspec creates gem specification in given direcotry
or ‘.’ for the given name
and version
.
Yields the specification
to the block, if given
Returns the path to the certificate named cert_name
from test/rubygems/
.
Loads an RSA private key named key_name
with passphrase
in test/rubygems/
Uninstalls gem spec
Display a warning on stderr. Will ask question
if it is not nil.
terminate a job
check the user
and password
.
If password
is not provided, then user
is split, using URI::Generic.split_userinfo
, to pull user
and +password.
see also URI::Generic.check_user
, URI::Generic.check_password
check the user v
component for RFC2396 compliance and against the URI::Parser
Regexp
for :USERINFO
Can not have a registry or opaque component defined, with a user component defined.
protect setter for the user
component, and password
if available. (with validation)
see also URI::Generic.userinfo=