From 997470b7b697d267109571d81081453acc73a2f9 Mon Sep 17 00:00:00 2001
From: Samuel Giddins <segiddins@segiddins.me>
Date: Wed, 14 Feb 2024 00:50:52 -0800
Subject: [PATCH] [rubygems/rubygems] Commit missing new method

https://github.com/rubygems/rubygems/commit/5265b4ce3d

Reference:https://github.com/ruby/ruby/commit/997470b7b697d267109571d81081453acc73a2f9
Conflict:Slightly different context
---
 lib/rubygems/safe_yaml.rb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/rubygems/safe_yaml.rb b/lib/rubygems/safe_yaml.rb
index 32c5309..336abba 100644
--- a/lib/rubygems/safe_yaml.rb
+++ b/lib/rubygems/safe_yaml.rb
@@ -27,10 +27,14 @@ module Gem
     )
 
     @aliases_enabled = true
-    def self.aliases_enabled=(value)
+    def self.aliases_enabled=(value) # :nodoc:
       @aliases_enabled = !!value
     end
 
+    def self.aliases_enabled? # :nodoc:
+      @aliases_enabled
+    end
+
     if ::YAML.respond_to? :safe_load
       def self.safe_load input
         ::YAML.safe_load(input, WHITELISTED_CLASSES, WHITELISTED_SYMBOLS, @aliases_enabled)
-- 
2.33.0


