thoughtbot / factory_bot

A library for setting up Ruby objects as test data.
https://thoughtbot.com
MIT License
7.93k stars 2.6k forks source link

Drop support for Ruby 3.0 #1715

Open sarahraqueld opened 1 week ago

sarahraqueld commented 1 week ago

Ruby 3.0 reached EOL on April 2024, but we're still running that version on CI:

Screenshot 2024-11-06 at 11 10 44

Editing the workflow build file to remove 3.0 should be enough to close this issue: https://github.com/thoughtbot/factory_bot/blob/main/.github/workflows/build.yml

CodeMeister commented 1 week ago

If Ruby 3.0 is working with Rails 7.0 and 7.1 then it looks like it's the gem resolution with Rails 6.1 is the issue.

I'm hesitant for 3.0 to be removed as there are still smaller companies using this version. (yes, they should really upgrade, but many don't have the budget available)

A simpler resolution to stop the automated tests failing would be to exclude Rails 6.1 when testing Ruby 3.0.

However, if FactoryBot now needs gems that don't run on 3.0 then I would suggest bumping the major version number, so Ruby 3.0 developers will know not jump versions.