silent_bob 0.2.1 → 0.2.8
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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbff286a926498c65e51dd7850212bc7700e537a755ee421de7d4d3b61055275
|
4
|
+
data.tar.gz: 52abe043b5b4c75c2088669b545f36bae64f7d0e3e8ed56aca96e07d40f4e847
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f229df5cfb50764205dc76de55596a48f3d39d2bd3b3cca0fb9ef5fd68953da6e84e8da90b1f9246d102f6d340d2aefb86dbababc8af1705b66ab5bc1c217750
|
7
|
+
data.tar.gz: d87ce48ff7475cc0f434c815a6839eea5680ec112fbfaa6ab411aace0b0c4f09d8e27bf624ca10f96c442bb4b9ea3fe1f067bf27440f2685e72738e0f0957a93
|
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.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
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: silent_bob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Lobanov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|