PHP 8.2.31
Preview: installed.rb Size: 541 B
/proc/thread-self/root/opt/alt/ruby21/lib64/ruby/2.1.0/rubygems/source/installed.rb

##
# Represents an installed gem.  This is used for dependency resolution.

class Gem::Source::Installed < Gem::Source

  def initialize # :nodoc:
    @uri = nil
  end

  ##
  # Installed sources sort before all other sources

  def <=> other
    case other
    when Gem::Source::Lock,
         Gem::Source::Vendor then
      -1
    when Gem::Source::Installed then
      0
    when Gem::Source then
      1
    else
      nil
    end
  end

  ##
  # We don't need to download an installed gem

  def download spec, path
    nil
  end

end

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
5.05 KB lrw-r--r-- 2014-02-06 02:59:36
Edit Download
541 B lrw-r--r-- 2013-11-30 23:27:52
Edit Download
2.60 KB lrw-r--r-- 2013-11-30 23:27:52
Edit Download
845 B lrw-r--r-- 2013-12-08 01:22:39
Edit Download
1.36 KB lrw-r--r-- 2013-11-19 00:34:13
Edit Download
438 B lrw-r--r-- 2013-11-30 23:27:52
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).