From f757a5d3ceb62a1f049f7060429b5b3bac6ad545 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 30 Oct 2023 17:23:39 +0900 Subject: [ruby/yaml] Compatibility for Psych 4 https://github.com/ruby/yaml/commit/b4b72ae0b4 --- lib/yaml/store.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/yaml/store.rb') diff --git a/lib/yaml/store.rb b/lib/yaml/store.rb index f8650b942f..88dd1b978c 100644 --- a/lib/yaml/store.rb +++ b/lib/yaml/store.rb @@ -65,7 +65,7 @@ class YAML::Store < PStore end def load(content) - table = YAML.unsafe_load(content) + table = YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(content) : YAML.load(content) if table == false {} else -- cgit v1.2.3