Skip to content

Commit 48f2f1a

Browse files
committed
Add net-smtp, net-pop, net-imap and matrix to the Gemfile to fix the ruby-head build
They were recently removed from Ruby's default gems. Ref: https://bugs.ruby-lang.org/issues/17873 Ref: mikel/mail#1439 Ref: teamcapybara/capybara#2468
1 parent fc3e0f9 commit 48f2f1a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Gemfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,15 @@ end
169169

170170
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
171171
gem "wdm", ">= 0.1.0", platforms: [:mingw, :mswin, :x64_mingw, :mswin64]
172+
173+
if RUBY_VERSION >= "3.1"
174+
# net-smtp, net-imap and net-pop were removed from default gems in Ruby 3.1, but is used by the `mail` gem.
175+
# So we need to add them as dependencies until `mail` is fixed: https://github.com/mikel/mail/pull/1439
176+
gem "net-smtp", require: false
177+
gem "net-imap", require: false
178+
gem "net-pop", require: false
179+
180+
# matrix was removed from default gems in Ruby 3.1, but is used by the `capybara` gem.
181+
# So we need to add it as a dependency until `capybara` is fixed: https://github.com/teamcapybara/capybara/pull/2468
182+
gem "matrix", require: false
183+
end

0 commit comments

Comments
 (0)