From 1d1bfab723b6968cb0a10de2518134e4c8480c01 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Tue, 9 Jun 2026 15:45:17 +1000 Subject: [PATCH 1/4] Bump minimum Ruby supported to 3.3 Follow up to https://github.com/ashfurrow/danger-ruby-swiftlint/pull/215#discussion_r3301712218, which highlighted Ruby versions < 3.3 are no longer receiving support. --- .github/workflows/ci.yml | 2 +- Gemfile | 4 +--- Gemfile.lock | 4 ++-- danger-swiftlint.gemspec | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8727853..90bcb1c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ['3.0', '3.1', '3.2', '3.3', '3.4'] + ruby: ['3.3', '3.4'] env: DANGER_SKIP_SWIFTLINT_INSTALL: 'YES' steps: diff --git a/Gemfile b/Gemfile index 42fa1ee..1662be2 100755 --- a/Gemfile +++ b/Gemfile @@ -12,9 +12,7 @@ group :development do gem 'bundler' gem 'mocha' gem 'mocha-on-bacon' - # `parallel` 2.x requires Ruby >= 3.3 — keep it on 1.x so the matrix - # can still install on Ruby 3.0–3.2. - gem 'parallel', '< 2' + gem 'parallel' gem 'prettybacon' gem 'rubocop', '~> 1.50', require: false end diff --git a/Gemfile.lock b/Gemfile.lock index 34c4f6c..91ecf3a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -96,7 +96,7 @@ GEM sawyer (~> 0.9) open4 (1.3.4) ostruct (0.6.3) - parallel (1.28.0) + parallel (2.1.0) parser (3.3.11.1) ast (~> 2.4.1) racc @@ -168,7 +168,7 @@ DEPENDENCIES listen (= 3.0.7) mocha mocha-on-bacon - parallel (< 2) + parallel prettybacon pry rspec (~> 3.4) diff --git a/danger-swiftlint.gemspec b/danger-swiftlint.gemspec index 1115345..e5d17ed 100755 --- a/danger-swiftlint.gemspec +++ b/danger-swiftlint.gemspec @@ -19,7 +19,7 @@ Gem::Specification.new do |spec| spec.require_paths = ['lib'] spec.extensions = %w[ext/swiftlint/Rakefile] spec.executables = ['danger-swiftlint'] - spec.required_ruby_version = '>= 2.3' + spec.required_ruby_version = '>= 3.3' spec.add_dependency 'danger' spec.add_dependency 'rake', '> 10' From d2cf8af2763f306881010d3e430ec7d2e4b22ed3 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Tue, 9 Jun 2026 15:49:25 +1000 Subject: [PATCH 2/4] Align RuboCop target version with `.ruby-version` --- .rubocop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index 9623ef2..dca7139 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,5 @@ AllCops: - TargetRubyVersion: 3.0 + TargetRubyVersion: 3.4.5 NewCops: disable # Disable linting of Dangerfile. From 5786d02815cc2bac0d91a4ae756aadb569c08493 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Tue, 9 Jun 2026 15:51:05 +1000 Subject: [PATCH 3/4] Add changelog entry for Ruby version update --- Changelog.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index 6aa8943..2e9943a 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,7 +2,7 @@ ## Current Master -- Nothing yet! +- Dropped support for Ruby 3.0, 3.1, and 3.2. See #216 ## 0.37.5 @@ -35,7 +35,7 @@ ## 0.35.0 -- Updates Thor to 1.0.0. +- Updates Thor to 1.0.0. ## 0.34.0 From 39a9798b7429c43a94ca2a2513445476ef662b46 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Tue, 9 Jun 2026 15:55:40 +1000 Subject: [PATCH 4/4] Fully link PR for Ruby 3.3 floor in changelog Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- Changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 2e9943a..eea0e85 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,7 +2,7 @@ ## Current Master -- Dropped support for Ruby 3.0, 3.1, and 3.2. See #216 +- Dropped support for Ruby 3.0, 3.1, and 3.2. See [#216](https://github.com/ashfurrow/danger-ruby-swiftlint/pull/216) ## 0.37.5