mailchannels-worker-rails 0.1.0 → 0.1.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
  SHA256:
3
- metadata.gz: 60be9f2512a2fe1484643715ad912c55e4dfde4f1a4d94ddf2bceb0de09835f9
4
- data.tar.gz: 4aed5bf195625ec14ddc47659086f736ff5f2d288eb6090f1c09ad65a84581bf
3
+ metadata.gz: 40862f144e7f121c0993b81f100d3b854cb50d5ade4302a1ca073529e7c7e8f5
4
+ data.tar.gz: f64d7c830681ff12a81371c1fd29424fb324922e3751a3792214732538288e92
5
5
  SHA512:
6
- metadata.gz: d3517c13348fc0be01c9c149ed8b13b2c15cb99642bb164310875efb2b8386bb886914afb9fc8a176070ccd95f1053870b95ec51c24ca8c6f451583e673414b4
7
- data.tar.gz: 460f573d622d1a7ed8a1c60a4d73cf510b5400791c4bb51a31918835d39e4ebb22c22ff47e352b63db5e7add48c4a4a0100778445d0a82f79f731225fd4943ee
6
+ metadata.gz: b7688a69ddcc77ac1712a106be84f75cd9330bdcb3b1b74201870afa86ec34158ff4b939ad4b0477b5760ea9b33e8e25a0885770ac550b9b274f8643607d9c19
7
+ data.tar.gz: b2ab7e81e28cf4b3cecfad3f14f47082e48cc29e347b3c2abe54d6edf96edfece8f1554fd81070a30187c60b3874b2d5acae06f8ed273d164a05669b444d3fc6
data/README.md CHANGED
@@ -16,7 +16,7 @@ If bundler is not being used to manage dependencies, install the gem by executin
16
16
 
17
17
  1. Start by deploying the [Mailchannels Worker](https://github.com/ment-labs/mailchannels-worker) on [Cloudflare Workers](https://workers.cloudflare.com/). Detailed instructions for this setup can be found in the [repository](https://github.com/ment-labs/mailchannels-worker), which includes all the necessary configurations.
18
18
 
19
- 2. Then, add the following lines to the corresponding environment file, such as "config/environment/production.rb":
19
+ 2. Then, add the following lines to the corresponding environment file, such as `config/environments/production.rb`:
20
20
 
21
21
  ```ruby
22
22
  config.action_mailer.delivery_method = :mailchannels_worker
@@ -26,7 +26,7 @@ If bundler is not being used to manage dependencies, install the gem by executin
26
26
  }
27
27
  ```
28
28
 
29
- Ensure to replace "YOUR_WORKER_URL" with the actual path where the worker is deployed, and "YOUR_API_KEY" with the generated API Key stored in the worker environment variables.
29
+ Ensure to replace `YOUR_WORKER_URL` with the actual path where the worker is deployed, and `YOUR_API_KEY` with the generated API Key stored in the worker environment variables.
30
30
 
31
31
  Remember to store the API Key in a secure location, such as [Rails Credentials](https://guides.rubyonrails.org/security.html#custom-credentials) or secret environment variables.
32
32
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MailchannelsWorker
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -29,7 +29,7 @@ module MailchannelsWorker
29
29
  to: mail.to_addresses.map { |address| { email: address.address, name: address.name }.compact },
30
30
  cc: mail.cc_addresses.map { |address| { email: address.address, name: address.name }.compact }.presence,
31
31
  bcc: mail.bcc_addresses.map { |address| { email: address.address, name: address.name }.compact }.presence,
32
- reply_to: (mail.header["Reply-To"]&.element&.addresses || []).map { |address| { email: address.address, name: address.name }.compact }.presence
32
+ reply_to: (mail.header["Reply-To"]&.element&.addresses || []).map { |address| { email: address.address, name: address.name }.compact }.first
33
33
  }.compact],
34
34
  content: mail.parts.map { |part| { type: part.content_type, value: part.decoded } }
35
35
  }
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.0
4
+ version: 0.1.2
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-22 00:00:00.000000000 Z
11
+ date: 2023-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties