/opt/cpanel/ea-ruby27/root/usr/share/ruby/ruby-2.7.8/bundler
NameSizeModeActions
cli/-0755rm
compact_index_client/-0755rm
fetcher/-0755rm
installer/-0755rm
plugin/-0755rm
resolver/-0755rm
settings/-0755rm
source/-0755rm
templates/-0755rm
ui/-0755rm
vendor/-0755rm
build_metadata.rb16040644editdlrm
capistrano.rb8830644editdlrm
cli.rb373000644editdlrm
compact_index_client.rb36710644editdlrm
constants.rb2120644editdlrm
current_ruby.rb21730644editdlrm
definition.rb376050644editdlrm
dependency.rb49550644editdlrm
deployment.rb32690644editdlrm
deprecate.rb8760644editdlrm
dep_proxy.rb8270644editdlrm
dsl.rb209180644editdlrm
endpoint_specification.rb40020644editdlrm
env.rb51260644editdlrm
environment_preserver.rb13100644editdlrm
errors.rb47000644editdlrm
feature_flag.rb25070644editdlrm
fetcher.rb113680644editdlrm
friendly_errors.rb44660644editdlrm
gemdeps.rb4230644editdlrm
gem_helper.rb63750644editdlrm
gem_helpers.rb32690644editdlrm
gem_remote_fetcher.rb14940644editdlrm
gem_tasks.rb1380644editdlrm
gem_version_promoter.rb66640644editdlrm
graph.rb51120644editdlrm
index.rb53680644editdlrm
injector.rb89730644editdlrm
inline.rb28290644editdlrm
installer.rb118740644editdlrm
lazy_specification.rb36930644editdlrm
lockfile_generator.rb22310644editdlrm
lockfile_parser.rb84690644editdlrm
match_platform.rb6600644editdlrm
mirror.rb59560644editdlrm
plugin.rb98520644editdlrm
process_lock.rb7020644editdlrm
psyched_yaml.rb8540644editdlrm
remote_specification.rb35250644editdlrm
resolver.rb164220644editdlrm
retry.rb16500644editdlrm
rubygems_ext.rb42440644editdlrm
rubygems_gem_installer.rb35740644editdlrm
rubygems_integration.rb184760644editdlrm
ruby_dsl.rb7610644editdlrm
ruby_version.rb45540644editdlrm
runtime.rb109300644editdlrm
settings.rb116680644editdlrm
setup.rb8020644editdlrm
shared_helpers.rb115350644editdlrm
similarity_detector.rb18820644editdlrm
source.rb28140644editdlrm
source_list.rb56490644editdlrm
spec_set.rb54020644editdlrm
stub_specification.rb23280644editdlrm
ui.rb2550644editdlrm
uri_credentials_filter.rb12660644editdlrm
vendored_fileutils.rb1010644editdlrm
vendored_molinillo.rb1010644editdlrm
vendored_persistent.rb17070644editdlrm
vendored_thor.rb1800644editdlrm
vendored_uri.rb890644editdlrm
version.rb1790644editdlrm
version_ranges.rb38880644editdlrm
vlad.rb4680644editdlrm
worker.rb26510644editdlrm
yaml_serializer.rb24120644editdlrm
Edit: /opt/cpanel/ea-ruby27/root/usr/share/ruby/ruby-2.7.8/bundler/lazy_specification.rb (3693B)
# frozen_string_literal: true require_relative "match_platform" module Bundler class LazySpecification Identifier = Struct.new(:name, :version, :source, :platform, :dependencies) class Identifier include Comparable def <=>(other) return unless other.is_a?(Identifier) [name, version, platform_string] <=> [other.name, other.version, other.platform_string] end protected def platform_string platform_string = platform.to_s platform_string == Index::RUBY ? Index::NULL : platform_string end end include MatchPlatform attr_reader :name, :version, :dependencies, :platform attr_accessor :source, :remote def initialize(name, version, platform, source = nil) @name = name @version = version @dependencies = [] @platform = platform || Gem::Platform::RUBY @source = source @specification = nil end def full_name if platform == Gem::Platform::RUBY || platform.nil? "#{@name}-#{@version}" else "#{@name}-#{@version}-#{platform}" end end def ==(other) identifier == other.identifier end def satisfies?(dependency) @name == dependency.name && dependency.requirement.satisfied_by?(Gem::Version.new(@version)) end def to_lock out = String.new if platform == Gem::Platform::RUBY || platform.nil? out << " #{name} (#{version})\n" else out << " #{name} (#{version}-#{platform})\n" end dependencies.sort_by(&:to_s).uniq.each do |dep| next if dep.type == :development out << " #{dep.to_lock}\n" end out end def __materialize__ search_object = Bundler.feature_flag.specific_platform? || Bundler.settings[:force_ruby_platform] ? self : Dependency.new(name, version) @specification = if source.is_a?(Source::Gemspec) && source.gemspec.name == name source.gemspec.tap {|s| s.source = source } else search = source.specs.search(search_object).last if search && Gem::Platform.new(search.platform) != Gem::Platform.new(platform) && !search.runtime_dependencies.-(dependencies.reject {|d| d.type == :development }).empty? Bundler.ui.warn "Unable to use the platform-specific (#{search.platform}) version of #{name} (#{version}) " \ "because it has different dependencies from the #{platform} version. " \ "To use the platform-specific version of the gem, run `bundle config set specific_platform true` and install again." search = source.specs.search(self).last end search.dependencies = dependencies if search && (search.is_a?(RemoteSpecification) || search.is_a?(EndpointSpecification)) search end end def respond_to?(*args) super || @specification ? @specification.respond_to?(*args) : nil end def to_s @__to_s ||= if platform == Gem::Platform::RUBY || platform.nil? "#{name} (#{version})" else "#{name} (#{version}-#{platform})" end end def identifier @__identifier ||= Identifier.new(name, version, source, platform, dependencies) end def git_version return unless source.is_a?(Bundler::Source::Git) " #{source.revision[0..6]}" end private def to_ary nil end def method_missing(method, *args, &blk) raise "LazySpecification has not been materialized yet (calling :#{method} #{args.inspect})" unless @specification return super unless respond_to?(method) @specification.send(method, *args, &blk) end end end