mailkite 0.9.0 → 0.10.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailkite.rb +15 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e039cd34138dc83c3668573a9c8d9a5d581cf789788a7a64baa4eb618fa60c65
4
- data.tar.gz: 3017423e9da42fbb2b0d2d3f628deb3efba54d1500f83f49e9eea9dd010e0989
3
+ metadata.gz: 12f2253d7e19c077b589585febf6c7fc997c8638d7feaad9027afd34ad2a1f04
4
+ data.tar.gz: 8a81bf20948fc4c48b0d3abea045c56683062521fe1b3fe6d02b8e36bd31a06c
5
5
  SHA512:
6
- metadata.gz: 006de2fb6b2e6a2e8899202014bf458f82a158fbf13cc0cd4717953ffbbfcdcf58ed91e3594f45e76f3aa0c66c46ee1baaee45161b3d79ca260b75b1cb5d0161
7
- data.tar.gz: fc991a529c8875074f90c3cd5983c27a6cf51301f390c47b1bec02586ad5efec56475acd56e0bfc4ecde1a7ca23854f2aa074412fcd3e7241aeb63a07d8d145a
6
+ metadata.gz: bc93387f841f8a0a6e5d5a2da37587bd4637392195b5d9a63646f924006326a4a6ad2e46a06bc4157008efd9515a7f35b861d193ea89ffae9cff455107b7da0b
7
+ data.tar.gz: 6b0293d9b75d5ebdd4decf62ea93b2be18b283cf7162062c125cdffff6b8dc0d2c927bca6bbd09bdc880696938a96b5811b2d652caf3490a26378af7790a1278
data/lib/mailkite.rb CHANGED
@@ -15,7 +15,7 @@ require "base64"
15
15
  require "cgi"
16
16
 
17
17
  module Mailkite
18
- VERSION = "0.9.0"
18
+ VERSION = "0.10.0"
19
19
  DEFAULT_BASE_URL = "https://api.mailkite.dev"
20
20
  # Reject webhook events older than this (ms) to block replays. Pass 0 to disable.
21
21
  DEFAULT_TOLERANCE_MS = 5 * 60 * 1000
@@ -355,8 +355,13 @@ module Mailkite
355
355
  end
356
356
 
357
357
  # --- Messages & deliveries -----------------------------------------
358
- def listMessages
359
- request("GET", "/api/messages")
358
+ def listMessages(before = nil, limit = nil)
359
+ params = []
360
+ params << "before=#{CGI.escape(before.to_s)}" unless before.nil?
361
+ params << "limit=#{CGI.escape(limit.to_s)}" unless limit.nil?
362
+ path = "/api/messages"
363
+ path += "?#{params.join('&')}" unless params.empty?
364
+ request("GET", path)
360
365
  end
361
366
 
362
367
  def getMessage(id)
@@ -388,8 +393,13 @@ module Mailkite
388
393
  request("DELETE", "/api/lists/#{id}")
389
394
  end
390
395
 
391
- def listListContacts(id)
392
- request("GET", "/api/lists/#{id}/contacts")
396
+ def listListContacts(id, before = nil, limit = nil)
397
+ params = []
398
+ params << "before=#{CGI.escape(before.to_s)}" unless before.nil?
399
+ params << "limit=#{CGI.escape(limit.to_s)}" unless limit.nil?
400
+ path = "/api/lists/#{id}/contacts"
401
+ path += "?#{params.join('&')}" unless params.empty?
402
+ request("GET", path)
393
403
  end
394
404
 
395
405
  def addListContacts(id, body)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailkite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - MailKite
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-27 00:00:00.000000000 Z
11
+ date: 2026-06-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Send and manage email over your own authenticated domain with MailKite.
14
14
  email: