Skip to content

Avoid ruby2_keywords usage - #1830

Merged
neilvcarvalho merged 1 commit into
thoughtbot:mainfrom
Earlopain:no-ruby2-keywords
Jul 24, 2026
Merged

Avoid ruby2_keywords usage#1830
neilvcarvalho merged 1 commit into
thoughtbot:mainfrom
Earlopain:no-ruby2-keywords

Conversation

@Earlopain

Copy link
Copy Markdown
Contributor

factory_bot needs ruby >= 3.0, so there's no need for this anymore.
Ruby might deprecate this finally: https://bugs.ruby-lang.org/issues/22205

`factory_bot` needs ruby >= 3.0, so there's no need for this anymore.
Ruby might deprecate this finally: https://bugs.ruby-lang.org/issues/22205
@CodeMeister

Copy link
Copy Markdown
Contributor

Hi @Earlopain. I appreciate you want to update the method definitions, but I don't think this is wise.

There are still many applications running on ruby 2.7 (yes I know they should upgrade, but that's another issue).

Dropping 2.7 support just for the sake of better method definition is overkill.

@Earlopain

Copy link
Copy Markdown
Contributor Author

factory_bot already requires ruby 3.0 and will not install on earlier versions

@neilvcarvalho neilvcarvalho left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@neilvcarvalho
neilvcarvalho merged commit 967d128 into thoughtbot:main Jul 24, 2026
28 checks passed
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.

3 participants