camelmailer 0.2.1 → 0.2.2

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: 41d8264272f61a2491baff76c168d97a23b4e1796d857aafdd71231575857646
4
- data.tar.gz: 62d16a4eaf8c26b46d2ae6eceab8da589b6915218338ec2f7637795586fd40d2
3
+ metadata.gz: 8f1f2336df842558ba7a4c1a199de7e86ef515afb4d3aeaed4ce3c4336e3ef63
4
+ data.tar.gz: 2847a832d7e0fc002a7298b4173b8ac93f33eb8fe3939e998e6e21dfd0d94f85
5
5
  SHA512:
6
- metadata.gz: 3131d93b2ce22e1db7b94c657729fc3f144a85921f95358865408321a7663963ab46e3351c066d0775ba009731f9d654082c59fd7253eb8d358705f9a655c5e7
7
- data.tar.gz: '09dc68868cda095877223425c26f338a9895bc0af4e198143c029097d662cdc60f3e92f34c0c6faf39010cfcd16cd16ce9fc6d20dfb31f5776cef196583b44b5'
6
+ metadata.gz: cca86d3f8a62cfc93b8619d7da7a9adc1af157a0922ff20ab45ee919828f10f1b4ab07675f58362603739cba2dc6620c38430d4c30aa216ead04a77b67864858
7
+ data.tar.gz: d40a0e12fb759388b5ccd4b3be1b5d1eafebd99a3b7c4883b6a092dab09bd158a417be394f889782f5f061d97faddfbf6990079850dd6e8c842142f32f598f06
data/CHANGELOG.md CHANGED
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.2] - 2026-09-14
11
+
12
+ ### Fixed
13
+
14
+ - `inbound` retry and bypass read `queued`. The endpoint answers with
15
+ `requeued`, so both returned false and no error whatever happened. They
16
+ also expose the `message` the response carries.
17
+ - The subscriber types carried a `name`. The endpoint takes an address and a
18
+ status; a name was silently dropped, so the field promised something the
19
+ API does not store.
20
+
10
21
  ## [0.2.1] - 2026-09-14
11
22
 
12
23
  ### Fixed
@@ -56,7 +67,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
56
67
  - Rails integration: `:camelmailer` ActionMailer delivery method with full MIME mapping (from/to/cc/bcc/reply_to, html+text parts, attachments, custom headers, tag/stream/metadata pseudo-headers).
57
68
  - RBS type signatures.
58
69
 
59
- [Unreleased]: https://github.com/camelmailer/camelmailer-ruby/compare/v0.2.1...HEAD
70
+ [Unreleased]: https://github.com/camelmailer/camelmailer-ruby/compare/v0.2.2...HEAD
71
+ [0.2.2]: https://github.com/camelmailer/camelmailer-ruby/releases/tag/v0.2.2
60
72
  [0.2.1]: https://github.com/camelmailer/camelmailer-ruby/releases/tag/v0.2.1
61
73
  [0.2.0]: https://github.com/camelmailer/camelmailer-ruby/releases/tag/v0.2.0
62
74
  [0.1.0]: https://github.com/camelmailer/camelmailer-ruby/releases/tag/v0.1.0
data/README.md CHANGED
@@ -168,7 +168,7 @@ list is the audience.
168
168
 
169
169
  ```ruby
170
170
  CamelMailer::Subscribers.list("newsletter")
171
- CamelMailer::Subscribers.add("newsletter", address: "ada@example.com", name: "Ada")
171
+ CamelMailer::Subscribers.add("newsletter", address: "ada@example.com")
172
172
  CamelMailer::Subscribers.import("newsletter", ["ada@example.com", "grace@example.com"])
173
173
  CamelMailer::Subscribers.complaint("newsletter", "ada@example.com") # suppress + unsubscribe
174
174
  CamelMailer::Subscribers.remove("newsletter", "ada@example.com")
@@ -194,8 +194,8 @@ CamelMailer::Layouts.delete("default")
194
194
  ```ruby
195
195
  CamelMailer::Inbound.list(status: "held")
196
196
  CamelMailer::Inbound.get(55)
197
- CamelMailer::Inbound.retry(55) # back on the delivery queue
198
- CamelMailer::Inbound.bypass(55) # release past the hold
197
+ CamelMailer::Inbound.retry(55)[:requeued] # back on the delivery queue
198
+ CamelMailer::Inbound.bypass(55)[:requeued] # release past the hold
199
199
  ```
200
200
 
201
201
  ### Logs
@@ -19,7 +19,8 @@ module CamelMailer
19
19
  end
20
20
 
21
21
  # Puts a message back on the delivery queue, for instance after fixing
22
- # the route it should have matched.
22
+ # the route it should have matched. The response carries :requeued and
23
+ # the :message as it now stands.
23
24
  def retry(id)
24
25
  client.post("inbound/#{id}/retry")
25
26
  end
@@ -17,7 +17,8 @@ module CamelMailer
17
17
  end
18
18
 
19
19
  # Adds or updates one subscriber. Upserts by address:, so calling it
20
- # twice is safe.
20
+ # twice is safe. Takes address: (required) and status: (:subscribed by
21
+ # default, or :unsubscribed); there is no name field.
21
22
  def add(permalink, params)
22
23
  client.post(base(permalink), params)
23
24
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CamelMailer
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: camelmailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Camelmailer contributors