From ff88367ae8810136b67ba53bb0060049cfb9bcd2 Mon Sep 17 00:00:00 2001 From: Julian Gonggrijp Date: Thu, 16 Nov 2023 00:59:54 +0100 Subject: [PATCH] Add TaggedMap to permitted_classes to accomodate Psych with Ruby >= 3.1 --- Rakefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index c745f99..5335d90 100644 --- a/Rakefile +++ b/Rakefile @@ -25,7 +25,10 @@ namespace :build do File.open(json_file, 'w') do |file| warning = {:__ATTN__ => note} - doc = YAML.load_file(filename) + doc = YAML.load_file( + filename, + permitted_classes: [TaggedMap] + ) file << JSON.pretty_generate(warning.merge(doc)) << "\n" end end