ark-email 0.12.0 → 0.13.0

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: c00d08f6dc8c60212e04d6f91c6a2a9224a5719a1e361c7b39467b880f035ba2
4
- data.tar.gz: 549a5f2e13e0ccbbb47a2c7d66f6bc8cbde7121968a633801113cb9ac074d8a6
3
+ metadata.gz: 8d3a8978fdd41f199bc7e58a28af1391a16974818d5c90d9df9f5813a71791d4
4
+ data.tar.gz: a6b629b835da4d3c4d22f0f8c24815b4c66fff403fa277c75b37ad3b96a0055b
5
5
  SHA512:
6
- metadata.gz: 0404fdb2d9cf3efbcdec7ae804e0f5ef57abd64781ee91c74d070736ad8631e7495168b22123d5eff5c7fdc42202e6148c151fef56146bf04a3566125763d9be
7
- data.tar.gz: ee1ed6181c4d43550145d9924379cbd21eb36cecd8154f1d35ac0be30f975b9eb4ad9f06ae35ee26e02c0d17c8bc1be1225bea4912c78d6928d1cb47a339062b
6
+ metadata.gz: '015863b0e54d3d1d11984029639548ccfb21338f48272c326eab7c423e863a29fd52f13ed019ca7eca4d459f8f96f71bcb16d30a226dd7d8bebe0279fe3dda02'
7
+ data.tar.gz: 5ca9ed7396673028c3bbf88e82686a397c4f05809538961c47c1c6ba8b1d23e9b5705f8ff8238031c003ed4fcc1dafa28917f9bb61053fd76559bf5608b0450c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.13.0 (2026-01-23)
4
+
5
+ Full Changelog: [v0.12.0...v0.13.0](https://github.com/ArkHQ-io/ark-ruby/compare/v0.12.0...v0.13.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** fix from in Send raw MIME email ([cc449e8](https://github.com/ArkHQ-io/ark-ruby/commit/cc449e8446159fdda2c063f8ecc3c49397a5946f))
10
+ * **api:** improve raw MIME error handling ([ecbba2f](https://github.com/ArkHQ-io/ark-ruby/commit/ecbba2fe4af6f1116b4581adf8d5bfcc4be11140))
11
+
3
12
  ## 0.12.0 (2026-01-23)
4
13
 
5
14
  Full Changelog: [v0.11.0...v0.12.0](https://github.com/ArkHQ-io/ark-ruby/compare/v0.11.0...v0.12.0)
data/README.md CHANGED
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
26
26
  <!-- x-release-please-start-version -->
27
27
 
28
28
  ```ruby
29
- gem "ark-email", "~> 0.12.0"
29
+ gem "ark-email", "~> 0.13.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -8,13 +8,25 @@ module ArkEmail
8
8
  include ArkEmail::Internal::Type::RequestParameters
9
9
 
10
10
  # @!attribute from
11
- # Sender email address
11
+ # Sender email address. Must be from a verified domain.
12
+ #
13
+ # **Supported formats:**
14
+ #
15
+ # - Email only: `hello@yourdomain.com`
16
+ # - With display name: `Acme <hello@yourdomain.com>`
17
+ # - With quoted name: `"Acme Support" <support@yourdomain.com>`
18
+ #
19
+ # The domain portion must match a verified sending domain in your account.
12
20
  #
13
21
  # @return [String]
14
22
  required :from, String
15
23
 
16
24
  # @!attribute raw_message
17
- # Base64-encoded RFC 2822 MIME message
25
+ # Base64-encoded RFC 2822 MIME message.
26
+ #
27
+ # **You must base64-encode your raw email before sending.** The raw email should
28
+ # include headers (From, To, Subject, Content-Type, etc.) followed by a blank line
29
+ # and the message body.
18
30
  #
19
31
  # @return [String]
20
32
  required :raw_message, String, api_name: :rawMessage
@@ -32,9 +44,12 @@ module ArkEmail
32
44
  optional :bounce, ArkEmail::Internal::Type::Boolean, nil?: true
33
45
 
34
46
  # @!method initialize(from:, raw_message:, to:, bounce: nil, request_options: {})
35
- # @param from [String] Sender email address
47
+ # Some parameter documentations has been truncated, see
48
+ # {ArkEmail::Models::EmailSendRawParams} for more details.
49
+ #
50
+ # @param from [String] Sender email address. Must be from a verified domain.
36
51
  #
37
- # @param raw_message [String] Base64-encoded RFC 2822 MIME message
52
+ # @param raw_message [String] Base64-encoded RFC 2822 MIME message.
38
53
  #
39
54
  # @param to [Array<String>] Recipient email addresses
40
55
  #
@@ -263,16 +263,21 @@ module ArkEmail
263
263
  )
264
264
  end
265
265
 
266
+ # Some parameter documentations has been truncated, see
267
+ # {ArkEmail::Models::EmailSendRawParams} for more details.
268
+ #
266
269
  # Send a pre-formatted RFC 2822 MIME message. Use this for advanced use cases or
267
270
  # when migrating from systems that generate raw email content.
268
271
  #
269
- # The `rawMessage` field should contain the base64-encoded raw email.
272
+ # **Important:** The `rawMessage` field must be base64-encoded. Your raw MIME
273
+ # message (with headers like From, To, Subject, Content-Type, followed by a blank
274
+ # line and the body) must be encoded to base64 before sending.
270
275
  #
271
276
  # @overload send_raw(from:, raw_message:, to:, bounce: nil, request_options: {})
272
277
  #
273
- # @param from [String] Sender email address
278
+ # @param from [String] Sender email address. Must be from a verified domain.
274
279
  #
275
- # @param raw_message [String] Base64-encoded RFC 2822 MIME message
280
+ # @param raw_message [String] Base64-encoded RFC 2822 MIME message.
276
281
  #
277
282
  # @param to [Array<String>] Recipient email addresses
278
283
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ArkEmail
4
- VERSION = "0.12.0"
4
+ VERSION = "0.13.0"
5
5
  end
@@ -11,11 +11,23 @@ module ArkEmail
11
11
  T.any(ArkEmail::EmailSendRawParams, ArkEmail::Internal::AnyHash)
12
12
  end
13
13
 
14
- # Sender email address
14
+ # Sender email address. Must be from a verified domain.
15
+ #
16
+ # **Supported formats:**
17
+ #
18
+ # - Email only: `hello@yourdomain.com`
19
+ # - With display name: `Acme <hello@yourdomain.com>`
20
+ # - With quoted name: `"Acme Support" <support@yourdomain.com>`
21
+ #
22
+ # The domain portion must match a verified sending domain in your account.
15
23
  sig { returns(String) }
16
24
  attr_accessor :from
17
25
 
18
- # Base64-encoded RFC 2822 MIME message
26
+ # Base64-encoded RFC 2822 MIME message.
27
+ #
28
+ # **You must base64-encode your raw email before sending.** The raw email should
29
+ # include headers (From, To, Subject, Content-Type, etc.) followed by a blank line
30
+ # and the message body.
19
31
  sig { returns(String) }
20
32
  attr_accessor :raw_message
21
33
 
@@ -37,9 +49,21 @@ module ArkEmail
37
49
  ).returns(T.attached_class)
38
50
  end
39
51
  def self.new(
40
- # Sender email address
52
+ # Sender email address. Must be from a verified domain.
53
+ #
54
+ # **Supported formats:**
55
+ #
56
+ # - Email only: `hello@yourdomain.com`
57
+ # - With display name: `Acme <hello@yourdomain.com>`
58
+ # - With quoted name: `"Acme Support" <support@yourdomain.com>`
59
+ #
60
+ # The domain portion must match a verified sending domain in your account.
41
61
  from:,
42
- # Base64-encoded RFC 2822 MIME message
62
+ # Base64-encoded RFC 2822 MIME message.
63
+ #
64
+ # **You must base64-encode your raw email before sending.** The raw email should
65
+ # include headers (From, To, Subject, Content-Type, etc.) followed by a blank line
66
+ # and the message body.
43
67
  raw_message:,
44
68
  # Recipient email addresses
45
69
  to:,
@@ -276,7 +276,9 @@ module ArkEmail
276
276
  # Send a pre-formatted RFC 2822 MIME message. Use this for advanced use cases or
277
277
  # when migrating from systems that generate raw email content.
278
278
  #
279
- # The `rawMessage` field should contain the base64-encoded raw email.
279
+ # **Important:** The `rawMessage` field must be base64-encoded. Your raw MIME
280
+ # message (with headers like From, To, Subject, Content-Type, followed by a blank
281
+ # line and the body) must be encoded to base64 before sending.
280
282
  sig do
281
283
  params(
282
284
  from: String,
@@ -287,9 +289,21 @@ module ArkEmail
287
289
  ).returns(ArkEmail::Models::EmailSendRawResponse)
288
290
  end
289
291
  def send_raw(
290
- # Sender email address
292
+ # Sender email address. Must be from a verified domain.
293
+ #
294
+ # **Supported formats:**
295
+ #
296
+ # - Email only: `hello@yourdomain.com`
297
+ # - With display name: `Acme <hello@yourdomain.com>`
298
+ # - With quoted name: `"Acme Support" <support@yourdomain.com>`
299
+ #
300
+ # The domain portion must match a verified sending domain in your account.
291
301
  from:,
292
- # Base64-encoded RFC 2822 MIME message
302
+ # Base64-encoded RFC 2822 MIME message.
303
+ #
304
+ # **You must base64-encode your raw email before sending.** The raw email should
305
+ # include headers (From, To, Subject, Content-Type, etc.) followed by a blank line
306
+ # and the message body.
293
307
  raw_message:,
294
308
  # Recipient email addresses
295
309
  to:,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ark-email
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ark