We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d9a1d5 commit e46fbe6Copy full SHA for e46fbe6
2 files changed
lib/rubygems/package.rb
@@ -219,7 +219,6 @@ def copy_to(path)
219
# Adds a checksum for each entry in the gem to checksums.yaml.gz.
220
221
def add_checksums(tar)
222
- require 'psych'
223
Gem.load_yaml
224
225
checksums_by_algorithm = Hash.new {|h, algorithm| h[algorithm] = {} }
@@ -553,7 +552,6 @@ def open_tar_gz(io) # :nodoc:
553
552
# Reads and loads checksums.yaml.gz from the tar file +gem+
554
555
def read_checksums(gem)
556
- require_relative 'safe_yaml'
557
558
559
@checksums = gem.seek "checksums.yaml.gz" do |entry|
lib/rubygems/safe_yaml.rb
@@ -1,7 +1,5 @@
1
# frozen_string_literal: true
2
3
-require 'psych'
4
-
5
module Gem
6
###
7
# This module is used for safely loading YAML specs from a gem. The
0 commit comments