X7ROOT File Manager
Current Path:
/opt/alt/ruby34/share/gems/gems/bundler-2.6.2/lib/bundler
opt
/
alt
/
ruby34
/
share
/
gems
/
gems
/
bundler-2.6.2
/
lib
/
bundler
/
ðŸ“
..
📄
build_metadata.rb
(1.22 KB)
📄
capistrano.rb
(877 B)
📄
checksum.rb
(6.94 KB)
📄
ci_detector.rb
(3.72 KB)
ðŸ“
cli
📄
cli.rb
(40.63 KB)
ðŸ“
compact_index_client
📄
compact_index_client.rb
(3.28 KB)
📄
constants.rb
(311 B)
📄
current_ruby.rb
(1.79 KB)
📄
definition.rb
(39.46 KB)
📄
dependency.rb
(3.3 KB)
📄
deployment.rb
(3.19 KB)
📄
deprecate.rb
(876 B)
📄
digest.rb
(2.16 KB)
📄
dsl.rb
(22.68 KB)
📄
endpoint_specification.rb
(4.32 KB)
📄
env.rb
(4.92 KB)
📄
environment_preserver.rb
(1.42 KB)
📄
errors.rb
(8.11 KB)
📄
feature_flag.rb
(1.85 KB)
ðŸ“
fetcher
📄
fetcher.rb
(11.64 KB)
📄
force_platform.rb
(544 B)
📄
friendly_errors.rb
(3.69 KB)
📄
gem_helper.rb
(6.88 KB)
📄
gem_helpers.rb
(5.29 KB)
📄
gem_tasks.rb
(138 B)
📄
gem_version_promoter.rb
(5.15 KB)
📄
graph.rb
(4.95 KB)
📄
index.rb
(4.85 KB)
📄
injector.rb
(10.03 KB)
📄
inline.rb
(3.45 KB)
ðŸ“
installer
📄
installer.rb
(8.89 KB)
📄
lazy_specification.rb
(6.98 KB)
📄
lockfile_generator.rb
(2.42 KB)
📄
lockfile_parser.rb
(8.94 KB)
ðŸ“
man
📄
match_metadata.rb
(390 B)
📄
match_platform.rb
(583 B)
📄
match_remote_metadata.rb
(863 B)
📄
materialization.rb
(1.37 KB)
📄
mirror.rb
(5.77 KB)
ðŸ“
plugin
📄
plugin.rb
(11.98 KB)
📄
process_lock.rb
(554 B)
📄
remote_specification.rb
(3.92 KB)
ðŸ“
resolver
📄
resolver.rb
(18.38 KB)
📄
retry.rb
(1.59 KB)
📄
ruby_dsl.rb
(1.83 KB)
📄
ruby_version.rb
(4.68 KB)
📄
rubygems_ext.rb
(13.68 KB)
📄
rubygems_gem_installer.rb
(4.67 KB)
📄
rubygems_integration.rb
(12.66 KB)
📄
runtime.rb
(10.54 KB)
📄
safe_marshal.rb
(597 B)
📄
self_manager.rb
(6.45 KB)
ðŸ“
settings
📄
settings.rb
(15.11 KB)
📄
setup.rb
(1.36 KB)
📄
shared_helpers.rb
(12.26 KB)
📄
similarity_detector.rb
(1.84 KB)
ðŸ“
source
📄
source.rb
(3.01 KB)
📄
source_list.rb
(6.8 KB)
📄
source_map.rb
(2.17 KB)
📄
spec_set.rb
(7.64 KB)
📄
stub_specification.rb
(3.43 KB)
ðŸ“
templates
ðŸ“
ui
📄
ui.rb
(255 B)
📄
uri_credentials_filter.rb
(1.29 KB)
📄
uri_normalizer.rb
(715 B)
ðŸ“
vendor
📄
vendored_fileutils.rb
(101 B)
📄
vendored_net_http.rb
(735 B)
📄
vendored_persistent.rb
(197 B)
📄
vendored_pub_grub.rb
(99 B)
📄
vendored_securerandom.rb
(387 B)
📄
vendored_thor.rb
(180 B)
📄
vendored_timeout.rb
(209 B)
📄
vendored_tsort.rb
(93 B)
📄
vendored_uri.rb
(496 B)
📄
version.rb
(259 B)
📄
vlad.rb
(465 B)
📄
worker.rb
(2.85 KB)
📄
yaml_serializer.rb
(2.42 KB)
Editing: lockfile_generator.rb
# frozen_string_literal: true module Bundler class LockfileGenerator attr_reader :definition attr_reader :out # @private def initialize(definition) @definition = definition @out = String.new end def self.generate(definition) new(definition).generate! end def generate! add_sources add_platforms add_dependencies add_checksums add_locked_ruby_version add_bundled_with out end private def add_sources definition.sources.lock_sources.each_with_index do |source, idx| out << "\n" unless idx.zero? # Add the source header out << source.to_lock # Find all specs for this source specs = definition.resolve.select {|s| source.can_lock?(s) } add_specs(specs) end end def add_specs(specs) # This needs to be sorted by full name so that # gems with the same name, but different platform # are ordered consistently specs.sort_by(&:full_name).each do |spec| next if spec.name == "bundler" out << spec.to_lock end end def add_platforms add_section("PLATFORMS", definition.platforms) end def add_dependencies out << "\nDEPENDENCIES\n" handled = [] definition.dependencies.sort_by(&:to_s).each do |dep| next if handled.include?(dep.name) out << dep.to_lock << "\n" handled << dep.name end end def add_checksums return unless definition.locked_checksums checksums = definition.resolve.map do |spec| spec.source.checksum_store.to_lock(spec) end add_section("CHECKSUMS", checksums) end def add_locked_ruby_version return unless locked_ruby_version = definition.locked_ruby_version add_section("RUBY VERSION", locked_ruby_version.to_s) end def add_bundled_with add_section("BUNDLED WITH", definition.bundler_version_to_lock.to_s) end def add_section(name, value) out << "\n#{name}\n" case value when Array value.map(&:to_s).sort.each do |val| out << " #{val}\n" end when Hash value.to_a.sort_by {|k, _| k.to_s }.each do |key, val| out << " #{key}: #{val}\n" end when String out << " #{value}\n" else raise ArgumentError, "#{value.inspect} can't be serialized in a lockfile" end end end end
Upload File
Create Folder