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

Require mail >= 2.8.0.rc1 for Ruby 3.1 support #4734

Closed
wants to merge 1 commit into from

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Nov 23, 2022

Summary

Ruby 3.1 removed net-smtp, net-imap and net-pop from standardlib and extracted them into independent gems.

The mail gem >= 2.8 added them to their dependencies. Since we require the mail gem in core.rb:17 we need to add the mail gem as dependency and need to make sure it is the Ruby 3.1 compatible version as we support Ruby 3.1

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.

@tvdeyen tvdeyen changed the title Require mail >= 2.8 for Runby 3.1 support Require mail >= 2.8 for Ruby 3.1 support Nov 23, 2022
@github-actions github-actions bot added the changelog:solidus_core Changes to the solidus_core gem label Nov 23, 2022
@tvdeyen tvdeyen requested a review from a team November 23, 2022 11:05
@tvdeyen
Copy link
Member Author

tvdeyen commented Nov 23, 2022

mikel/mail@d9d8dcc as reference

@kennyadsl
Copy link
Member

kennyadsl commented Nov 23, 2022

I can live with that, but in case you missed it, there's a typo in the commit message. 🙂

Ruby 3.1 removed net-smtp, net-imap and net-pop from
standardlib and extracted them into independent gems.

The mail gem >= 2.8.0.rc1 added them to their dependencies.
Since we require the mail gem in core.rb:17 we need to
add the mail gem as dependency and need to make sure
it is the Ruby 3.1 compatible version as we support
Ruby 3.1
@tvdeyen
Copy link
Member Author

tvdeyen commented Nov 23, 2022

I can live with that, but in case you missed it, there's a typo in the commit message. 🙂

Ha! Thanks :) Fixed

@tvdeyen tvdeyen changed the title Require mail >= 2.8 for Ruby 3.1 support Require mail >= 2.8.0.rc1 for Ruby 3.1 support Nov 23, 2022
@tvdeyen
Copy link
Member Author

tvdeyen commented Nov 23, 2022

LOL! Rails PR anyone?

screenshot

@waiting-for-dev
Copy link
Contributor

We can probably remove the require "mail" line altogether. It was introduced a long time ago, and I can't see a reference to Mail anymore. I also run tests locally after removing it and found no failure.

@waiting-for-dev waiting-for-dev added the type:bug Error, flaw or fault label Nov 23, 2022
tvdeyen added a commit to tvdeyen/solidus that referenced this pull request Nov 23, 2022
This was added a long time ago and is actually not necessary
anymore. If a shop depends on mail then through actionmailer.

Refs solidusio#4734
@tvdeyen tvdeyen mentioned this pull request Nov 23, 2022
3 tasks
@tvdeyen
Copy link
Member Author

tvdeyen commented Nov 23, 2022

Closed in favor of #4740

@tvdeyen tvdeyen closed this Nov 23, 2022
@tvdeyen tvdeyen deleted the ruby-3.1-fixes branch November 23, 2022 17:29
@tvdeyen
Copy link
Member Author

tvdeyen commented Nov 23, 2022

Thanks @waiting-for-dev for pointing me to the obvious

github-actions bot pushed a commit that referenced this pull request Dec 19, 2022
This was added a long time ago and is actually not necessary
anymore. If a shop depends on mail then through actionmailer.

Refs #4734

(cherry picked from commit 4ff8593)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_core Changes to the solidus_core gem type:bug Error, flaw or fault
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants