From 3dbb3d09dc513b40b9d99022c652b507ba747b95 Mon Sep 17 00:00:00 2001 From: Noah Gibbs Date: Thu, 3 Feb 2022 05:25:29 +0000 Subject: [PATCH] DEV: Use non-builtin net-pop, net-imap and net-smtp for Ruby 3.1+ (#15692) --- Gemfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Gemfile b/Gemfile index 17f81262cf5..ffff6f24371 100644 --- a/Gemfile +++ b/Gemfile @@ -133,6 +133,14 @@ gem 'cose', require: false gem 'addressable' gem 'json_schemer' +if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.1") + # net-smtp, net-imap and net-pop were removed from default gems in Ruby 3.1 + gem "net-smtp", "~> 0.2.1", require: false + gem "net-imap", "~> 0.2.1", require: false + gem "net-pop", "~> 0.1.1", require: false + gem "digest", "3.0.0", require: false +end + # Gems used only for assets and not required in production environments by default. # Allow everywhere for now cause we are allowing asset debugging in production group :assets do