Skip to content

Commit e46fbe6

Browse files
committed
Psych and SafeYAML was loaded Gem.load_yml, these changes is unnecessary
1 parent 4d9a1d5 commit e46fbe6

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

lib/rubygems/package.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ def copy_to(path)
219219
# Adds a checksum for each entry in the gem to checksums.yaml.gz.
220220

221221
def add_checksums(tar)
222-
require 'psych'
223222
Gem.load_yaml
224223

225224
checksums_by_algorithm = Hash.new {|h, algorithm| h[algorithm] = {} }
@@ -553,7 +552,6 @@ def open_tar_gz(io) # :nodoc:
553552
# Reads and loads checksums.yaml.gz from the tar file +gem+
554553

555554
def read_checksums(gem)
556-
require_relative 'safe_yaml'
557555
Gem.load_yaml
558556

559557
@checksums = gem.seek "checksums.yaml.gz" do |entry|

lib/rubygems/safe_yaml.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# frozen_string_literal: true
22

3-
require 'psych'
4-
53
module Gem
64
###
75
# This module is used for safely loading YAML specs from a gem. The

0 commit comments

Comments
 (0)