From 9ce67bf06ed696d0ff4fef1791382ed366ecc9e8 Mon Sep 17 00:00:00 2001 From: Faisal N Jawdat Date: Thu, 2 Apr 2026 12:20:16 +0100 Subject: [PATCH 1/2] Drop Ruby 3.2 support, update baseline to Ruby 3.3 - Update minimum Ruby requirement to 3.2 - Drop Ruby 3.2 from CI matrix - Adopt some RubyCritic-provided corrections, but suppress Style/OneClassPerFile in all its flagged files # Conflicts: # CHANGELOG.md # lib/rubycritic/analysis_summary.rb --- .github/workflows/main.yml | 4 ---- .rubocop.yml | 2 +- CHANGELOG.md | 1 + rubycritic.gemspec | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c05e960a..697b5911 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,7 +28,6 @@ jobs: fail-fast: false matrix: ruby-version: - - '3.2' - '3.3' - '3.4' - '4.0' @@ -59,7 +58,6 @@ jobs: fail-fast: false matrix: ruby-version: - - '3.2' - '3.3' - '3.4' - '4.0' @@ -90,7 +88,6 @@ jobs: fail-fast: false matrix: ruby-version: - - '3.2' - '3.3' - '3.4' - '4.0' @@ -121,7 +118,6 @@ jobs: fail-fast: false matrix: ruby-version: - - '3.2' - '3.3' - '3.4' - '4.0' diff --git a/.rubocop.yml b/.rubocop.yml index 8d6ffb2b..af4e7b0c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -11,7 +11,7 @@ AllCops: - 'tmp/**/*' - 'vendor/**/*' - 'gemfiles/*' - TargetRubyVersion: 3.2 + TargetRubyVersion: 3.3 Gemspec/DevelopmentDependencies: Exclude: diff --git a/CHANGELOG.md b/CHANGELOG.md index 86cd9243..58a45c3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * [CHORE] ... * [FEATURE] ... +* [CHANGE] Drop support for Ruby 3.2 (by [@faisal][]) * [CHANGE] Loosen MarkdownLint dependency (by [@faisal][]) * [CHORE] Bump Mocha and Rake dependencies (by [@faisal][]) * [CHANGE] Replace Aruba with direct API calls in specs (by [@faisal][]) diff --git a/rubycritic.gemspec b/rubycritic.gemspec index 1da8b1ce..b33ca7d5 100644 --- a/rubycritic.gemspec +++ b/rubycritic.gemspec @@ -15,7 +15,7 @@ Gem::Specification.new do |spec| spec.summary = 'RubyCritic is a Ruby code quality reporter' spec.homepage = 'https://github.com/whitesmith/rubycritic' spec.license = 'MIT' - spec.required_ruby_version = '>= 3.2.0' + spec.required_ruby_version = '>= 3.3.0' spec.files = [ 'CHANGELOG.md', From e86ad1714da729302d9738cad9230d1f3f982c27 Mon Sep 17 00:00:00 2001 From: Faisal N Jawdat Date: Sun, 26 Apr 2026 12:23:53 +0100 Subject: [PATCH 2/2] Update compatibility matrix in README. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3ff5b355..61b90fa7 100644 --- a/README.md +++ b/README.md @@ -247,7 +247,7 @@ RubyCritic is supporting Ruby versions: | 2.7 | [v4.9.1](https://github.com/whitesmith/rubycritic/tree/v4.9.1) | | 3.0 | [v4.9.2](https://github.com/whitesmith/rubycritic/tree/v4.9.1) | | 3.1 | [v4.12.0](https://github.com/whitesmith/rubycritic/tree/v4.12.0) | -| 3.2 | latest | +| 3.2 | [v5.0.0](https://github.com/whitesmith/rubycritic/tree/v5.0.0) | | 3.3 | latest | | 3.4 | latest | | 4.0 | latest |