Loading
Require Ruby 3.3 and bump development dependencies
What does this MR do?
Requires Ruby 3.3, dropping the end-of-life Rubies 3.1 and 3.2, and bumps every development dependency to its latest version.
Related to #93 (closed)
Ruby versions
required_ruby_versiongoes from>= 3.1to>= 3.3. Ruby 3.1 reached end of life in March 2025 and 3.2 in March 2026.rubocop-all.ymlsetsTargetRubyVersion: 3.3, up from 3.1. The 13.0.0 release changed it the same way (commit f7fe8b49).- The CI matrix goes from
['3.1', '3.2', '3.3']to['3.3', '3.4', '4.0'], with coverage on 3.3.gitlab-org/gitlabuses 3.3 and 3.4.
Breaking: gitlab-styles requires Ruby 3.3 or later. Projects that inherit rubocop-all.yml without setting their own TargetRubyVersion are now linted as Ruby 3.3.
Development dependencies
| Gem | From | To |
|---|---|---|
bundler (BUNDLED WITH) |
2.6.9 | 4.0.23 |
| gitlab-dangerfiles | 4.6.0 | 4.14.0 |
| lefthook | 1.3.13 | 2.2.2 |
| pry-byebug | 3.10.1 | 3.12.0 |
| rake | 13.0.6 | 13.4.2 |
| rspec | 3.12.0 | 3.13.2 |
| rspec-parameterized-table_syntax | 1.0.0 | 2.1.1 |
| rubocop-rake | 0.6.0 | 0.7.1 |
| simplecov | 0.22.0 | 1.3.2 |
| simplecov-cobertura | 2.1.0 | 4.0.0 |
| simplecov-html | 0.12.3 | removed |
Indirect: json 2.7.2 → 3.1.0 and pry 0.14.2 → 0.16.1, for Ruby 4.0.
Changes the new versions needed
- simplecov 1.x includes its HTML formatter, so
simplecov-htmland itsrequireare gone. Version 0.13.2 also raises "too old" on simplecov 1.x. The report is now a singleindex.html, so thecoverage/assets/artifact path is removed. - rubocop-rake 0.7 is a RuboCop plugin, so
.rubocop.ymlloads it withplugins:. - json 3.1 and pry 0.16. json 2.7 is an old native extension. pry 0.14 requires
ostruct, which Ruby 4.0 no longer bundles. - No change needed:
lefthook.ymlvalidates with lefthook 2.- CI's Bundler setup (
gem install bundlerfromBUNDLED WITH, thenbundle config set --local deployment 'true') works with Bundler 4. - The rspec-parameterized 2 specs pass.
How to validate
bundle exec rubocop: no offenses, no warnings.CI=true bundle exec rspec: 609 examples, 0 failures, 100% line coverage, Cobertura report written.bundle exec lefthook validate: "All good".- Dry-run MR in
gitlab-org/gitlabagainst this MR's head: gitlab-org/gitlab!265850 (merged)
Edited by Abdul Wadood