From 87b520ecda259765918e69cad01edd4b40515815 Mon Sep 17 00:00:00 2001 From: Kristina Spurgin Date: Tue, 10 Dec 2024 19:42:11 -0500 Subject: [PATCH] Pin standard ruby_version to 3.1 At 3.2, standardrb begins enforcing use of anonymous positional arguments forwarding, which breaks the code for any older Ruby versions, such as 2.5 to 3.1 in our CI test matrix. --- .github/workflows/push.yml | 5 ++++- .standard.yml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .standard.yml diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index b7e9a7f..8e2ecb5 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -58,7 +58,10 @@ jobs: - uses: ruby/setup-ruby@v1 with: bundler-cache: true - ruby-version: "3.3" + # Setting this later than 3.1 requires use of anonymous positional + # arguments forwarding, which breaks all versions earlier than 3.2 + # in our test matrix + ruby-version: "3.1" - name: Install dependencies run: bundle install - name: Run the tests diff --git a/.standard.yml b/.standard.yml new file mode 100644 index 0000000..72b2693 --- /dev/null +++ b/.standard.yml @@ -0,0 +1 @@ +ruby_version: 3.1