Skip to content

Commit

Permalink
Bump mail gem dependency version to 2.8.1 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshields authored Dec 23, 2023
1 parent 7ac27a3 commit 4218c29
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 1 addition & 5 deletions lib/mail/ses/message_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/mail/ses/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Mail
class SES
VERSION = '1.0.5'
VERSION = '1.1.0'
end
end
2 changes: 1 addition & 1 deletion mail-ses.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 4218c29

Please sign in to comment.