An Uninstaller.

The uninstaller fires pre and post uninstall hooks. Hooks can be added either through a rubygems_plugin.rb file in an installed gem or via a rubygems/defaults/#{RUBY_ENGINE}.rb or rubygems/defaults/operating_system.rb file. See Gem.pre_uninstall and Gem.post_uninstall for details.

Attributes
Read

The directory a gem’s executables will be installed into

Read

The gem repository the gem will be uninstalled from

Read

The Gem::Specification for the gem being uninstalled, only set during uninstall_gem

Class Methods

Constructs an uninstaller that will uninstall gem named gem. options is a Hash with the following keys:

:version

Version requirement for the gem to uninstall. If not specified, uses Gem::Requirement.default.

:install_dir

The directory where the gem is installed. If not specified, uses Gem.dir.

:executables

Whether executables should be removed without confirmation or not. If nil, asks the user explicitly.

:all

If more than one version matches the requirement, whether to forcefully remove all matching versions or ask the user to select specific matching versions that should be removed.

:ignore

Ignore broken dependency checks when uninstalling.

:bin_dir

Directory containing executables to remove. If not specified, uses Gem.bindir.

:format_executable

In order to find executables to be removed, format executable names using Gem::Installer.exec_format.

:abort_on_dependent

Directly abort uninstallation if dependencies would be broken, rather than asking the user for confirmation.

:check_dev

When checking if uninstalling gem would leave broken dependencies around, also consider development dependencies.

:force

Set both :all and :ignore to true for forced uninstallation.

:user_install

Uninstall from user gem directory instead of system directory.

Instance Methods
No documentation available

@return true if the specs of any default gems are ‘==` to the given `spec`.

@return [Array] specs of default gems that are ‘==` to the given `spec`.

Is spec in gem_dir?

No documentation available

Regenerates plugin wrappers after removal.

spec

the spec of the gem to be uninstalled

Removes all gems in list.

NOTE: removes uninstalled gems from list.

Removes installed executables and batch files (windows only) for spec.

No documentation available
No documentation available
No documentation available

Performs the uninstall of the gem. This removes the spec, the Gem directory, and the cached .gem file.

Uninstalls gem spec

No documentation available