From 420deb204b5f4e6dc1637a3c3294e632d93ef23b Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Wed, 9 Sep 2026 16:40:35 +0900 Subject: [PATCH] Use engine-only ruby-version where only the latest release is needed ruby/setup-ruby resolves an engine-only value such as `ruby` or `jruby` to the latest stable release of that engine. The jobs that need a single CRuby (RuboCop, release) and the JRuby rows of the test matrices were pinned to `4.0` or `jruby-10.1.1.0`, so every new CRuby or JRuby release required a manual bump. Writing `ruby` and `jruby` instead lets setup-ruby pick the current release, the same form truffleruby.yml already uses. The README's CI version list now says the latest stable JRuby release instead of 10.1.1.0. The multi-version CRuby matrices, test_gemfiles.yml, and the head/debug jobs name specific releases on purpose and are unchanged. Co-Authored-By: Claude Fable 5.1 --- .github/workflows/release.yml | 6 +++--- .github/workflows/rubocop.yml | 4 ++-- .github/workflows/test.yml | 2 +- .github/workflows/test_11g.yml | 2 +- .github/workflows/test_11g_ojdbc11.yml | 2 +- README.md | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 139b35c..c788261 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: '4.0' + ruby-version: 'ruby' rubygems: latest - name: Build gem run: gem build ruby-plsql.gemspec @@ -36,7 +36,7 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 'jruby-10.1.1.0' + ruby-version: 'jruby' rubygems: latest - name: Build gem run: gem build ruby-plsql.gemspec @@ -67,7 +67,7 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: '4.0' + ruby-version: 'ruby' rubygems: latest - name: Configure RubyGems credentials uses: rubygems/configure-rubygems-credentials@main diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 69b80f2..070888e 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -13,10 +13,10 @@ jobs: steps: - uses: actions/checkout@v7 - - name: Set up Ruby 4.0 + - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: "4.0" + ruby-version: "ruby" rubygems: latest - name: Build and run RuboCop run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fb44b43..4d60d34 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: '4.0', '3.4', '3.3', - 'jruby-10.1.1.0', + 'jruby', ] env: NLS_LANG: AMERICAN_AMERICA.AL32UTF8 diff --git a/.github/workflows/test_11g.yml b/.github/workflows/test_11g.yml index 72d5108..f4405d9 100644 --- a/.github/workflows/test_11g.yml +++ b/.github/workflows/test_11g.yml @@ -19,7 +19,7 @@ jobs: '4.0', '3.4', '3.3', - 'jruby-10.1.1.0', + 'jruby', ] env: ORACLE_HOME: /opt/oracle/instantclient_21_21 diff --git a/.github/workflows/test_11g_ojdbc11.yml b/.github/workflows/test_11g_ojdbc11.yml index 235ece3..6d82549 100644 --- a/.github/workflows/test_11g_ojdbc11.yml +++ b/.github/workflows/test_11g_ojdbc11.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: ruby: [ - 'jruby-10.1.1.0' + 'jruby' ] env: ORACLE_HOME: /opt/oracle/instantclient_21_21 diff --git a/README.md b/README.md index aceffcd..ca03d9e 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ ruby-plsql gem provides simple Ruby API for calling Oracle PL/SQL procedures. It NUMBER, BINARY_INTEGER, PLS_INTEGER, NATURAL, NATURALN, POSITIVE, POSITIVEN, SIGNTYPE, SIMPLE_INTEGER, VARCHAR, VARCHAR2, NVARCHAR2, CHAR, NCHAR, DATE, TIMESTAMP, CLOB, BLOB, BOOLEAN, PL/SQL RECORD, TABLE, VARRAY, OBJECT and CURSOR types are supported for input and output parameters and return values of PL/SQL procedures and functions. -ruby-plsql is tested on CI against Ruby 2.4, 2.5, 2.7, 3.1, 3.2, 3.3, 3.4, 4.0 and JRuby 10.1.1.0. Ruby 2.4–3.1 remain in CI to verify compatibility with older ActiveRecord releases (see gemfiles/). The CI runs the suite against Oracle Database 23ai Free and Oracle Database XE 11g. +ruby-plsql is tested on CI against Ruby 2.4, 2.5, 2.7, 3.1, 3.2, 3.3, 3.4, 4.0 and the latest stable JRuby release. Ruby 2.4–3.1 remain in CI to verify compatibility with older ActiveRecord releases (see gemfiles/). The CI runs the suite against Oracle Database 23ai Free and Oracle Database XE 11g. USAGE -----