Skip to content

Conversation

@adamruzicka
Copy link
Contributor

No description provided.

@adamruzicka adamruzicka force-pushed the no-ruby27 branch 4 times, most recently from c7db2ec to aab1a12 Compare November 12, 2025 09:19
@bastelfreak
Copy link

I enjoy "<3" in a PR title, but it could be a bit... misleading :D. At Vox Pupuli we would phrase it "Require Ruby 3.1+" (And 3.1 is already EoL. Should it be dropped as well?)

@adamruzicka
Copy link
Contributor Author

Should it be dropped as well?

Foreman, as the primary consumer, runs with 3.0 on EL9, so as much as I'd like to do that, no, not yet.

@adamruzicka adamruzicka changed the title Drop support for ruby <3 Require ruby 3.0+ Nov 13, 2025
@adamruzicka
Copy link
Contributor Author

I enjoy "<3" in a PR title, but it could be a bit... misleading :D

I guess, but I did enjoy typing that :) Reworded

Style/LambdaCall:
Enabled: false

Gemspec/RequiredRubyVersion:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't it make more sense to update TargetRubyVersion: 2.7 to TargetRubyVersion: 3.0? Or do you have to keep linting for 2.7?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried that at some point[1], but I was running into this:

> Run bundle exec rubocop
Error: RuboCop found unknown Ruby version 3.0 in `TargetRubyVersion` parameter (in .rubocop.yml).
Supported versions: 2.4, 2.5, 2.6, 2.7, 2.8
Error: Process completed with exit code 2.

Guess that could be resolved by bumping rubocop (or theforeman-rubocop), but when I did that, the newer rubocop wanted to reformat every single file we have and I'd like to avoid that (or just adding all the new stuff to rubocop_todo)

[1] - https://github.com/Dynflow/dynflow/actions/runs/19291816955/job/55164106398

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah right, rubocop is also too ancient :( I guess the workaround is fine now now.

Copy link
Contributor Author

@adamruzicka adamruzicka Nov 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the record

$ bundle exec rubocop --regenerate-todo
-----B<-----SNIP----B<-----
237 files inspected, 1788 offenses detected, 1070 offenses auto-correctable
Created .rubocop_todo.yml.

So ideally, yes, but I don't want to do that here.

Edit: Tracked under #459

@adamruzicka adamruzicka merged commit cbe3aa5 into Dynflow:master Nov 13, 2025
10 checks passed
@adamruzicka adamruzicka deleted the no-ruby27 branch November 13, 2025 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants