From 3d074d9705b53b47caebfad08115be98a046e1d1 Mon Sep 17 00:00:00 2001 From: Peter Goldstein Date: Sat, 8 Jan 2022 15:51:01 -0800 Subject: [PATCH] Get Ruby 3.1 in CI --- Gemfile-rails-dependencies | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Gemfile-rails-dependencies b/Gemfile-rails-dependencies index b3e08ac0e..0578e96b0 100644 --- a/Gemfile-rails-dependencies +++ b/Gemfile-rails-dependencies @@ -25,4 +25,15 @@ else gem "puma" gem 'activerecord-jdbcsqlite3-adapter', platforms: [:jruby] gem 'selenium-webdriver', require: false + + # This is required for Ruby 3.1 and Rails 6.1.x as of time + # of writing, because in Ruby 3.1 these gems are no longer + # automatically included. This issue was fixed on the Rails + # side in Rails 7.0.1, but is not yet fixed in the Rails 6.1.x + # branch. Discussion can be found here - https://github.com/mikel/mail/pull/1439 + if RUBY_VERSION >= '3.1' && version.split(' ').last < '7.0' + gem 'net-smtp', require: false + gem 'net-imap', require: false + gem 'net-pop', require: false + end end