Skip to content

Commit 513c969

Browse files
committed
updating ebook script
1 parent 7eee8a5 commit 513c969

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

etc/ebook/build-pdf.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ def build_chapter chapter_data
8282

8383
chapter.force_encoding(::Encoding::UTF_8)
8484

85-
chapter_front_matter = YAML.load_file("../../_chapters/#{chapter_name}.md")
85+
# Update for Ruby 3.2
86+
# chapter_front_matter = YAML.load_file("../../_chapters/#{chapter_name}.md")
87+
chapter_front_matter = YAML.safe_load_file("../../_chapters/#{chapter_name}.md", permitted_classes: [Time])
8688

8789
#################
8890
# Validations

0 commit comments

Comments
 (0)