tt-mail-ses 1.1.0.pre → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5199d52725461a602ecd0ef5514c670248f1cd212ccdaac40b337b5b53da7660
4
- data.tar.gz: 550bcb9cdd21e6a545358119726de54d6dba80613f2be39f35e284844b5484ec
3
+ metadata.gz: 19293e108efcfd14432f77fe0474763babcf3c5f446d495af07f9d59ec0c195d
4
+ data.tar.gz: 8e0420a50b714caef658a90e6d599a6124bb59335361eac74191de866df57557
5
5
  SHA512:
6
- metadata.gz: 73669644af86b647f248532e6988790a82cc2620aeebb9689f764ed5be45dab391751c038ecf7323cad734e467b0d7be0288b0b9a756f8f4cdb4a7f0ea367c93
7
- data.tar.gz: b8cb0539bbc43413e76c3f1fe9e357775561d1ac51c5cce556f241d73101b6e54330a526e96da1d81d43dbdd131a7463066057fa8e66c56d5e4790a221db07d1
6
+ metadata.gz: c79f6d0d2d9863680e13c82788ab8d54dbac283698cced1ca344cc0b4aeafefb072efa0bfb0fd61b00494dd3a94ee428e2d699e04b0b4493b6ab35d654858a35
7
+ data.tar.gz: 5497933d648968a0ec8fff621dddccc0993db9cdc089163007d25eb78bff5f61d9a78876cc48cf5f201a73dfe105942999e98a5fc4e3e673cc6d4c2d6304618a
data/CHANGELOG.md CHANGED
@@ -1,7 +1,11 @@
1
1
  # Changelog
2
2
 
3
- ### 1.2.0.pre
4
- - Support options via message headers [#2](https://github.com/Teamtailor/mail-ses/pull/2)
3
+ ### 1.2.0
4
+
5
+ - Support different message_id domains for different AWS SES regions. [#10](https://github.com/tablecheck/mail-ses/pull/10)
6
+ - Support options via message headers. [#2](https://github.com/Teamtailor/mail-ses/pull/2), [ad18f13](https://github.com/Teamtailor/mail-ses/commit/ad18f133ecaa6d6a5c4765930fe1b3b413a498a8) and [00a3e97](https://github.com/Teamtailor/mail-ses/commit/00a3e97fea5caba10b5d9ef0d418f26ccb4b0e61)
7
+ - Use Standard instead of Rubocop.
8
+ - Publish the fork as a separate gem: [tt-mail-ses](https://rubygems.org/gems/tt-mail-ses).
5
9
 
6
10
  ### 1.1.0
7
11
 
data/README.md CHANGED
@@ -1,8 +1,11 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/mail-ses.svg)](http://badge.fury.io/rb/mail-ses)
2
- [![Github Actions](https://github.com/tablecheck/mail-ses/actions/workflows/test.yml/badge.svg)](https://github.com/tablecheck/mail-ses/actions/workflows/test.yml)
2
+ [![Github Actions](https://github.com/teamtailor/mail-ses/actions/workflows/test.yml/badge.svg)](https://github.com/teamtailor/mail-ses/actions/workflows/test.yml)
3
3
 
4
4
  # Mail::SES
5
5
 
6
+ ## Fork from [tablecheck/mail-ses](https://github.com/tablecheck/mail-ses)
7
+ This gem was forked to add support for different message_id domains for different AWS SES regions and support options via message headers.
8
+
6
9
  Mail::SES is a mail delivery method handler for Amazon SES (Simple Email Service) which can be used with Rails' [Action Mailer](https://guides.rubyonrails.org/action_mailer_basics.html).
7
10
 
8
11
  This gem is inspired by [Drew Blas' AWS::SES gem](https://github.com/drewblas/aws-ses),
@@ -23,7 +26,7 @@ Please use version 0.1.x of this gem for legacy Ruby and AWS SDK support.
23
26
  In your `Gemfile`:
24
27
 
25
28
  ```ruby
26
- gem 'mail-ses'
29
+ gem "tt-mail-ses", require: "mail-ses"
27
30
  ```
28
31
 
29
32
  Next, make a new initializer at `config/initializers/mail_ses.rb`:
@@ -52,7 +55,8 @@ ActionMailer::Base.add_delivery_method :ses, Mail::SES,
52
55
  region: 'us-east-1',
53
56
  session_token: 'foobar',
54
57
  retry_limit: 5,
55
- retry_max_delay: 10
58
+ retry_max_delay: 10,
59
+ message_id_domain: "eu-west-1.amazonses.com"
56
60
  ```
57
61
 
58
62
  In addition, the shortcut option `:use_iam_profile (Boolean)` which activates the IAM instance profile.
@@ -82,7 +86,6 @@ ActionMailer::Base.add_delivery_method :ses, Mail::SES,
82
86
 
83
87
  You can override the default mail options on a per-mail basis by passing them in the `mail` method:
84
88
 
85
-
86
89
  ```ruby
87
90
  class ApplicationMailer < ActionMailer::Base
88
91
  def example
@@ -22,7 +22,8 @@ module Mail
22
22
 
23
23
  # Returns the options for Aws::SESV2::Client#send_email.
24
24
  def build
25
- message_options.merge(ses_options, ses_options_from_message)
25
+ mail_options = ses_options_from_message
26
+ message_options.merge(ses_options, mail_options)
26
27
  end
27
28
 
28
29
  private
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Mail
4
4
  class SES
5
- VERSION = "1.1.0.pre"
5
+ VERSION = "1.2.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tt-mail-ses
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.pre
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Brusman
@@ -138,9 +138,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
138
138
  version: 3.0.0
139
139
  required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  requirements:
141
- - - ">"
141
+ - - ">="
142
142
  - !ruby/object:Gem::Version
143
- version: 1.3.1
143
+ version: '0'
144
144
  requirements: []
145
145
  rubygems_version: 3.4.10
146
146
  signing_key: