PHP 8.2.31
Preview: spec_specification.rb Size: 1.33 KB
//proc/thread-self/root/opt/alt/ruby32/share/rubygems/rubygems/resolver/spec_specification.rb

# frozen_string_literal: true

##
# The Resolver::SpecSpecification contains common functionality for
# Resolver specifications that are backed by a Gem::Specification.

class Gem::Resolver::SpecSpecification < Gem::Resolver::Specification
  ##
  # A SpecSpecification is created for a +set+ for a Gem::Specification in
  # +spec+.  The +source+ is either where the +spec+ came from, or should be
  # loaded from.

  def initialize(set, spec, source = nil)
    @set    = set
    @source = source
    @spec   = spec
  end

  ##
  # The dependencies of the gem for this specification

  def dependencies
    spec.dependencies
  end

  ##
  # The required_ruby_version constraint for this specification

  def required_ruby_version
    spec.required_ruby_version
  end

  ##
  # The required_rubygems_version constraint for this specification

  def required_rubygems_version
    spec.required_rubygems_version
  end

  ##
  # The name and version of the specification.
  #
  # Unlike Gem::Specification#full_name, the platform is not included.

  def full_name
    "#{spec.name}-#{spec.version}"
  end

  ##
  # The name of the gem for this specification

  def name
    spec.name
  end

  ##
  # The platform this gem works on.

  def platform
    spec.platform
  end

  ##
  # The version of the gem for this specification.

  def version
    spec.version
  end
end

Directory Contents

Dirs: 2 × Files: 26

Name Size Perms Modified Actions
api_set DIR
- drwxr-xr-x 2026-04-30 07:09:29
Edit Download
molinillo DIR
- drwxr-xr-x 2026-04-07 14:12:46
Edit Download
2.90 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
2.84 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
2.74 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
1.62 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
1.18 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
3.25 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
281 B lrw-r--r-- 2026-04-07 14:12:59
Edit Download
2.25 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
2.88 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
1.27 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
1.41 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
2.36 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
1.21 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
6.34 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
806 B lrw-r--r-- 2026-04-07 14:12:59
Edit Download
1.67 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
1.81 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
74 B lrw-r--r-- 2026-04-07 14:12:59
Edit Download
1.34 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
1.22 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
931 B lrw-r--r-- 2026-04-07 14:12:59
Edit Download
2.66 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
1.33 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
951 B lrw-r--r-- 2026-04-07 14:12:59
Edit Download
1.91 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
577 B lrw-r--r-- 2026-04-07 14:12:59
Edit Download

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