From 2e1082d0a339698ff43412a63401be98f09c5e31 Mon Sep 17 00:00:00 2001 From: Dmitry Vorotilin Date: Wed, 21 Oct 2026 19:51:19 +0300 Subject: [PATCH] chore: drop Ruby 3.1 support Ruby 3.1 is EOL and ruby/setup-ruby has no build for it on ubuntu-latest (26.04), so the 3.1 CI jobs fail at setup. Require Ruby >= 3.2, remove 3.1 from the CI matrix, and target 3.2 in RuboCop. Keep named argument forwarding so YARD @param tags still match method signatures. --- .github/workflows/tests.yml | 2 +- .rubocop.yml | 5 ++++- CHANGELOG.md | 2 ++ vessel.gemspec | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 458a2cd..ee2f018 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["3.1", "3.2", "3.3", "3.4", "4.0"] + ruby: ["3.2", "3.3", "3.4", "4.0"] runs-on: ubuntu-latest steps: - name: Checkout code diff --git a/.rubocop.yml b/.rubocop.yml index e82ec58..45b0325 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,5 @@ AllCops: - TargetRubyVersion: 3.1 + TargetRubyVersion: 3.2 NewCops: enable SuggestExtensions: false @@ -24,6 +24,9 @@ Naming/FileName: Style/StringLiterals: EnforcedStyle: double_quotes +Style/ArgumentsForwarding: + UseAnonymousForwarding: false + Style/MultilineBlockChain: Exclude: - spec/**/* diff --git a/CHANGELOG.md b/CHANGELOG.md index 46ac3b0..c70bf80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ Ferrum or a driver of their own ([#38](https://github.com/rubycdp/vessel/issues/38)). +* Ruby 3.1 support is dropped, Vessel requires Ruby 3.2 or newer. + ### Changed * Drivers are loaded when the crawler asks for them instead of when Vessel is diff --git a/vessel.gemspec b/vessel.gemspec index ffc1c40..df0997a 100644 --- a/vessel.gemspec +++ b/vessel.gemspec @@ -32,7 +32,7 @@ Gem::Specification.new do |s| "rubygems_mfa_required" => "true" } - s.required_ruby_version = ">= 3.1" + s.required_ruby_version = ">= 3.2" s.add_dependency "addressable", "~> 2.5" s.add_dependency "concurrent-ruby", "~> 1.1"