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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03c144256b933b90453a794a96dd10a17979ebd6672c4718c09105a440c5ec9e
4
- data.tar.gz: 3b85993acff1094aea7ff20c415857e38e51ebde9329584bc5ab48ccb31dffb5
3
+ metadata.gz: a395e42ff2b437190b9f616d271d43d7e5a1aa3261df3ccb5d6bb0f215b25fb2
4
+ data.tar.gz: e6c4a6aee47b2772effc6c3b2ee30675dad09fff9cc3c02ab489fae9eb974a4d
5
5
  SHA512:
6
- metadata.gz: c9453c28e1e1357ba079e274b46a0b7ec12414272e809658bf58e05abfaeedbcb68409f580089a72b95c24b9570214a1cabf2ee25fd4c740d0a30ba2424c66e5
7
- data.tar.gz: 9ffef90ede4234b5b867670e3ba709512130b5af1aabb498567c1b333ada21d127cb4f1ce6b147e773443064af6e14621cb8ad4405a716c504df63f9e8eec2f1
6
+ metadata.gz: 156377e1f23f858c1bde721eae80b7531584d3b679a49cc8488c151f56c3c6b5b7e60400498f9bf78517555e99cd5846f6685a9512b02b50ae39867e0fc4b5fc
7
+ data.tar.gz: fc8f289e1d03bfec48a15c175f236f4acd46d0e860eaf028a844aa68d3fca68e7bd0e955e91ff6dff25dad811c0bee8dddedf896a4df8a24d1e32866a6895a65
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "1.3.0"
2
+ ".": "1.3.1"
3
3
  }
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 }.compact
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, blob_id)
161
- url = request_endpoint("receiving/#{email_id}/attachments/#{blob_id}")
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paubox
4
- VERSION = '1.3.0'
4
+ VERSION = '1.3.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paubox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paubox