From 4218c29929c8d21758803549e1157223b53ae8a5 Mon Sep 17 00:00:00 2001 From: Johnny Shields <27655+johnnyshields@users.noreply.github.com> Date: Sat, 23 Dec 2023 04:31:33 -0500 Subject: [PATCH] Bump mail gem dependency version to 2.8.1 (#9) --- CHANGELOG.md | 4 ++++ README.md | 1 + lib/mail/ses/message_validator.rb | 6 +----- lib/mail/ses/version.rb | 2 +- mail-ses.gemspec | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2d7b4b..fe11033 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +### 1.1.0 + +- Mail Gem: Bump minimum version dependency to 2.8.1. + ### 1.0.5 - Pass-thru invalid email addresses. diff --git a/README.md b/README.md index 46a836a..f606c76 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ By passing parameters through to the SDK, this gem supports greater flexibility * Ruby 2.6+ * Ruby on Rails 3.2+ +* Mail gem 2.8.1+ * AWS SDK for Ruby v3 - SESv2 Please use version 0.1.x of this gem for legacy Ruby and AWS SDK support. diff --git a/lib/mail/ses/message_validator.rb b/lib/mail/ses/message_validator.rb index 61b07a9..c8d17d5 100644 --- a/lib/mail/ses/message_validator.rb +++ b/lib/mail/ses/message_validator.rb @@ -25,11 +25,7 @@ def validate_class end def validate_delivery_params - if defined?(Mail::CheckDeliveryParams) # mail gem < 2.7.0 - Mail::CheckDeliveryParams.check(@message) - elsif defined?(Mail::SmtpEnvelope) # mail gem >= 2.8.0 - Mail::SmtpEnvelope.new(@message) - end + Mail::SmtpEnvelope.new(@message) end def validate_attachments diff --git a/lib/mail/ses/version.rb b/lib/mail/ses/version.rb index ed842a8..223d74b 100644 --- a/lib/mail/ses/version.rb +++ b/lib/mail/ses/version.rb @@ -2,6 +2,6 @@ module Mail class SES - VERSION = '1.0.5' + VERSION = '1.1.0' end end diff --git a/mail-ses.gemspec b/mail-ses.gemspec index b415d4d..6ddc497 100644 --- a/mail-ses.gemspec +++ b/mail-ses.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |s| s.required_ruby_version = '>= 2.6.0' s.add_dependency('aws-sdk-sesv2', '>= 1.27') - s.add_dependency('mail', '>= 2.2.5') + s.add_dependency('mail', '>= 2.8.1') s.add_development_dependency('net-smtp') s.add_development_dependency('nokogiri') s.add_development_dependency('rake', '>= 1')