camelmailer 0.2.0 → 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 +4 -4
- data/CHANGELOG.md +22 -1
- data/README.md +4 -4
- data/lib/camelmailer/inbound.rb +2 -1
- data/lib/camelmailer/layouts.rb +3 -2
- data/lib/camelmailer/subscribers.rb +2 -1
- data/lib/camelmailer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f1f2336df842558ba7a4c1a199de7e86ef515afb4d3aeaed4ce3c4336e3ef63
|
|
4
|
+
data.tar.gz: 2847a832d7e0fc002a7298b4173b8ac93f33eb8fe3939e998e6e21dfd0d94f85
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cca86d3f8a62cfc93b8619d7da7a9adc1af157a0922ff20ab45ee919828f10f1b4ab07675f58362603739cba2dc6620c38430d4c30aa216ead04a77b67864858
|
|
7
|
+
data.tar.gz: d40a0e12fb759388b5ccd4b3be1b5d1eafebd99a3b7c4883b6a092dab09bd158a417be394f889782f5f061d97faddfbf6990079850dd6e8c842142f32f598f06
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,25 @@ 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
|
+
|
|
21
|
+
## [0.2.1] - 2026-09-14
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- The `upload_logo` documentation and spec read `:logo_url`. The endpoint
|
|
26
|
+
answers with `:url`, so anyone following the README read a key that is
|
|
27
|
+
never there. No call was broken; only the documented shape was wrong.
|
|
28
|
+
|
|
10
29
|
## [0.2.0] - 2026-09-14
|
|
11
30
|
|
|
12
31
|
### Fixed
|
|
@@ -48,6 +67,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
48
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).
|
|
49
68
|
- RBS type signatures.
|
|
50
69
|
|
|
51
|
-
[Unreleased]: https://github.com/camelmailer/camelmailer-ruby/compare/v0.2.
|
|
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
|
|
72
|
+
[0.2.1]: https://github.com/camelmailer/camelmailer-ruby/releases/tag/v0.2.1
|
|
52
73
|
[0.2.0]: https://github.com/camelmailer/camelmailer-ruby/releases/tag/v0.2.0
|
|
53
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"
|
|
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")
|
|
@@ -185,7 +185,7 @@ CamelMailer::Layouts.create(name: "Default", permalink: "default",
|
|
|
185
185
|
html_wrapper: "<html><body>{{{ content }}}</body></html>")
|
|
186
186
|
CamelMailer::Layouts.get("default")
|
|
187
187
|
CamelMailer::Layouts.update("default", name: "Main")
|
|
188
|
-
CamelMailer::Layouts.upload_logo("default", "data:image/png;base64,...")
|
|
188
|
+
CamelMailer::Layouts.upload_logo("default", "data:image/png;base64,...")[:url]
|
|
189
189
|
CamelMailer::Layouts.delete("default")
|
|
190
190
|
```
|
|
191
191
|
|
|
@@ -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
|
data/lib/camelmailer/inbound.rb
CHANGED
|
@@ -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
|
data/lib/camelmailer/layouts.rb
CHANGED
|
@@ -34,8 +34,9 @@ module CamelMailer
|
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
# Uploads the layout's logo as a data URL
|
|
37
|
-
# ("data:image/png;base64,...")
|
|
38
|
-
#
|
|
37
|
+
# ("data:image/png;base64,..."). The absolute URL to reference from
|
|
38
|
+
# the wrapper comes back under :url; it is served without
|
|
39
|
+
# authentication, because mail clients fetch it without a session.
|
|
39
40
|
def upload_logo(permalink, data_url)
|
|
40
41
|
client.post("layouts/#{permalink}/logo", { data_url: data_url })
|
|
41
42
|
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
|
data/lib/camelmailer/version.rb
CHANGED