summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-04-17 15:05:31 +0900
committergit <svn-admin@ruby-lang.org>2023-04-19 06:56:15 +0000
commit038c6e773f1140485840e0789e275e0cdf880f0a (patch)
tree79fcc4b3d07ed2b87947db73d76d65bb98f391f8 /lib
parent2c91ec086919d695db5d6d15b5124f192205fdab (diff)
downloadruby-038c6e773f1140485840e0789e275e0cdf880f0a.tar.gz
[rubygems/rubygems] Added explicitly loading for Gem::SafeYAML
https://github.com/rubygems/rubygems/commit/3d9d587dd7
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/gemcutter_utilities.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rubygems/gemcutter_utilities.rb b/lib/rubygems/gemcutter_utilities.rb
index a8a586fa02..9fb31f990f 100644
--- a/lib/rubygems/gemcutter_utilities.rb
+++ b/lib/rubygems/gemcutter_utilities.rb
@@ -332,6 +332,8 @@ module Gem::GemcutterUtilities
request.basic_auth email, password
end
+ Gem.load_yaml
+
with_response response do |resp|
Gem::SafeYAML.load clean_text(resp.body)
end