disabled
      ˆ¿‘äÇò 8à_ïIãiïç¾ƒh¹ÅÃÂ      disabled
  5   ˆl–ßi~” T¾R( 	Å+�3q�©‹Fÿ�þB gãh.¶ì wù¿ƒh¹ÆÄÃ      disabled
  5   ˆl–ßi~” T¾R( 	ÅÍÀ7p©‹Fÿ�þB gãx®Êô’ùÀƒh¹ÇÅÄ      disabled
  5   ˆl–ßi~” T¾R( 	Å+�jãO©‹Fÿ�þB gïÈ9 ËNùÁƒh¹ÈÆÅ      disabled
  N   ˆl–ßi~” T¾R( 	ÅÍÀ;q·”Å£‘äÇò 8à_ï,¾È¿ŸÂƒh¹Éa–ßi~” T¾R( 	ÅÍÀ;q·”Å£Ç      disabled
     ˆÂ�þB gãh.¶ì wùÃƒh¹Ê¾Ç      disabled
  5   ˆl–ßi~” T¾R( 	ÅÍÀ7pN)‹Fÿ�þB gãzY##aóÄƒh¹Ë¿È      disabled
  D   ˆl–ßi~””†»%�À¶¦-ÿ�þY#K7!d%y¹F@?Å964Ì_�uÐb&=LyZËcõÁÊ Ä    # frozen_string_literal: true
require_relative '../command'

class Gem::Commands::StaleCommand < Gem::Command
  def initialize
    super('stale', 'List gems along with access times')
  end

  def description # :nodoc:
    <<-EOF
The stale command lists the latest access time for all the files in your
installed gems.

You can use this command to discover gems and gem versions you are no
longer using.
    EOF
  end

  def usage # :nodoc:
    "#{program_name}"
  end

  def execute
    gem_to_atime = {}
    Gem::Specification.each do |spec|
      name = spec.full_name
      Dir["#{spec.full_gem_path}/**/*.*"].each do |file|
        next if File.directory?(file)
        stat = File.stat(file)
        gem_to_atime[name] ||= stat.atime
        gem_to_atime[name] = stat.atime if gem_to_atime[name] < stat.atime
      end
    end

    gem_to_atime.sort_by {|_, atime| atime }.each do |name, atime|
      say "#{name} at #{atime.strftime '%c'}"
    end
  end
end
     ˆ¿�þB ³rÖBW›”dóÆƒi·Í¾ÁÊ Ð    # frozen_string_literal: true
require_relative '../command'
require_relative '../version_option'
require_relative '../security_option'
require_relative '../remote_fetcher'
require_relative '../package'

# forward-declare

module Gem::Security # :nodoc:
  class Policy # :nodoc:
  end
end

class Gem::Commands::UnpackCommand < Gem::Command
  include Gem::VersionOption
  include Gem::SecurityOption

  def initialize
    require 'fileutils'

    super 'unpack', 'Unpack an installed gem to the current directory',
          :version => Gem::Requirement.default,
          :target  => Dir.pwd

    add_option('--target=DIR',
               'target directory for unpacking') do |value, options|
      options[:target] = value
    end

    add_option('--spec', 'unpack the gem specification') do |value, options|
      options[:spec] = true
    end

    add_security_option
    add_version_option
  end

  def arguments # :nodoc:
    "GEMNAME       name of gem to unpack"
  end

  def defaults_str # :nodoc:
    "--version '#{Gem::Requirement.default}'"
  end

  def description
    <<-EOF
The unpack command allows you to examine the contents of a gem or modify
them to help diagnose a bug.

You can add the contents of the unpacked gem to the load path using the
RUBYLIB environment variable or -I:

  $ gem unpack my_gem
  Unpacked gem: '.../my_gem-1.0'
  [edit my_gem-1.0/lib/my_gem.rb]
  $ ruby -Imy_gem-1.0/lib -S other_program

You can repackage an unpacked gem using the build command.  See the build
command help for an example.
    EOF
  end

  def usage # :nodoc:
    "#{program_name} GEMNAME"
  end

  #--
  # TODO: allow, e.g., 'gem unpack rake-0.3.1'.  Find a general solution for
  # this, so that it works for uninstall as well.  (And check other commands
  # at the same time.)

  def execute
    security_policy = options[:security_policy]

    get_all_gem_names.each do |name|
      dependency = Gem::Dependency.new name, options[:version]
      path = get_path dependency

      unless path
        alert_error "Gem '#{name}' not installed nor fetchable."
        next
      end

      if @options[:spec]
        spec, metadata = Gem::Package.raw_spec(path, security_policy)

        if metadata.nil?
          alert_error "--spec is unsupported on '#{name}' (old format gem)"
          next
        end

        spec_file = File.basename spec.spec_file

        FileUtils.mkdir_p @options[:target] if @options[:target]

        de