Skip to content

Commit 6bbb084

Browse files
committed
Fix compatibility with psych 4.0
1 parent 299a317 commit 6bbb084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/libv8-node/location.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def install!
1818

1919
def self.load!
2020
File.open(Pathname(__FILE__).dirname.join('.location.yml')) do |f|
21-
YAML.load(f) # rubocop:disable Security/YAMLLoad
21+
YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(f) : YAML.load(f) # rubocop:disable Security/YAMLLoad
2222
end
2323
end
2424

0 commit comments

Comments
 (0)