mailblastr 3.0.0 → 4.0.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 +4 -4
- data/README.md +1 -1
- data/lib/mailblastr/emails.rb +7 -0
- data/lib/mailblastr/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: af406b751cac271f65de584e43a1b405887cbfa13448eace04d4ba8a58f57567
|
|
4
|
+
data.tar.gz: 46c015562325cd114404e4f34e17ac44b7481ae781bb013aba951349fe016fc9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b65ef435e4c88cc4415eba880b0be79ae107f7f20d374e6f30a4b19e7c85b5afb4c49833910a671979150407659b13e39a097d84cef3174a168cae3d0514b835
|
|
7
|
+
data.tar.gz: 157b75d0c9c47f2d0a78561238ab61ce03779ddf8da3b2a1a633cca472cfe0a66a2f392f2da54554aa2fa1dac319adac0ceddc03f313c871fde79dcd6dcd394c
|
data/README.md
CHANGED
|
@@ -402,7 +402,7 @@ Only `Emails.send` and `Batch.send` honour the header. Every other endpoint —
|
|
|
402
402
|
|
|
403
403
|
## Rate limits
|
|
404
404
|
|
|
405
|
-
Only the `/emails` routes are rate-limited: **30 requests per minute per IP
|
|
405
|
+
Only the `/emails` **send** routes are rate-limited: **30 requests per minute per IP**. Reads (`GET /emails`, `GET /emails/:id`, the `receiving` subtree and attachment listings) are NOT subject to that cap, so paging a large list no longer risks a 429. Capped responses carry `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset` headers (on successes too) so you can throttle before being rejected. The SDK retries a 429 or 503 automatically — up to `Mailblastr.max_retries` times (default 2), honouring `Retry-After`.
|
|
406
406
|
|
|
407
407
|
## Documentation
|
|
408
408
|
|
data/lib/mailblastr/emails.rb
CHANGED
|
@@ -6,6 +6,13 @@ module Mailblastr
|
|
|
6
6
|
class << self
|
|
7
7
|
# Send a single email. POST /emails
|
|
8
8
|
# Mailblastr::Emails.send({ from: "...", to: ["..."], subject: "...", html: "..." })
|
|
9
|
+
#
|
|
10
|
+
# Write ordinary links. Anchors, markdown links and bare URLs/domains in
|
|
11
|
+
# BOTH the :html and :text bodies are converted to tracked redirects at
|
|
12
|
+
# send time (when the sending domain has click tracking on), so a click is
|
|
13
|
+
# recorded whichever alternative the recipient's mail client renders.
|
|
14
|
+
# Opt-out links are never wrapped, and the content you send is stored and
|
|
15
|
+
# returned UNCHANGED — only the delivered copy carries the tracking URL.
|
|
9
16
|
# Pass { idempotency_key: "order-123" } as the second argument to retry safely.
|
|
10
17
|
def send(params, options = {})
|
|
11
18
|
Client.request(:post, "/emails", body: params, options: options)
|
data/lib/mailblastr/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mailblastr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 4.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- MailBlastr
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-08-
|
|
11
|
+
date: 2026-08-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: minitest
|