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:
parent
faf9390e70
commit
9dfce77a4d
1 changed files with 1 additions and 5 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue