A RequestSet groups a request to activate a set of dependencies.

nokogiri = Gem::Dependency.new 'nokogiri', '~> 1.6'
pg = Gem::Dependency.new 'pg', '~> 0.14'

set = Gem::RequestSet.new nokogiri, pg

requests = set.resolve

p requests.map { |r| r.full_name }
#=> ["nokogiri-1.6.0", "mini_portile-0.5.1", "pg-0.17.0"]
Constants

TODO: remove this typo name at RubyGems 3.0

Attributes
Read & Write

Array of gems to install even if already installed

No documentation available
Read & Write
No documentation available
Read

Errors fetching gems during resolution.

Read & Write

Set to true if you want to install only direct development dependencies.

Read & Write

When true, dependency resolution is not performed, only the requested gems are installed.

Read & Write

If true, allow dependencies to match prerelease gems.

Read & Write

When false no remote sets are used for resolving gems.

Read & Write

Treat missing dependencies as silent errors

Read

The set of source gems imported via load_gemdeps.

Class Methods

Creates a RequestSet for a list of Gem::Dependency objects, deps. You can then resolve and install the resolved list of dependencies.

nokogiri = Gem::Dependency.new 'nokogiri', '~> 1.6'
pg = Gem::Dependency.new 'pg', '~> 0.14'

set = Gem::RequestSet.new nokogiri, pg
Instance Methods

Declare that a gem of name name with reqs requirements is needed.

Add deps Gem::Dependency objects to the set.

Installs gems for this RequestSet using the Gem::Installer options.

If a block is given an activation request and installer are yielded. The installer will be nil if a gem matching the request was already installed.

Installs from the gem dependencies files in the :gemdeps option in options, yielding to the block as in install.

If :without_groups is given in the options, those groups in the gem dependencies file are not used. See Gem::Installer for other options.

No documentation available

Load a dependency management file.

Resolve the requested dependencies and return an Array of Specification objects to be activated.

Resolve the requested dependencies against the gems available via Gem.path and return an Array of Specification objects to be activated.

No documentation available
No documentation available
No documentation available