mail-ses 1.0.4 → 1.1.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: a689b342f844767cae3e35b937b0e95bb997d61087989f78f21ed8b48977d318
4
- data.tar.gz: 989ef38af6e8cf6bd32cfb0ec8dee37ecbf272652609fcca140c169b4f02626f
3
+ metadata.gz: 1a0f5c968a12a0b98a374638fe7f5d2da0d8fcfcbc0b56b065bdab2c0331ca4b
4
+ data.tar.gz: 1cc4aec0d369dac9cb0466e566eb4b7d73ab65e9b2bf30365cab20f8a3ad0788
5
5
  SHA512:
6
- metadata.gz: d6bb222bc4117cb8136ae3a91e3e2eff7cfff64f2b7b303f7c5d02ca9b6bb298c193006ce6b3f2daadd09df3b8bc27daefe7499a18323247ed3fe17a9ff56667
7
- data.tar.gz: e7d4b9dbfb1056a6211b16bf5764835e9768b1fb67db77ada7f5fd060c6e9158a22440bfadd83e75ba8be561469bfcd53ffdac876dc034c1481fa6c8395741a7
6
+ metadata.gz: 66665f26ef33a80b6120f6de465753122dfed33c6b2054d71898fbd6d28360c062f9f0d1c95cab75ff18fdd60fb3726ea6462dc52477af1b814ed458cf79f4bf
7
+ data.tar.gz: 405f43c28904789d42c0bfdc2565b6b0be85b83857af3b94c2fe9504470a658b84c52110d17890fb8a303d927d777a1b50de3adebb595c49d2a7790f2f8466bb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.1.0
4
+
5
+ - Mail Gem: Bump minimum version dependency to 2.8.1.
6
+
7
+ ### 1.0.5
8
+
9
+ - Pass-thru invalid email addresses.
10
+
3
11
  ### 1.0.4
4
12
 
5
13
  - Fix missing method error related to message headers.
data/LICENSE CHANGED
@@ -1,22 +1,22 @@
1
- Copyright (c) 2018 TableCheck Inc.
2
-
3
- AWS::SES originally copyright (c) 2011 Drew V. Blas <drew.blas@gmail.com>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ Copyright (c) 2018 TableCheck Inc.
2
+
3
+ AWS::SES originally copyright (c) 2011 Drew V. Blas <drew.blas@gmail.com>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -13,6 +13,7 @@ By passing parameters through to the SDK, this gem supports greater flexibility
13
13
 
14
14
  * Ruby 2.6+
15
15
  * Ruby on Rails 3.2+
16
+ * Mail gem 2.8.1+
16
17
  * AWS SDK for Ruby v3 - SESv2
17
18
 
18
19
  Please use version 0.1.x of this gem for legacy Ruby and AWS SDK support.
@@ -25,11 +25,7 @@ module Mail
25
25
  end
26
26
 
27
27
  def validate_delivery_params
28
- if defined?(Mail::CheckDeliveryParams) # mail gem < 2.7.0
29
- Mail::CheckDeliveryParams.check(@message)
30
- elsif defined?(Mail::SmtpEnvelope) # mail gem >= 2.8.0
31
- Mail::SmtpEnvelope.new(@message)
32
- end
28
+ Mail::SmtpEnvelope.new(@message)
33
29
  end
34
30
 
35
31
  def validate_attachments
@@ -51,9 +51,15 @@ module Mail
51
51
 
52
52
  def extract_value(key)
53
53
  value = @message.header[key]
54
- return unless value.respond_to?(:formatted)
54
+ return unless value
55
55
 
56
- value.formatted&.map { |v| encode(v) }
56
+ if value.respond_to?(:formatted)
57
+ value.formatted
58
+ elsif value.respond_to?(:unparsed_value)
59
+ Array(value.unparsed_value)
60
+ else
61
+ []
62
+ end&.map { |v| encode(v) }
57
63
  end
58
64
 
59
65
  def encode(value)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Mail
4
4
  class SES
5
- VERSION = '1.0.4'
5
+ VERSION = '1.1.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail-ses
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johnny Shields
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-21 00:00:00.000000000 Z
11
+ date: 2023-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-sesv2
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 2.2.5
33
+ version: 2.8.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 2.2.5
40
+ version: 2.8.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: net-smtp
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  requirements: []
145
- rubygems_version: 3.3.13
145
+ rubygems_version: 3.4.12
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Ruby Mail delivery method handler for Amazon SES