diff --git a/ext/libv8/location.rb b/ext/libv8/location.rb index bc4111b..34f2bc5 100644 --- a/ext/libv8/location.rb +++ b/ext/libv8/location.rb @@ -13,7 +13,7 @@ def install! def self.load! File.open(Pathname(__FILE__).dirname.join('.location.yml')) do |f| - YAML.load f + YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(f) : YAML.load(f) # rubocop:disable Security/YAMLLoad end end