MAJOR=8
MINOR=16
DEVNAME=sdb
DEVTYPE=disk
DISKSEQ=3
     ˆÃÂÆ532Á¿Ä     ‹      ½”QoÓ0…ß÷+ŒxKn’–QuNÐh&QÑµUW„âÁ±ÝÄZbG¶»Òýz’¦eµ0„à)ÎÍñ½ç;IL^¤³ÑòÓü½[ÞNÐüÃÛÉx„°ð±7H—i÷ ï!ÀÍ#\8W6›�¿éùÚä°\@áª²ÖÉœÏÇÉikÉ"… ¼¹"â¤+E2V\|Ez…@¯�•\4�ëuVJv( ×•+_ÉRø\TÚ/¬Ï´®›A\3ëY[Ô}X[¶ ¦ÝÈ ”™Ð. Ð�kÀÞÉ4ß¶ÆÂÿg¢™µC§ÙÎK»4	qz ¥ÌUŒ�®qBd•#kXŒA2­,d%U÷~.WÑÒÅøóx4ûÒèÀíî„PT±Šñ›Q<½šÅ)N¦´èiÍm£¹ÆÉ„Z‡*ÍåJ
~V|×‰ïäãù†i§I…eFÖNjõ$…ñ•éÒÖ´a}ÕæXÕIøïÒ ì‡0æ×‹›é2/ºHxÛâÉÝ?z¥8™7KåP*�`N›íž¸ÿRe¶¾:Ü¢=�‘yáp‚�‡N*ÿ ¦«Úk?Ž¢‰ùd¬ *¥ÎýTd’*?ÄÉ‰â1ÃO¦£ ºôÂÐ‹z(Œ†á ¡3ÂËÞà¯éÖê^é�zš®·ûÉß—¿Ä^ya€ÂÞ0z}EÁûóÏüžaÿ§Ø6ºSðSvºHh    E   ˆl–ßi~””†»%�À¶¦-ÿ�þDñ
³rÖBW›”dóÈ„iÏÇ_�uÐb&=LyZËcõÁÆ (Î    # frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++

require 'fileutils'
require_relative '../rubygems'
require_relative 'installer_uninstaller_utils'
require_relative 'dependency_list'
require_relative 'rdoc'
require_relative 'user_interaction'

##
# 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.

class Gem::Uninstaller
  include Gem::UserInteraction

  include Gem::InstallerUninstallerUtils

  ##
  # The directory a gem's executables will be installed into

  attr_reader :bin_dir

  ##
  # The gem repository the gem will be installed into

  attr_reader :gem_home

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

  attr_reader :spec

  ##
  # Constructs an uninstaller that will uninstall +gem+

  def initialize(gem, options = {})
    # TODO document the valid options
    @gem                = gem
    @version            = options[:version] || Gem::Requirement.default
    @gem_home           = File.realpath(options[:install_dir] || Gem.dir)
    @plugins_dir        = Gem.plugindir(@gem_home)
    @force_executables  = options[:executables]
    @force_all          = options[:all]
    @force_ignore       = options[:ignore]
    @bin_dir            = options[:bin_dir]
    @format_executable  = options[:format_executable]
    @abort_on_dependent = options[:abort_on_dependent]

    # Indicate if development dependencies should be checked when
    # uninstalling. (default: false)
    #
    @check_dev = options[:check_dev]

    if options[:force]
      @force_all = true
      @force_ignore = true
    end

    # only add user directory if install_dir is not set
    @user_install = false
    @user_install = options[:user_install] unless options[:install_dir]

    # Optimization: populated during #uninstall
    @default_specs_matching_uninstall_params = []
  end

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

  def uninstall
    dependency = Gem::Dependency.new @gem, @version

    list = []

    dirs =
      Gem::Specification.dirs +
      [Gem.default_specifications_dir]

    Gem::Specification.each_spec dirs do |spec|
      next unless dependency.matches_spec? spec

      list << spec
    end

    if list.empty?
      raise Gem::InstallError, "gem #{@gem.inspect} is not installed"
    end

    default_specs, list = list.partition do |spec|
      spec.default_gem?
    end
    warn_cannot_uninstall_default_gems(default_specs - list)
    @default_specs_matching_uninstall_params = default_specs

    list, other_repo_specs = list.partition do |spec|
      @gem_home == spec.base_dir or
        (@user_install and spec.base_dir == Gem.user_dir)
    end

    list.sort!

    if list.empty?
      return unless other_repo_specs.any?

      other_repos = other_repo_specs.map {|spec| spec.base_dir }.uniq

      message = ["#{@gem} is not installed in GEM_HOME, try:"]
      message.concat other_repos.map {|repo|
        "\tgem uninstall -i #{repo} #{@gem}"
      }

    