Skip to content

Commit

Permalink
updating ebook script
Browse files Browse the repository at this point in the history
  • Loading branch information
jayair committed Jan 2, 2025
1 parent 7eee8a5 commit 513c969
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion etc/ebook/build-pdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def build_chapter chapter_data

chapter.force_encoding(::Encoding::UTF_8)

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

#################
# Validations
Expand Down

0 comments on commit 513c969

Please sign in to comment.