Skip to content

Commit

Permalink
fixing ruby version
Browse files Browse the repository at this point in the history
  • Loading branch information
jayair committed Jan 2, 2025
1 parent 66b19fd commit 019c652
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ebook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0.7'
- name: Get git tag
id: get_ref
run: echo ::set-output name=REF::${GITHUB_REF/refs\/tags\//}
Expand Down
4 changes: 1 addition & 3 deletions etc/ebook/build-pdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ def build_chapter chapter_data

chapter.force_encoding(::Encoding::UTF_8)

# Update for Ruby 3.2
# chapter_front_matter = YAML.load_file("../../_chapters/#{chapter_name}.md")
chapter_front_matter = YAML::load(File.read("../../_chapters/#{chapter_name}.md"))
chapter_front_matter = YAML.load_file("../../_chapters/#{chapter_name}.md")

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

0 comments on commit 019c652

Please sign in to comment.