ish_models 0.0.33.300 → 0.0.33.302
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/office/email_message.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2466c302497d9d68bbea639194f985dd4b34d8bbd8ef5aaecebbef7f1e3650ed
|
4
|
+
data.tar.gz: '087e0d9cd4469555e510cb4b1da335b77a8f44a1dd59be0fbf9edf2cfcb790be'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65078192596ea0469d46fa671c0e373c6c7628f01a6ed9da023a0c82dfce4c417f387bcdc1768b148093dbb231b806acf4220db497263db7b64cd1f6b18ebc6b
|
7
|
+
data.tar.gz: bc05a572fb9b7da56d41a1103b67b51af8bcf9cff27b0c82d0324081efc65c1c85fc7b0478635d3314d1097dbdc9bb0c0cd0ca117622a8d19cba8a40ec4cee2e
|
data/lib/office/email_message.rb
CHANGED
@@ -100,6 +100,7 @@ class Office::EmailMessage
|
|
100
100
|
|
101
101
|
## From: https://stackoverflow.com/questions/24672834/how-do-i-remove-emoji-from-string/24673322
|
102
102
|
def self.strip_emoji(text)
|
103
|
+
text = '' if text.blank?
|
103
104
|
text = text.force_encoding('utf-8').encode
|
104
105
|
clean = ""
|
105
106
|
|
@@ -152,10 +153,10 @@ class Office::EmailMessage
|
|
152
153
|
# attachment.save
|
153
154
|
|
154
155
|
if part.content_type.include?('text/html')
|
155
|
-
part_html = part.decoded
|
156
|
+
self.part_html = part.decoded
|
156
157
|
|
157
158
|
elsif part.content_type.include?("text/plain")
|
158
|
-
part_txt = part.decoded
|
159
|
+
self.part_txt = part.decoded
|
159
160
|
|
160
161
|
elsif part.content_type.include?("text/calendar")
|
161
162
|
;
|
@@ -167,7 +168,7 @@ class Office::EmailMessage
|
|
167
168
|
;
|
168
169
|
|
169
170
|
else
|
170
|
-
|
171
|
+
self.logs.push "444 No action for a part with content_type #{part.content_type}"
|
171
172
|
|
172
173
|
end
|
173
174
|
end
|