Psych and SafeYAML was loaded Gem.load_yml, these changes is unnecessary

This commit is contained in:
Hiroshi SHIBATA 2025-05-13 14:35:03 +09:00
parent 4d9a1d5b6f
commit e46fbe624a
Notes: git 2025-05-13 06:49:32 +00:00
2 changed files with 0 additions and 4 deletions

View File

@ -219,7 +219,6 @@ class Gem::Package
# Adds a checksum for each entry in the gem to checksums.yaml.gz.
def add_checksums(tar)
require 'psych'
Gem.load_yaml
checksums_by_algorithm = Hash.new {|h, algorithm| h[algorithm] = {} }
@ -553,7 +552,6 @@ EOM
# Reads and loads checksums.yaml.gz from the tar file +gem+
def read_checksums(gem)
require_relative 'safe_yaml'
Gem.load_yaml
@checksums = gem.seek "checksums.yaml.gz" do |entry|

View File

@ -1,7 +1,5 @@
# frozen_string_literal: true
require 'psych'
module Gem
###
# This module is used for safely loading YAML specs from a gem. The