From 6bbb084522a0497b5ff8e810df300098a5e45ad9 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Sun, 20 Jun 2021 19:27:59 +0200 Subject: [PATCH] Fix compatibility with psych 4.0 --- ext/libv8-node/location.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/libv8-node/location.rb b/ext/libv8-node/location.rb index fa71f47..9b4cf68 100644 --- a/ext/libv8-node/location.rb +++ b/ext/libv8-node/location.rb @@ -18,7 +18,7 @@ def install! def self.load! File.open(Pathname(__FILE__).dirname.join('.location.yml')) do |f| - YAML.load(f) # rubocop:disable Security/YAMLLoad + YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(f) : YAML.load(f) # rubocop:disable Security/YAMLLoad end end