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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28bcdafc5b4d88c345cfdde3bcee95fef29cca02184e6585a68c792f6d1c45e6
4
- data.tar.gz: ead53848baadb6a9fa379a65db5cd6c21500af8413c965832b7306a655f3a037
3
+ metadata.gz: 41d8264272f61a2491baff76c168d97a23b4e1796d857aafdd71231575857646
4
+ data.tar.gz: 62d16a4eaf8c26b46d2ae6eceab8da589b6915218338ec2f7637795586fd40d2
5
5
  SHA512:
6
- metadata.gz: cf0a7c0616c7e1d846925aa7d2aabdc07b77f0991537b63a744e544dcdd1af4d17cf9fb54e16d3f1d93f375104736129eab3185fe68f2e1a1b4653b201f024e0
7
- data.tar.gz: 8730ed2043e369e014e4931012db680417a2b86581a5cbabc75c65eb8ffa11e64ce84a3dafdb731917530c0ece5a3d837d976d53d7bb462daee716d5a7389bd0
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.0...HEAD
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
 
@@ -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,...") and returns the absolute URL to
38
- # reference from the wrapper.
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CamelMailer
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
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.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Camelmailer contributors