mailchannels-worker-rails 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: 40862f144e7f121c0993b81f100d3b854cb50d5ade4302a1ca073529e7c7e8f5
4
- data.tar.gz: f64d7c830681ff12a81371c1fd29424fb324922e3751a3792214732538288e92
3
+ metadata.gz: 8f6bd9ad98b83cce2a0a41849e7b2b20ec32efb502e6826348364e6370d7bcd4
4
+ data.tar.gz: d1a38bb3e248266d43461b6499e4c7773ef51d352da9094d2eb8035f223cae37
5
5
  SHA512:
6
- metadata.gz: b7688a69ddcc77ac1712a106be84f75cd9330bdcb3b1b74201870afa86ec34158ff4b939ad4b0477b5760ea9b33e8e25a0885770ac550b9b274f8643607d9c19
7
- data.tar.gz: b2ab7e81e28cf4b3cecfad3f14f47082e48cc29e347b3c2abe54d6edf96edfece8f1554fd81070a30187c60b3874b2d5acae06f8ed273d164a05669b444d3fc6
6
+ metadata.gz: 805a79f38eee6651f840516e9576405ae9f67452f43df77d2b902a81292663d875cca6e365e80cc0859037eb2635700531898521522fdab0ec4b8ea457d5f66b
7
+ data.tar.gz: dd6a45eba9e4ba14379d1ab49795e57dff2fe20535e0f874eb9db45db5729180a909eea42cc28fa22488d320bcdb5f48ced2ad5192d1d847f6a1c50bf0118a49
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MailchannelsWorker
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
@@ -31,7 +31,7 @@ module MailchannelsWorker
31
31
  bcc: mail.bcc_addresses.map { |address| { email: address.address, name: address.name }.compact }.presence,
32
32
  reply_to: (mail.header["Reply-To"]&.element&.addresses || []).map { |address| { email: address.address, name: address.name }.compact }.first
33
33
  }.compact],
34
- content: mail.parts.map { |part| { type: part.content_type, value: part.decoded } }
34
+ content: mail.multipart? ? mail.parts.map { |part| { type: part.content_type, value: part.decoded } } : [{ type: mail.content_type, value: mail.decoded }]
35
35
  }
36
36
  send_email(body)
37
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailchannels-worker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Prieto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-30 00:00:00.000000000 Z
11
+ date: 2023-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties