griddler-amazon_ses 2.0.1 → 2.0.2

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
  SHA1:
3
- metadata.gz: b2e5c06a019627a86535cee4ba7f43c70382c53b
4
- data.tar.gz: ca9294e1483f97346a328d9417bc099736540c8d
3
+ metadata.gz: 08c437b1929155481274889b7a62eb3bd399f82e
4
+ data.tar.gz: 0c2f9c4348de91815ee20d024cfca7399bd12bcf
5
5
  SHA512:
6
- metadata.gz: 05d07ad29ca355f4809766b467ee39ac77ae11785e8611d958e1b8b53a10a1be5b8d091dc2792656d2ee7a7c7d3a60b770e2c9bf2a69c671ab5e33544ef3fdd0
7
- data.tar.gz: 423c09dfa0b2b85621af2fc2dfa9052d24d48ac20ba3ce50235a5b416748a4dc4cf0e977e298658c69f9d2ad21c60884c02cbc8f4b7c3f9139fafe004e24cf55
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.to_s : message.body.to_s
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.to_s : nil
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
@@ -1,5 +1,5 @@
1
1
  module Griddler
2
2
  module AmazonSES
3
- VERSION = "2.0.1"
3
+ VERSION = '2.0.2'.freeze
4
4
  end
5
5
  end
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.1
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-08-30 00:00:00.000000000 Z
12
+ date: 2018-09-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: griddler