mail-ses 1.0.4 → 1.0.5

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: f01ada56fdcbda459f4d85745571339e0ab9d63a8f2d7dd1f008a35318546825
4
+ data.tar.gz: fd369c9a8fcccadb8e367db16a9d35f49ecdabec33a24fd6690d8976df24b658
5
5
  SHA512:
6
- metadata.gz: d6bb222bc4117cb8136ae3a91e3e2eff7cfff64f2b7b303f7c5d02ca9b6bb298c193006ce6b3f2daadd09df3b8bc27daefe7499a18323247ed3fe17a9ff56667
7
- data.tar.gz: e7d4b9dbfb1056a6211b16bf5764835e9768b1fb67db77ada7f5fd060c6e9158a22440bfadd83e75ba8be561469bfcd53ffdac876dc034c1481fa6c8395741a7
6
+ metadata.gz: d4e9425b4e22b396b97f172758bfeb1de71512cb5360c4e5372d24da512ca43a0adb787aea556aac8c497f83c10b6abdd457707a022e62897723a10e79ff74e8
7
+ data.tar.gz: 49818a9754ffe39a54e7de1e79f229d17d7db679c52223d84ab562cc74b6e7b28f7b257df29e668af4925b5ac7dd0e8afa8e7e4297a6c0a1bc4847537711aac0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.0.5
4
+
5
+ - Pass-thru invalid email addresses.
6
+
3
7
  ### 1.0.4
4
8
 
5
9
  - Fix missing method error related to message headers.
@@ -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.0.5'
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.0.5
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: 2022-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-sesv2