Psych and SafeYAML was loaded Gem.load_yml, these changes is unnecessary
This commit is contained in:
parent
4d9a1d5b6f
commit
e46fbe624a
Notes:
git
2025-05-13 06:49:32 +00:00
@ -219,7 +219,6 @@ class Gem::Package
|
|||||||
# Adds a checksum for each entry in the gem to checksums.yaml.gz.
|
# Adds a checksum for each entry in the gem to checksums.yaml.gz.
|
||||||
|
|
||||||
def add_checksums(tar)
|
def add_checksums(tar)
|
||||||
require 'psych'
|
|
||||||
Gem.load_yaml
|
Gem.load_yaml
|
||||||
|
|
||||||
checksums_by_algorithm = Hash.new {|h, algorithm| h[algorithm] = {} }
|
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+
|
# Reads and loads checksums.yaml.gz from the tar file +gem+
|
||||||
|
|
||||||
def read_checksums(gem)
|
def read_checksums(gem)
|
||||||
require_relative 'safe_yaml'
|
|
||||||
Gem.load_yaml
|
Gem.load_yaml
|
||||||
|
|
||||||
@checksums = gem.seek "checksums.yaml.gz" do |entry|
|
@checksums = gem.seek "checksums.yaml.gz" do |entry|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'psych'
|
|
||||||
|
|
||||||
module Gem
|
module Gem
|
||||||
###
|
###
|
||||||
# This module is used for safely loading YAML specs from a gem. The
|
# This module is used for safely loading YAML specs from a gem. The
|
||||||
|
Loading…
x
Reference in New Issue
Block a user