X7ROOT File Manager
Current Path:
/opt/alt/ruby33/share/gems/gems/bundler-2.5.22/lib/bundler
opt
/
alt
/
ruby33
/
share
/
gems
/
gems
/
bundler-2.5.22
/
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.91 KB)
ðŸ“
compact_index_client
📄
compact_index_client.rb
(3.28 KB)
📄
constants.rb
(311 B)
📄
current_ruby.rb
(1.79 KB)
📄
definition.rb
(36.88 KB)
📄
dependency.rb
(3.3 KB)
📄
deployment.rb
(3.19 KB)
📄
deprecate.rb
(876 B)
📄
digest.rb
(2.16 KB)
📄
dsl.rb
(22.26 KB)
📄
endpoint_specification.rb
(4.09 KB)
📄
env.rb
(4.92 KB)
📄
environment_preserver.rb
(1.42 KB)
📄
errors.rb
(7.96 KB)
📄
feature_flag.rb
(1.79 KB)
ðŸ“
fetcher
📄
fetcher.rb
(11.5 KB)
📄
force_platform.rb
(544 B)
📄
friendly_errors.rb
(3.69 KB)
📄
gem_helper.rb
(6.88 KB)
📄
gem_helpers.rb
(4.72 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.1 KB)
ðŸ“
installer
📄
installer.rb
(9.97 KB)
📄
lazy_specification.rb
(5.79 KB)
📄
lockfile_generator.rb
(2.43 KB)
📄
lockfile_parser.rb
(8.63 KB)
ðŸ“
man
📄
match_metadata.rb
(390 B)
📄
match_platform.rb
(583 B)
📄
match_remote_metadata.rb
(863 B)
📄
mirror.rb
(5.77 KB)
ðŸ“
plugin
📄
plugin.rb
(11.41 KB)
📄
process_lock.rb
(686 B)
📄
remote_specification.rb
(3.78 KB)
ðŸ“
resolver
📄
resolver.rb
(18.35 KB)
📄
retry.rb
(1.59 KB)
📄
ruby_dsl.rb
(1.83 KB)
📄
ruby_version.rb
(4.68 KB)
📄
rubygems_ext.rb
(13.63 KB)
📄
rubygems_gem_installer.rb
(4.68 KB)
📄
rubygems_integration.rb
(13.61 KB)
📄
runtime.rb
(9.92 KB)
📄
safe_marshal.rb
(597 B)
📄
self_manager.rb
(6.45 KB)
ðŸ“
settings
📄
settings.rb
(15.02 KB)
📄
setup.rb
(1.36 KB)
📄
shared_helpers.rb
(11.84 KB)
📄
similarity_detector.rb
(1.84 KB)
ðŸ“
source
📄
source.rb
(3.01 KB)
📄
source_list.rb
(6.81 KB)
📄
source_map.rb
(2.17 KB)
📄
spec_set.rb
(6.94 KB)
📄
stub_specification.rb
(3.27 KB)
ðŸ“
templates
ðŸ“
ui
📄
ui.rb
(255 B)
📄
uri_credentials_filter.rb
(1.27 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
(449 B)
📄
vendored_thor.rb
(180 B)
📄
vendored_timeout.rb
(209 B)
📄
vendored_tsort.rb
(93 B)
📄
vendored_uri.rb
(496 B)
📄
version.rb
(260 B)
📄
vlad.rb
(465 B)
📄
worker.rb
(2.85 KB)
📄
yaml_serializer.rb
(2.42 KB)
Editing: rubygems_gem_installer.rb
# frozen_string_literal: true require "rubygems/installer" module Bundler class RubyGemsGemInstaller < Gem::Installer def check_executable_overwrite(filename) # Bundler needs to install gems regardless of binstub overwriting end def install pre_install_checks run_pre_install_hooks spec.loaded_from = spec_file # Completely remove any previous gem files strict_rm_rf gem_dir strict_rm_rf spec.extension_dir SharedHelpers.filesystem_access(gem_dir, :create) do FileUtils.mkdir_p gem_dir, mode: 0o755 end extract_files build_extensions if spec.extensions.any? write_build_info_file run_post_build_hooks SharedHelpers.filesystem_access(bin_dir, :write) do generate_bin end generate_plugins write_spec SharedHelpers.filesystem_access("#{gem_home}/cache", :write) do write_cache_file end say spec.post_install_message unless spec.post_install_message.nil? run_post_install_hooks spec end if Bundler.rubygems.provides?("< 3.5") def pre_install_checks super rescue Gem::FilePermissionError # Ignore permission checks in RubyGems. Instead, go on, and try to write # for real. We properly handle permission errors when they happen. nil end end def ensure_writable_dir(dir) super rescue Gem::FilePermissionError # Ignore permission checks in RubyGems. Instead, go on, and try to write # for real. We properly handle permission errors when they happen. nil end def generate_plugins return unless Gem::Installer.instance_methods(false).include?(:generate_plugins) latest = Gem::Specification.stubs_for(spec.name).first return if latest && latest.version > spec.version ensure_writable_dir @plugins_dir if spec.plugins.empty? remove_plugins_for(spec, @plugins_dir) else regenerate_plugins_for(spec, @plugins_dir) end end if Bundler.rubygems.provides?("< 3.5.19") def generate_bin_script(filename, bindir) bin_script_path = File.join bindir, formatted_program_filename(filename) Gem.open_file_with_lock(bin_script_path) do require "fileutils" FileUtils.rm_f bin_script_path # prior install may have been --no-wrappers File.open(bin_script_path, "wb", 0o755) do |file| file.write app_script_text(filename) file.chmod(options[:prog_mode] || 0o755) end end verbose bin_script_path generate_windows_script filename, bindir end end def build_extensions extension_cache_path = options[:bundler_extension_cache_path] extension_dir = spec.extension_dir unless extension_cache_path && extension_dir prepare_extension_build(extension_dir) return super end build_complete = SharedHelpers.filesystem_access(extension_cache_path.join("gem.build_complete"), :read, &:file?) if build_complete && !options[:force] SharedHelpers.filesystem_access(File.dirname(extension_dir)) do |p| FileUtils.mkpath p end SharedHelpers.filesystem_access(extension_cache_path) do FileUtils.cp_r extension_cache_path, extension_dir end else prepare_extension_build(extension_dir) super SharedHelpers.filesystem_access(extension_cache_path.parent, &:mkpath) SharedHelpers.filesystem_access(extension_cache_path) do FileUtils.cp_r extension_dir, extension_cache_path end end end def spec if Bundler.rubygems.provides?("< 3.3.12") # RubyGems implementation rescues and re-raises errors before 3.3.12 and we don't want that @package.spec else super end end def gem_checksum Checksum.from_gem_package(@package) end private def prepare_extension_build(extension_dir) SharedHelpers.filesystem_access(extension_dir, :create) do FileUtils.mkdir_p extension_dir end require "shellwords" unless Bundler.rubygems.provides?(">= 3.2.25") end def strict_rm_rf(dir) return unless File.exist?(dir) return if Dir.empty?(dir) parent = File.dirname(dir) parent_st = File.stat(parent) if parent_st.world_writable? && !parent_st.sticky? raise InsecureInstallPathError.new(spec.full_name, dir) end begin FileUtils.remove_entry_secure(dir) rescue StandardError => e raise unless File.exist?(dir) raise DirectoryRemovalError.new(e, "Could not delete previous installation of `#{dir}`") end end end end
Upload File
Create Folder