griddler-amazon_ses 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/griddler/amazon_ses/adapter.rb +6 -2
- data/lib/griddler/amazon_ses/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 08c437b1929155481274889b7a62eb3bd399f82e
|
4
|
+
data.tar.gz: 0c2f9c4348de91815ee20d024cfca7399bd12bcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa31b08eaeb618a4b59174f7f77bc835afcef03f2f46baac79f289dbcddb40086d655e0d5dd5e91a5052048eeadc515c4a72e01fe893e21c9cd3abe5af43faf4
|
7
|
+
data.tar.gz: b5af4e2ba5df0a87871860689aeebe6f1c5b89e5da73238e316c7f12bab7f176380ae9760324e9a91511d4b99947ef32c608dc8a1e941be6887155c11c0203eb
|
@@ -84,11 +84,15 @@ module Griddler
|
|
84
84
|
end
|
85
85
|
|
86
86
|
def text_part
|
87
|
-
multipart? ? message.text_part.body
|
87
|
+
force_body_to_utf_8_string(multipart? ? message.text_part.body : message.body)
|
88
88
|
end
|
89
89
|
|
90
90
|
def html_part
|
91
|
-
multipart? ? message.html_part.body
|
91
|
+
multipart? ? force_body_to_utf_8_string(message.html_part.body) : nil
|
92
|
+
end
|
93
|
+
|
94
|
+
def force_body_to_utf_8_string(message_body)
|
95
|
+
message_body.to_s.force_encoding(Encoding::UTF_8)
|
92
96
|
end
|
93
97
|
|
94
98
|
def raw_headers
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: griddler-amazon_ses
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chuck Callebs
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-09-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: griddler
|