paubox 1.3.0 → 1.3.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/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +7 -0
- data/lib/paubox/client.rb +6 -5
- data/lib/paubox/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: a395e42ff2b437190b9f616d271d43d7e5a1aa3261df3ccb5d6bb0f215b25fb2
|
|
4
|
+
data.tar.gz: e6c4a6aee47b2772effc6c3b2ee30675dad09fff9cc3c02ab489fae9eb974a4d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 156377e1f23f858c1bde721eae80b7531584d3b679a49cc8488c151f56c3c6b5b7e60400498f9bf78517555e99cd5846f6685a9512b02b50ae39867e0fc4b5fc
|
|
7
|
+
data.tar.gz: fc8f289e1d03bfec48a15c175f236f4acd46d0e860eaf028a844aa68d3fca68e7bd0e955e91ff6dff25dad811c0bee8dddedf896a4df8a24d1e32866a6895a65
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.3.1](https://github.com/Paubox/paubox-ruby/compare/v1.3.0...v1.3.1) (2026-10-02)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **receiving:** key attachment downloads on attachment_id and pass list filters ([#33](https://github.com/Paubox/paubox-ruby/issues/33)) ([875dea3](https://github.com/Paubox/paubox-ruby/commit/875dea3c1f897286061766aac6f73070288f4eab))
|
|
11
|
+
|
|
5
12
|
## [1.3.0](https://github.com/Paubox/paubox-ruby/compare/v1.2.0...v1.3.0) (2026-09-17)
|
|
6
13
|
|
|
7
14
|
|
data/lib/paubox/client.rb
CHANGED
|
@@ -142,8 +142,9 @@ module Paubox
|
|
|
142
142
|
JSON.parse(response.body)
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
-
def list_received_emails(limit: nil, after: nil, before: nil)
|
|
146
|
-
params = { limit: limit, after: after, before: before
|
|
145
|
+
def list_received_emails(limit: nil, after: nil, before: nil, search: nil, sort: nil, ascending: nil)
|
|
146
|
+
params = { limit: limit, after: after, before: before,
|
|
147
|
+
search: search, sort: sort, ascending: ascending }.compact
|
|
147
148
|
query = params.map { |k, v| "#{k}=#{CGI.escape(v.to_s)}" }.join('&')
|
|
148
149
|
url = request_endpoint('receiving')
|
|
149
150
|
url = "#{url}?#{query}" unless query.empty?
|
|
@@ -157,9 +158,9 @@ module Paubox
|
|
|
157
158
|
JSON.parse(response.body)
|
|
158
159
|
end
|
|
159
160
|
|
|
160
|
-
def get_received_email_attachment(email_id,
|
|
161
|
-
url = request_endpoint("receiving/#{email_id}/attachments/#{
|
|
162
|
-
RestClient.get(url, auth_header)
|
|
161
|
+
def get_received_email_attachment(email_id, attachment_id)
|
|
162
|
+
url = request_endpoint("receiving/#{email_id}/attachments/#{attachment_id}")
|
|
163
|
+
RestClient.get(url, auth_header.merge(accept: '*/*'))
|
|
163
164
|
end
|
|
164
165
|
|
|
165
166
|
def list_webhook_endpoints
|
data/lib/paubox/version.rb
CHANGED