Skip to content

Commit

Permalink
Add net-smtp, net-pop, net-imap and matrix to the Gemfile to fix the …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
byroot committed May 28, 2021
1 parent fc3e0f9 commit 48f2f1a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,15 @@ end

gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem "wdm", ">= 0.1.0", platforms: [:mingw, :mswin, :x64_mingw, :mswin64]

if RUBY_VERSION >= "3.1"
# net-smtp, net-imap and net-pop were removed from default gems in Ruby 3.1, but is used by the `mail` gem.
# So we need to add them as dependencies until `mail` is fixed: https://github.com/mikel/mail/pull/1439
gem "net-smtp", require: false
gem "net-imap", require: false
gem "net-pop", require: false

# matrix was removed from default gems in Ruby 3.1, but is used by the `capybara` gem.
# So we need to add it as a dependency until `capybara` is fixed: https://github.com/teamcapybara/capybara/pull/2468
gem "matrix", require: false
end

0 comments on commit 48f2f1a

Please sign in to comment.