From 9dfce77a4dcf106824d36082e54b33e39468bc5b Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Mon, 12 Jun 2023 02:51:41 +0200 Subject: [PATCH] Remove workaround required to load YAML with ruby 2.7 and 3.1 This works now with ruby >= 3.0 --- config/bundler_helper.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/config/bundler_helper.rb b/config/bundler_helper.rb index 0f1174e1c..964565a89 100644 --- a/config/bundler_helper.rb +++ b/config/bundler_helper.rb @@ -27,11 +27,7 @@ module BundlerHelper return {} unless File.file?(path) - if YAML.respond_to?(:unsafe_load_file) - YAML.unsafe_load_file(path) - else - YAML.load_file(path) - end + YAML.safe_load_file(path, aliases: true) end private_class_method def self.parse_value_from_toml_file(file, key)