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

Remove Ruby v2.5 support #4845

Conversation

waiting-for-dev
Copy link
Contributor

@waiting-for-dev waiting-for-dev commented Jan 10, 2023

Summary

Ruby v2.5 is EOL since 05 Apr 2021.

Our new release policy makes it clear that we don't support Ruby versions that are no longer maintained.

We also make a basic sanitization check in our code base to update to newer standards:

  1. Use endless ranges when possible
  2. Use more succint #then alias instead of #yield_self

Closes #4840

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

  • I have written a thorough PR description.
  • I have kept my commits small and atomic.
  • I have used clear, explanatory commit messages.

The following are not always needed (cross them out if they are not):

  • [ ] I have added automated tests to cover my changes.
  • [ ] I have attached screenshots to demo visual changes.
  • [ ] I have opened a PR to update the guides.
  • [ ] I have updated the README to account for my changes.

@waiting-for-dev waiting-for-dev requested a review from a team as a code owner January 10, 2023 09:20
@github-actions github-actions bot added changelog:repository Changes to the repository not within any gem changelog:solidus_api Changes to the solidus_api gem changelog:solidus_backend Changes to the solidus_backend gem changelog:solidus_core Changes to the solidus_core gem changelog:solidus_sample Changes to the solidus_sample gem changelog:solidus Changes to the solidus meta-gem labels Jan 10, 2023
@waiting-for-dev waiting-for-dev force-pushed the waiting-for-dev/remove_ruby_v2.5_support branch from 71ff2f3 to e3090f7 Compare January 10, 2023 10:57
@github-actions github-actions bot removed the changelog:repository Changes to the repository not within any gem label Jan 10, 2023
Ruby v2.5 is EOL since 05 Apr 2021 [1].

Our new release policy [2] makes it clear that we don't support Ruby
versions that are no longer maintained.

[1] - https://www.ruby-lang.org/en/downloads/branches/
[2] - https://solidus.io/release_policy/
@waiting-for-dev waiting-for-dev force-pushed the waiting-for-dev/remove_ruby_v2.5_support branch from e3090f7 to 1f11c28 Compare January 10, 2023 11:49
Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

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

👍

@@ -18,7 +18,7 @@ def build_gem_lines(conservative_versioning)
requirement = if is_local
", path: \"#{d.source.path}\""
elsif is_git
", git: \"#{d.git}\"".yield_self { |g| d.ref ? g + ", ref: \"#{d.ref}\"" : g }
", git: \"#{d.git}\"".then { |g| d.ref ? g + ", ref: \"#{d.ref}\"" : g }
Copy link
Member

Choose a reason for hiding this comment

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

😍

@kennyadsl
Copy link
Member

test-rails-5.2-ruby-2.5-sqlite-paperclip job is pending and won't come. After merging this we need to remove it from the list of required checks.

@waiting-for-dev waiting-for-dev merged commit 2b79f72 into solidusio:master Jan 11, 2023
@waiting-for-dev waiting-for-dev deleted the waiting-for-dev/remove_ruby_v2.5_support branch January 11, 2023 11:01
@waiting-for-dev
Copy link
Contributor Author

test-rails-5.2-ruby-2.5-sqlite-paperclip job is pending and won't come. After merging this we need to remove it from the list of required checks.

I did that just now to be able to merge this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_api Changes to the solidus_api gem changelog:solidus_backend Changes to the solidus_backend gem changelog:solidus_core Changes to the solidus_core gem changelog:solidus_sample Changes to the solidus_sample gem changelog:solidus Changes to the solidus meta-gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove support for Ruby 2.5
4 participants