X7ROOT File Manager
Current Path:
/opt/alt/ruby32/share/gems/gems/bundler-2.4.19/lib/bundler
opt
/
alt
/
ruby32
/
share
/
gems
/
gems
/
bundler-2.4.19
/
lib
/
bundler
/
ðŸ“
..
📄
build_metadata.rb
(1.2 KB)
📄
capistrano.rb
(883 B)
ðŸ“
cli
📄
cli.rb
(41 KB)
ðŸ“
compact_index_client
📄
compact_index_client.rb
(3.36 KB)
📄
constants.rb
(224 B)
📄
current_ruby.rb
(2.43 KB)
📄
definition.rb
(32.33 KB)
📄
dependency.rb
(3.11 KB)
📄
deployment.rb
(3.19 KB)
📄
deprecate.rb
(876 B)
📄
digest.rb
(2.16 KB)
📄
dsl.rb
(19.97 KB)
📄
endpoint_specification.rb
(3.65 KB)
📄
env.rb
(5.01 KB)
📄
environment_preserver.rb
(1.94 KB)
📄
errors.rb
(5.17 KB)
📄
feature_flag.rb
(1.79 KB)
ðŸ“
fetcher
📄
fetcher.rb
(11.19 KB)
📄
force_platform.rb
(557 B)
📄
friendly_errors.rb
(3.75 KB)
📄
gem_helper.rb
(6.89 KB)
📄
gem_helpers.rb
(4.08 KB)
📄
gem_tasks.rb
(138 B)
📄
gem_version_promoter.rb
(4.76 KB)
📄
graph.rb
(4.99 KB)
📄
index.rb
(4.14 KB)
📄
injector.rb
(10.08 KB)
📄
inline.rb
(2.47 KB)
ðŸ“
installer
📄
installer.rb
(10.25 KB)
📄
lazy_specification.rb
(5.35 KB)
📄
lockfile_generator.rb
(2.18 KB)
📄
lockfile_parser.rb
(7.01 KB)
ðŸ“
man
📄
match_metadata.rb
(290 B)
📄
match_platform.rb
(583 B)
📄
match_remote_metadata.rb
(863 B)
📄
mirror.rb
(5.78 KB)
ðŸ“
plugin
📄
plugin.rb
(11.25 KB)
📄
process_lock.rb
(686 B)
📄
remote_specification.rb
(3.71 KB)
ðŸ“
resolver
📄
resolver.rb
(14.62 KB)
📄
retry.rb
(1.61 KB)
📄
ruby_dsl.rb
(961 B)
📄
ruby_version.rb
(4.17 KB)
📄
rubygems_ext.rb
(10.88 KB)
📄
rubygems_gem_installer.rb
(5.24 KB)
📄
rubygems_integration.rb
(15.82 KB)
📄
runtime.rb
(10.15 KB)
📄
safe_marshal.rb
(597 B)
📄
self_manager.rb
(4.76 KB)
ðŸ“
settings
📄
settings.rb
(13.19 KB)
📄
setup.rb
(963 B)
📄
shared_helpers.rb
(10.76 KB)
📄
similarity_detector.rb
(1.84 KB)
ðŸ“
source
📄
source.rb
(2.98 KB)
📄
source_list.rb
(6.18 KB)
📄
source_map.rb
(2.17 KB)
📄
spec_set.rb
(5.08 KB)
📄
stub_specification.rb
(2.79 KB)
ðŸ“
templates
ðŸ“
ui
📄
ui.rb
(255 B)
📄
uri_credentials_filter.rb
(1.28 KB)
📄
uri_normalizer.rb
(715 B)
ðŸ“
vendor
📄
vendored_fileutils.rb
(101 B)
📄
vendored_persistent.rb
(270 B)
📄
vendored_pub_grub.rb
(99 B)
📄
vendored_thor.rb
(180 B)
📄
vendored_tsort.rb
(93 B)
📄
vendored_uri.rb
(89 B)
📄
version.rb
(260 B)
📄
vlad.rb
(468 B)
📄
worker.rb
(2.85 KB)
📄
yaml_serializer.rb
(2.36 KB)
Editing: endpoint_specification.rb
# frozen_string_literal: true module Bundler # used for Creating Specifications from the Gemcutter Endpoint class EndpointSpecification < Gem::Specification include MatchRemoteMetadata attr_reader :name, :version, :platform, :checksum attr_accessor :source, :remote, :dependencies def initialize(name, version, platform, spec_fetcher, dependencies, metadata = nil) super() @name = name @version = Gem::Version.create version @platform = Gem::Platform.new(platform) @spec_fetcher = spec_fetcher @dependencies = dependencies.map {|dep, reqs| build_dependency(dep, reqs) } @loaded_from = nil @remote_specification = nil parse_metadata(metadata) end def fetch_platform @platform end # needed for standalone, load required_paths from local gemspec # after the gem is installed def require_paths if @remote_specification @remote_specification.require_paths elsif _local_specification _local_specification.require_paths else super end end # needed for inline def load_paths # remote specs aren't installed, and can't have load_paths if _local_specification _local_specification.load_paths else super end end # needed for binstubs def executables if @remote_specification @remote_specification.executables elsif _local_specification _local_specification.executables else super end end # needed for bundle clean def bindir if @remote_specification @remote_specification.bindir elsif _local_specification _local_specification.bindir else super end end # needed for post_install_messages during install def post_install_message if @remote_specification @remote_specification.post_install_message elsif _local_specification _local_specification.post_install_message else super end end # needed for "with native extensions" during install def extensions if @remote_specification @remote_specification.extensions elsif _local_specification _local_specification.extensions else super end end def _local_specification return unless @loaded_from && File.exist?(local_specification_path) eval(File.read(local_specification_path)).tap do |spec| spec.loaded_from = @loaded_from end end def __swap__(spec) SharedHelpers.ensure_same_dependencies(self, dependencies, spec.dependencies) @remote_specification = spec end private def _remote_specification @_remote_specification ||= @spec_fetcher.fetch_spec([@name, @version, @platform]) end def local_specification_path "#{base_dir}/specifications/#{full_name}.gemspec" end def parse_metadata(data) unless data @required_ruby_version = nil @required_rubygems_version = nil return end data.each do |k, v| next unless v case k.to_s when "checksum" @checksum = v.last when "rubygems" @required_rubygems_version = Gem::Requirement.new(v) when "ruby" @required_ruby_version = Gem::Requirement.new(v) end end rescue StandardError => e raise GemspecError, "There was an error parsing the metadata for the gem #{name} (#{version}): #{e.class}\n#{e}\nThe metadata was #{data.inspect}" end def build_dependency(name, requirements) Gem::Dependency.new(name, requirements) end end end
Upload File
Create Folder