From 4bd8d2047452f8f7f9b0086e8bab7f050ee4c9d7 Mon Sep 17 00:00:00 2001 From: Torrey Payne <11740989+torreypayne@users.noreply.github.com> Date: Thu, 1 Oct 2026 23:09:56 +0000 Subject: [PATCH] chore(ci): pin toys to ~> 0.22.0 toys 0.24.0 removed the alias_tool directive used in .toys/.toys.rb, so every toys task fails at load. Pin CI to ~> 0.22.0 and switch to `tool "yard", delegate_to: "yardoc"`, which loads on 0.22 and 0.24. --- .github/workflows/ci.yml | 2 +- .kokoro/samples.sh | 2 +- .toys/.toys.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32ab53ba..8cff4c53 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,7 @@ jobs: - name: Install dependencies shell: bash run: | - gem install --no-document toys + gem install --no-document toys -v '~> 0.22.0' bundle install - name: Test ${{ matrix.task }} shell: bash diff --git a/.kokoro/samples.sh b/.kokoro/samples.sh index 50ae3929..6aa4455a 100755 --- a/.kokoro/samples.sh +++ b/.kokoro/samples.sh @@ -7,7 +7,7 @@ set -eo pipefail export GEM_HOME=$HOME/.gem export PATH=$GEM_HOME/bin:$PATH -gem install --no-document toys +gem install --no-document toys -v '~> 0.22.0' # To run acceptance tests for samples, we need the `sample_loader.rb` helper # from the `googleapis/ruby-common-tools` repository. diff --git a/.toys/.toys.rb b/.toys/.toys.rb index 9f76ff2a..855c075a 100644 --- a/.toys/.toys.rb +++ b/.toys/.toys.rb @@ -49,7 +49,7 @@ def run exec ["bundle", "exec", "yard", "doc"] end end -alias_tool :yard, :yardoc +tool "yard", delegate_to: "yardoc" expand :gem_build