mailosaur 6.0.3 → 6.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/Mailosaur/messages.rb +7 -2
- data/lib/Mailosaur/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: 3475cc926cf31c9b5577debbd52e17047a87bf91a344e392710e32b0b809e1f5
|
4
|
+
data.tar.gz: ac74bbbd5148cedaa4f701e31c8a0c53e0fe0260c4a7c2ecda45cb52dc92ef61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84e848dffa0cda5fdb3fc745827bcba6cbca133ea39530afaf67231c86a63da51ac21631ada1538d7fab50a5909dc47993237b9929a1d6ba4d9a38c4c8f1bd32
|
7
|
+
data.tar.gz: 78190cbf7bfa75aaf8b232b2444472e814f0320d03f8493f844ebcf8f1fdba02cd813725aa6efefb07d585da2d233e468d2e0d87880b2e7c0881c76d74d3fb02
|
data/lib/Mailosaur/messages.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'uri'
|
2
|
+
|
1
3
|
module Mailosaur
|
2
4
|
class Messages
|
3
5
|
#
|
@@ -90,13 +92,16 @@ module Mailosaur
|
|
90
92
|
# pagination.
|
91
93
|
# @param items_per_page [Integer] A limit on the number of results to be
|
92
94
|
# returned per page. Can be set between 1 and 1000 items, the default is 50.
|
95
|
+
# @param received_after [DateTime] Limits results to only messages received
|
96
|
+
# after this date/time.
|
93
97
|
#
|
94
98
|
# @return [MessageListResult] operation results.
|
95
99
|
#
|
96
|
-
def list(server, page: nil, items_per_page: nil)
|
100
|
+
def list(server, page: nil, items_per_page: nil, received_after: nil)
|
97
101
|
url = 'api/messages?server=' + server
|
98
102
|
url += page ? '&page=' + page : ''
|
99
103
|
url += items_per_page ? '&itemsPerPage=' + items_per_page : ''
|
104
|
+
url += received_after ? '&receivedAfter=' + CGI.escape(received_after.iso8601) : ''
|
100
105
|
|
101
106
|
response = conn.get url
|
102
107
|
|
@@ -155,7 +160,7 @@ module Mailosaur
|
|
155
160
|
url = 'api/messages/search?server=' + server
|
156
161
|
url += page ? '&page=' + page.to_s : ''
|
157
162
|
url += items_per_page ? '&itemsPerPage=' + items_per_page.to_s : ''
|
158
|
-
url += received_after ? '&receivedAfter=' + received_after.iso8601 : ''
|
163
|
+
url += received_after ? '&receivedAfter=' + CGI.escape(received_after.iso8601) : ''
|
159
164
|
|
160
165
|
poll_count = 0
|
161
166
|
start_time = Time.now.to_f
|
data/lib/Mailosaur/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailosaur
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mailosaur Ltd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|