From b27a55141d05812d1e840a9c464d0d7a97a3e274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Guimar=C3=A3es?= Date: Tue, 15 Sep 2026 18:05:46 -0300 Subject: [PATCH 1/2] ci: Test on Ruby 3.3 to 4.0, refresh action pins and add Dependabot Ruby 3.2 reached end of life in March 2026 and 4.0 has been out since December. Lint and release jobs move to 3.4, checkout to v7, release-please-action to v5. Dependabot for bundler and github-actions so this stops drifting silently. --- .github/dependabot.yml | 10 ++++++++++ .github/workflows/lint.yml | 4 ++-- .github/workflows/main.yml | 4 ++-- .github/workflows/release-please.yml | 6 +++--- 4 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..87d8085 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: bundler + directory: / + schedule: + interval: weekly + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1692023..093e29b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,10 +14,10 @@ jobs: BUNDLE_GEMFILE: 'gemfiles/rubocop.gemfile' steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - uses: ruby/setup-ruby@v1 with: - ruby-version: '3.3' + ruby-version: '3.4' bundler-cache: true - name: Lint Ruby code with Rubocop run: bundle exec rubocop diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 78e69a7..1eb314c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ['3.2', '3.3', '3.4'] + ruby: ['3.3', '3.4', '4.0'] faraday_adapter: [net_http, em_http] faraday: ['~> 1.0', '~> 2.0'] exclude: @@ -28,7 +28,7 @@ jobs: faraday_adapter: em_http steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index d093e0a..b8e4682 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -18,7 +18,7 @@ jobs: release_created: ${{ steps.release.outputs.release_created }} tag_name: ${{ steps.release.outputs.tag_name }} steps: - - uses: googleapis/release-please-action@v4 + - uses: googleapis/release-please-action@v5 id: release rubygems-publish: @@ -33,10 +33,10 @@ jobs: contents: write id-token: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - uses: ruby/setup-ruby@v1 with: - ruby-version: "3.3" + ruby-version: "3.4" bundler-cache: true - uses: rubygems/release-gem@v1 with: From b969aa7c3ac4e4a2d2fb953d50812fd3dcec21d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Guimar=C3=A3es?= Date: Tue, 15 Sep 2026 18:05:47 -0300 Subject: [PATCH 2/2] chore!: Require Ruby 3.3 or newer Ruby 3.2 is end of life and no longer in the test matrix. --- .rubocop.yml | 2 +- faraday-http-cache.gemspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 0849060..ac5cc87 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,5 @@ AllCops: - TargetRubyVersion: 3.2 + TargetRubyVersion: 3.3 NewCops: disable SuggestExtensions: false Exclude: diff --git a/faraday-http-cache.gemspec b/faraday-http-cache.gemspec index 37e89e0..091b059 100644 --- a/faraday-http-cache.gemspec +++ b/faraday-http-cache.gemspec @@ -16,6 +16,6 @@ Gem::Specification.new do |gem| gem.require_paths = ['lib'] gem.executables = [] - gem.required_ruby_version = '>= 3.2.0' + gem.required_ruby_version = '>= 3.3.0' gem.add_dependency 'faraday', '>= 0.8' end