sidemail-delivery 0.2.3 → 0.2.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c5b256fe953ebd7e2156f7ec1dc4879031cab8876d2fc1327804a4b8cd67f99
4
- data.tar.gz: 33bf009293e4dae579d4785e11951dcce82d2602e79862594a27aca526988062
3
+ metadata.gz: cf4251ba509627346493eb292c5e4f2181212a65099a3c6930c744468cf71159
4
+ data.tar.gz: b92a0ad49031c7548b14ce9fa64bfc59199ae12505218a3254dee6ebe7badce9
5
5
  SHA512:
6
- metadata.gz: 782abd3e95728ad0add7a2e26f911f7c62bde2856838e09c1ea4aed37955ab915df77df190113ec554c04534018ad6f82e2d911c07013a30449927c572e635f1
7
- data.tar.gz: '0876cc4e70904b45436b9c46c0a31498ab32a480877c0725cbb3c77262a05963c694a7d69f075bd8a5b691f1d4454b292be4c05f5553eee11f81070c21fbd1df'
6
+ metadata.gz: 9c5ca57393540d847143cedb930705ccf87571587bab4b2fc114cc05560a322c335914a8d204a8f436edfa3053607ad798afccd67dad71ca75b97392c4a2c951
7
+ data.tar.gz: 0e221c8a2d68f81d7297dff57724e829871784d9adb2385efe0b2359be40dd86122b969223a7597bfc81ebca3cd200d719de17054faa366c7ea34d2f226409fe
data/CHANGELOG.md CHANGED
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
  ### Changed
12
12
  ### Removed
13
13
 
14
+ ## [0.2.3] - 2025-03-05
15
+ ### Added
16
+ - Support for cc and bcc, they will receive separate emails.
17
+
14
18
  ## [0.2.3] - 2025-02-28
15
19
  ### Fixed
16
20
  - ActionMailer was loaded too early by this gem.
@@ -37,4 +41,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
37
41
 
38
42
  ## [0.1.0] - 2024-02-01
39
43
  ### Added
40
- - Deliver ActionMailer mails through Sidemail API.
44
+ - Deliver ActionMailer mails through Sidemail API.
@@ -10,7 +10,8 @@ module Sidemail
10
10
  end
11
11
 
12
12
  def deliver!(mail)
13
- response = post_to_api(mail[:to].addrs.map(&:address), payload(mail))
13
+ response = post_to_api(mail[:to].addrs.map(&:address) + mail[:cc]&.addrs.to_a.map(&:address) +
14
+ mail[:bcc]&.addrs.to_a.map(&:address), payload(mail))
14
15
  JSON.parse(response.body).tap do |json|
15
16
  break if json.is_a?(Array) # successful mail to multiple addresses
16
17
  break unless json.key?("errorCode")
@@ -1,5 +1,5 @@
1
1
  module Sidemail
2
2
  module Delivery
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidemail-delivery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Groeneveld
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-02-28 00:00:00.000000000 Z
10
+ date: 2025-03-05 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails