X7ROOT File Manager
Current Path:
/opt/cpanel/ea-ruby27/root/usr/share/ruby/ruby-2.7.8/bundler
opt
/
cpanel
/
ea-ruby27
/
root
/
usr
/
share
/
ruby
/
ruby-2.7.8
/
bundler
/
📁
..
📄
build_metadata.rb
(1.57 KB)
📄
capistrano.rb
(883 B)
📁
cli
📄
cli.rb
(36.43 KB)
📁
compact_index_client
📄
compact_index_client.rb
(3.58 KB)
📄
constants.rb
(212 B)
📄
current_ruby.rb
(2.12 KB)
📄
definition.rb
(36.72 KB)
📄
dep_proxy.rb
(827 B)
📄
dependency.rb
(4.84 KB)
📄
deployment.rb
(3.19 KB)
📄
deprecate.rb
(876 B)
📄
dsl.rb
(20.43 KB)
📄
endpoint_specification.rb
(3.91 KB)
📄
env.rb
(5.01 KB)
📄
environment_preserver.rb
(1.28 KB)
📄
errors.rb
(4.59 KB)
📄
feature_flag.rb
(2.45 KB)
📁
fetcher
📄
fetcher.rb
(11.1 KB)
📄
friendly_errors.rb
(4.36 KB)
📄
gem_helper.rb
(6.23 KB)
📄
gem_helpers.rb
(3.19 KB)
📄
gem_remote_fetcher.rb
(1.46 KB)
📄
gem_tasks.rb
(138 B)
📄
gem_version_promoter.rb
(6.51 KB)
📄
gemdeps.rb
(423 B)
📄
graph.rb
(4.99 KB)
📄
index.rb
(5.24 KB)
📄
injector.rb
(8.76 KB)
📄
inline.rb
(2.76 KB)
📁
installer
📄
installer.rb
(11.6 KB)
📄
lazy_specification.rb
(3.61 KB)
📄
lockfile_generator.rb
(2.18 KB)
📄
lockfile_parser.rb
(8.27 KB)
📄
match_platform.rb
(660 B)
📄
mirror.rb
(5.82 KB)
📁
plugin
📄
plugin.rb
(9.62 KB)
📄
process_lock.rb
(702 B)
📄
psyched_yaml.rb
(854 B)
📄
remote_specification.rb
(3.44 KB)
📁
resolver
📄
resolver.rb
(16.04 KB)
📄
retry.rb
(1.61 KB)
📄
ruby_dsl.rb
(761 B)
📄
ruby_version.rb
(4.45 KB)
📄
rubygems_ext.rb
(4.14 KB)
📄
rubygems_gem_installer.rb
(3.49 KB)
📄
rubygems_integration.rb
(18.04 KB)
📄
runtime.rb
(10.67 KB)
📁
settings
📄
settings.rb
(11.39 KB)
📄
setup.rb
(802 B)
📄
shared_helpers.rb
(11.26 KB)
📄
similarity_detector.rb
(1.84 KB)
📁
source
📄
source.rb
(2.75 KB)
📄
source_list.rb
(5.52 KB)
📄
spec_set.rb
(5.28 KB)
📄
stub_specification.rb
(2.27 KB)
📁
templates
📁
ui
📄
ui.rb
(255 B)
📄
uri_credentials_filter.rb
(1.24 KB)
📁
vendor
📄
vendored_fileutils.rb
(101 B)
📄
vendored_molinillo.rb
(101 B)
📄
vendored_persistent.rb
(1.67 KB)
📄
vendored_thor.rb
(180 B)
📄
vendored_uri.rb
(89 B)
📄
version.rb
(179 B)
📄
version_ranges.rb
(3.8 KB)
📄
vlad.rb
(468 B)
📄
worker.rb
(2.59 KB)
📄
yaml_serializer.rb
(2.36 KB)
Editing: rubygems_gem_installer.rb
# frozen_string_literal: true require "rubygems/installer" module Bundler class RubyGemsGemInstaller < Gem::Installer unless respond_to?(:at) def self.at(*args) new(*args) end end def check_executable_overwrite(filename) # Bundler needs to install gems regardless of binstub overwriting end def pre_install_checks super && validate_bundler_checksum(options[:bundler_expected_checksum]) end def build_extensions extension_cache_path = options[:bundler_extension_cache_path] return super unless extension_cache_path && extension_dir = Bundler.rubygems.spec_extension_dir(spec) extension_dir = Pathname.new(extension_dir) build_complete = SharedHelpers.filesystem_access(extension_cache_path.join("gem.build_complete"), :read, &:file?) if build_complete && !options[:force] SharedHelpers.filesystem_access(extension_dir.parent, &:mkpath) SharedHelpers.filesystem_access(extension_cache_path) do FileUtils.cp_r extension_cache_path, spec.extension_dir end else super if extension_dir.directory? # not made for gems without extensions 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 end private def validate_bundler_checksum(checksum) return true if Bundler.settings[:disable_checksum_validation] return true unless checksum return true unless source = @package.instance_variable_get(:@gem) return true unless source.respond_to?(:with_read_io) digest = source.with_read_io do |io| digest = SharedHelpers.digest(:SHA256).new digest << io.read(16_384) until io.eof? io.rewind send(checksum_type(checksum), digest) end unless digest == checksum raise SecurityError, <<-MESSAGE Bundler cannot continue installing #{spec.name} (#{spec.version}). The checksum for the downloaded `#{spec.full_name}.gem` does not match \ the checksum given by the server. This means the contents of the downloaded \ gem is different from what was uploaded to the server, and could be a potential security issue. To resolve this issue: 1. delete the downloaded gem located at: `#{spec.gem_dir}/#{spec.full_name}.gem` 2. run `bundle install` If you wish to continue installing the downloaded gem, and are certain it does not pose a \ security issue despite the mismatching checksum, do the following: 1. run `bundle config set disable_checksum_validation true` to turn off checksum verification 2. run `bundle install` (More info: The expected SHA256 checksum was #{checksum.inspect}, but the \ checksum for the downloaded gem was #{digest.inspect}.) MESSAGE end true end def checksum_type(checksum) case checksum.length when 64 then :hexdigest! when 44 then :base64digest! else raise InstallError, "The given checksum for #{spec.full_name} (#{checksum.inspect}) is not a valid SHA256 hexdigest nor base64digest" end end def hexdigest!(digest) digest.hexdigest! end def base64digest!(digest) if digest.respond_to?(:base64digest!) digest.base64digest! else [digest.digest!].pack("m0") end end end end
Upload File
Create Folder