Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for Ruby v2.1 #695

Merged
merged 1 commit into from
Dec 22, 2024
Merged

Drop support for Ruby v2.1 #695

merged 1 commit into from
Dec 22, 2024

Conversation

floehopper
Copy link
Member

@floehopper floehopper commented Dec 8, 2024

Ruby v2.1 has been EOL since 31 Mar 2017, which is almost 8 years ago.

Mocha::Configuration#stubbing_method_on_nil and StubbingNilTest are now moot, because as of Ruby v2.2 nil is frozen. The behaviour tested in the latter is already tested in the more generic StubbingFrozenObjectTest. See this commit for details.

Closes #628.

@floehopper
Copy link
Member Author

This page looks useful. As does bkeepers/dotenv#521.

@floehopper
Copy link
Member Author

floehopper commented Dec 22, 2024

⚠️ #694 must be released before this PR is merged ⚠️

#694 was released in v2.7.1 a couple of weeks ago, so it should be safe to merge this now.

This version has been EOL since 31 Mar 2017 [1], which is almost 8 years
ago.

`Mocha::Configuration#stubbing_method_on_nil` and `StubbingNilTest` are
now moot, because as of Ruby v2.2 `nil` is frozen.  The behaviour tested
in the latter is already tested in the more generic
`StubbingFrozenObjectTest`. See this commit [2] for details.

Closes #628.

[1]: https://www.ruby-lang.org/en/downloads/branches/
[2]: a65ea1e
@floehopper floehopper force-pushed the drop-support-for-ruby-v2.1 branch 2 times, most recently from cf72647 to c8e8160 Compare December 22, 2024 12:13
@floehopper floehopper merged commit 4428776 into main Dec 22, 2024
16 checks passed
@floehopper floehopper deleted the drop-support-for-ruby-v2.1 branch December 22, 2024 12:18
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.

Drop support for Ruby v2.1
1 participant