Skip to content

Commit

Permalink
Add net-smtp in just for Rails 6
Browse files Browse the repository at this point in the history
Ruby 3.1 removed net-smtp from stdlib which causes a problem when Rails
6 loads the mail gem [1]. Rails 7 has a fix for this [2].

I expect it won't be too long until we drop support for Rails 6 and can
remove this.

[1]: mikel/mail#1472
[2]: rails/rails@cb44df7
  • Loading branch information
kevindew committed Oct 19, 2022
1 parent 6a9189a commit 7acd6ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gemfiles/rails_6.gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source "https://rubygems.org"

gem "net-smtp" # Ruby 3.1 removed this gem from stdlib, so Rails 6 needs it as an explicit dependency
gem "rails", "~> 6.0"

gemspec path: "../"

0 comments on commit 7acd6ef

Please sign in to comment.