install

install(dep_or_name, version = Gem::Requirement.default) Instance Public methods Installs the gem dep_or_name and all its dependencies. Returns an Array of installed gem specifications. If the :prerelease option is set and there is a prerelease for dep_or_name the prerelease version will be installed. Unless explicitly specified as a prerelease dependency, prerelease gems that dep_or_name depend on will not be installed. If c-1.a depends on b-1 and a-1.a and there is a gem b-1.a a

in_background

in_background(what) Instance Public methods

gather_dependencies

gather_dependencies() Instance Public methods Gathers all dependencies necessary for the installation from local and remote sources unless the ignore_dependencies was given.

find_spec_by_name_and_version

find_spec_by_name_and_version(gem_name, version = Gem::Requirement.default, prerelease = false) Instance Public methods Finds a spec and the source_uri it came from for gem gem_name and version. Returns an Array of specs and sources required for installation of the gem.

find_gems_with_sources

find_gems_with_sources(dep) Instance Public methods Returns a list of pairs of gemspecs and source_uris that match Gem::Dependency dep from both local (Dir.pwd) and remote (Gem.sources) sources. Gems are sorted with newer gems preferred over older gems, and local gems preferred over remote gems.

consider_remote?

consider_remote?() Instance Public methods Indicated, based on the requested domain, if remote gems should be considered.

consider_local?

consider_local?() Instance Public methods Indicated, based on the requested domain, if local gems should be considered.

add_found_dependencies

add_found_dependencies(to_do, dependency_list) Instance Public methods

new

new(options = {}) Class Public methods Creates a new installer instance. Options are: :cache_dir Alternate repository path to store .gem files in. :domain :local, :remote, or :both. :local only searches gems in the current directory. :remote searches only gems in Gem.sources. :both searches both. :env_shebang See Gem::Installer.new. :force See Gem::Installer#install. :format_executable See Gem::Installer#initialize. :ignore_dependencies Don't install any dependen

type

type() Instance Public methods Dependency type.