Remove workaround required to load YAML with ruby 2.7 and 3.1

This works now with ruby >= 3.0
This commit is contained in:
Benjamin Neff 2023-06-12 02:51:41 +02:00
parent faf9390e70
commit 9dfce77a4d
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -27,11 +27,7 @@ module BundlerHelper
return {} unless File.file?(path) return {} unless File.file?(path)
if YAML.respond_to?(:unsafe_load_file) YAML.safe_load_file(path, aliases: true)
YAML.unsafe_load_file(path)
else
YAML.load_file(path)
end
end end
private_class_method def self.parse_value_from_toml_file(file, key) private_class_method def self.parse_value_from_toml_file(file, key)