From e82a067ae5d75fbe4b8d10ff8db88f687418d1bf Mon Sep 17 00:00:00 2001 From: Toshimaru Date: Sun, 28 Sep 2025 10:49:24 +0900 Subject: [PATCH 1/3] Update Ruby version to 3.4 in CI workflow Bumps the Ruby version from 3.3 to 3.4 in the GitHub Actions CI configuration for both Jekyll and Rails jobs to ensure compatibility with the latest Ruby release. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f1b23a7e63..2d98ce5d33 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: - ruby-version: 3.3 + ruby-version: 3.4 bundler-cache: true - name: Jekyll Build run: bundle exec jekyll build @@ -40,7 +40,7 @@ jobs: run: cd rails && git fetch --depth=1 origin refs/tags/v8*:refs/tags/v8* - uses: ruby/setup-ruby@v1 with: - ruby-version: 3.3 + ruby-version: 3.4 bundler-cache: true - name: Doc Build run: rake build From 2a70a28ec1f08fa3ad2a3988e8ee007a7b24de26 Mon Sep 17 00:00:00 2001 From: Toshimaru Date: Sun, 28 Sep 2025 10:53:28 +0900 Subject: [PATCH 2/3] fix: Add csv for Ruby v2.4 ``` bundler: failed to load command: jekyll (/home/runner/work/railsdoc.github.io/railsdoc.github.io/vendor/bundle/ruby/3.4.0/bin/jekyll) :37:in 'Kernel#require': cannot load such file -- csv (LoadError) ``` --- Gemfile | 4 +++- Gemfile.lock | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 2000645258..acf26ee339 100644 --- a/Gemfile +++ b/Gemfile @@ -1,13 +1,15 @@ source 'https://rubygems.org' gem 'jekyll' + +gem 'csv' gem 'nokogiri', '1.15.6' gem 'rake' gem 'webrick' group :jekyll_plugins do - gem 'github-pages' gem 'faraday', '~> 2.8.1' # For Ruby v2.x + gem 'github-pages' gem 'jekyll-include-cache' gem 'jekyll-toc' end diff --git a/Gemfile.lock b/Gemfile.lock index 4ed8eab89b..4916bddbd5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -23,6 +23,7 @@ GEM commonmarker (0.23.10) concurrent-ruby (1.3.3) connection_pool (2.4.1) + csv (3.3.5) dnsruby (1.72.1) simpleidn (~> 0.2.1) drb (2.2.1) @@ -268,6 +269,7 @@ PLATFORMS ruby DEPENDENCIES + csv faraday (~> 2.8.1) github-pages jekyll From 73c7a3fd9d8aa0933ee5b7112ac1d40be6d3134b Mon Sep 17 00:00:00 2001 From: Toshimaru Date: Sun, 28 Sep 2025 11:02:13 +0900 Subject: [PATCH 3/3] Update Ruby version to 3.4 in deploy workflow Bumps the Ruby version from 3.3 to 3.4 in the GitHub Actions deploy workflow to ensure compatibility with the latest Ruby features and security updates. --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1f7839ffb9..af9dfad52f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 3.3 + ruby-version: 3.4 bundler-cache: true - name: Setup Pages uses: actions/configure-pages@v5