camelmailer 0.2.0 → 0.2.1
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 +10 -1
- data/README.md +1 -1
- data/lib/camelmailer/layouts.rb +3 -2
- 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: 41d8264272f61a2491baff76c168d97a23b4e1796d857aafdd71231575857646
|
|
4
|
+
data.tar.gz: 62d16a4eaf8c26b46d2ae6eceab8da589b6915218338ec2f7637795586fd40d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3131d93b2ce22e1db7b94c657729fc3f144a85921f95358865408321a7663963ab46e3351c066d0775ba009731f9d654082c59fd7253eb8d358705f9a655c5e7
|
|
7
|
+
data.tar.gz: '09dc68868cda095877223425c26f338a9895bc0af4e198143c029097d662cdc60f3e92f34c0c6faf39010cfcd16cd16ce9fc6d20dfb31f5776cef196583b44b5'
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.2.1] - 2026-09-14
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- The `upload_logo` documentation and spec read `:logo_url`. The endpoint
|
|
15
|
+
answers with `:url`, so anyone following the README read a key that is
|
|
16
|
+
never there. No call was broken; only the documented shape was wrong.
|
|
17
|
+
|
|
10
18
|
## [0.2.0] - 2026-09-14
|
|
11
19
|
|
|
12
20
|
### Fixed
|
|
@@ -48,6 +56,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
48
56
|
- 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
57
|
- RBS type signatures.
|
|
50
58
|
|
|
51
|
-
[Unreleased]: https://github.com/camelmailer/camelmailer-ruby/compare/v0.2.
|
|
59
|
+
[Unreleased]: https://github.com/camelmailer/camelmailer-ruby/compare/v0.2.1...HEAD
|
|
60
|
+
[0.2.1]: https://github.com/camelmailer/camelmailer-ruby/releases/tag/v0.2.1
|
|
52
61
|
[0.2.0]: https://github.com/camelmailer/camelmailer-ruby/releases/tag/v0.2.0
|
|
53
62
|
[0.1.0]: https://github.com/camelmailer/camelmailer-ruby/releases/tag/v0.1.0
|
data/README.md
CHANGED
|
@@ -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
|
|
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
|
data/lib/camelmailer/version.rb
CHANGED