silent_bob 0.2.3 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/silent_bob.rb +1 -0
- data/lib/silent_bob/email_sender.rb +9 -1
- data/lib/silent_bob/version.rb +1 -1
- 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: 002f2463f5cb15d79dd382111f5cb8d91b86cea2bccd3014a19a48de566c4f2b
|
4
|
+
data.tar.gz: 9bba86f2243bd276bdaf15a3a2fd42325395bc72aba5f905bac16c4980c9cfdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1b6b90687b1cf4a7ac57f3fda9203aefd86edd11d534ec6625c636fe9b5f3f53d3a890ec2fdbdcdd5f828e589feee7d656eedca7ee7bf460819b1d22b6fa0d6
|
7
|
+
data.tar.gz: a98f80aabea845d84fdb4db02a17282101bcaedc36d9e921d30bef170adaec8733e4a3f7206cfb06a4acdee4079b4868e8a15024543c13bb5b074299a2d748cc
|
data/Gemfile.lock
CHANGED
data/lib/silent_bob.rb
CHANGED
@@ -44,8 +44,16 @@ module SilentBob
|
|
44
44
|
|
45
45
|
def handle_attachments(attachments)
|
46
46
|
attachments&.map do |attachment|
|
47
|
-
{
|
47
|
+
{
|
48
|
+
name: attachment[:name],
|
49
|
+
body: Base64.strict_encode64(attachment_body(attachment))
|
50
|
+
}
|
48
51
|
end
|
49
52
|
end
|
53
|
+
|
54
|
+
def attachment_body(attachment)
|
55
|
+
body = attachment[:body]
|
56
|
+
body.respond_to?(:decoded) ? body.decoded&.to_s : body.to_s
|
57
|
+
end
|
50
58
|
end
|
51
59
|
end
|
data/lib/silent_bob/version.rb
CHANGED