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 +4 -4
- data/CHANGELOG.md +8 -0
- data/LICENSE +22 -22
- data/README.md +1 -0
- data/lib/mail/ses/message_validator.rb +1 -5
- data/lib/mail/ses/options_builder.rb +8 -2
- data/lib/mail/ses/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a0f5c968a12a0b98a374638fe7f5d2da0d8fcfcbc0b56b065bdab2c0331ca4b
|
4
|
+
data.tar.gz: 1cc4aec0d369dac9cb0466e566eb4b7d73ab65e9b2bf30365cab20f8a3ad0788
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66665f26ef33a80b6120f6de465753122dfed33c6b2054d71898fbd6d28360c062f9f0d1c95cab75ff18fdd60fb3726ea6462dc52477af1b814ed458cf79f4bf
|
7
|
+
data.tar.gz: 405f43c28904789d42c0bfdc2565b6b0be85b83857af3b94c2fe9504470a658b84c52110d17890fb8a303d927d777a1b50de3adebb595c49d2a7790f2f8466bb
|
data/CHANGELOG.md
CHANGED
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
@@ -25,11 +25,7 @@ module Mail
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def validate_delivery_params
|
28
|
-
|
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
|
54
|
+
return unless value
|
55
55
|
|
56
|
-
value.formatted
|
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)
|
data/lib/mail/ses/version.rb
CHANGED
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
|
+
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:
|
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.
|
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.
|
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.
|
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
|