PATH: //opt/alt/ruby26/lib64/ruby/2.6.0/bundler
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 build_metadata.rb
↓
X
📄 capistrano.rb
↓
X
📁 cli/
X
📄 cli.rb
↓
X
📁 compact_index_client/
X
📄 compact_index_client.rb
↓
X
📄 compatibility_guard.rb
↓
X
📄 constants.rb
↓
X
📄 current_ruby.rb
↓
X
📄 definition.rb
↓
X
📄 dep_proxy.rb
↓
X
📄 dependency.rb
↓
X
📄 deployment.rb
↓
X
📄 deprecate.rb
↓
X
📄 dsl.rb
↓
X
📄 endpoint_specification.rb
↓
X
📄 env.rb
↓
X
📄 environment_preserver.rb
↓
X
📄 errors.rb
↓
X
📄 feature_flag.rb
↓
X
📁 fetcher/
X
📄 fetcher.rb
↓
X
📄 friendly_errors.rb
↓
X
📄 gem_helper.rb
↓
X
📄 gem_helpers.rb
↓
X
📄 gem_remote_fetcher.rb
↓
X
📄 gem_tasks.rb
↓
X
📄 gem_version_promoter.rb
↓
X
📄 gemdeps.rb
↓
X
📄 graph.rb
↓
X
📄 index.rb
↓
X
📄 injector.rb
↓
X
📄 inline.rb
↓
X
📁 installer/
X
📄 installer.rb
↓
X
📄 lazy_specification.rb
↓
X
📄 lockfile_generator.rb
↓
X
📄 lockfile_parser.rb
↓
X
📄 match_platform.rb
↓
X
📄 mirror.rb
↓
X
📁 plugin/
X
📄 plugin.rb
↓
X
📄 process_lock.rb
↓
X
📄 psyched_yaml.rb
↓
X
📄 remote_specification.rb
↓
X
📁 resolver/
X
📄 resolver.rb
↓
X
📄 retry.rb
↓
X
📄 ruby_dsl.rb
↓
X
📄 ruby_version.rb
↓
X
📄 rubygems_ext.rb
↓
X
📄 rubygems_gem_installer.rb
↓
X
📄 rubygems_integration.rb
↓
X
📄 runtime.rb
↓
X
📁 settings/
X
📄 settings.rb
↓
X
📄 setup.rb
↓
X
📄 shared_helpers.rb
↓
X
📄 similarity_detector.rb
↓
X
📁 source/
X
📄 source.rb
↓
X
📄 source_list.rb
↓
X
📄 spec_set.rb
↓
X
📁 ssl_certs/
X
📄 stub_specification.rb
↓
X
📁 templates/
X
📁 ui/
X
📄 ui.rb
↓
X
📄 uri_credentials_filter.rb
↓
X
📁 vendor/
X
📄 vendored_fileutils.rb
↓
X
📄 vendored_molinillo.rb
↓
X
📄 vendored_persistent.rb
↓
X
📄 vendored_thor.rb
↓
X
📄 version.rb
↓
X
📄 version_ranges.rb
↓
X
📄 vlad.rb
↓
X
📄 worker.rb
↓
X
📄 yaml_serializer.rb
↓
X
SAVING...
BERHASIL DIUBAH!
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 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
SIMPAN PERUBAHAN