Skip to content

Commit

Permalink
Add TaggedMap to permitted_classes to accomodate Psych with Ruby >= 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Nov 15, 2023
1 parent 982aa9b commit d8afbe9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8afbe9

Please sign in to comment.