Skip to content

Commit 019c652

Browse files
committed
fixing ruby version
1 parent 66b19fd commit 019c652

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ebook.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12+
- uses: ruby/setup-ruby@v1
13+
with:
14+
ruby-version: '3.0.7'
1215
- name: Get git tag
1316
id: get_ref
1417
run: echo ::set-output name=REF::${GITHUB_REF/refs\/tags\//}

etc/ebook/build-pdf.rb

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

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

85-
# Update for Ruby 3.2
86-
# chapter_front_matter = YAML.load_file("../../_chapters/#{chapter_name}.md")
87-
chapter_front_matter = YAML::load(File.read("../../_chapters/#{chapter_name}.md"))
85+
chapter_front_matter = YAML.load_file("../../_chapters/#{chapter_name}.md")
8886

8987
#################
9088
# Validations

0 commit comments

Comments
 (0)