mailosaur 7.13.0 → 7.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c417909e984bf0a87b874005ad64189ad558f7d84c684fb611f67acbb65e4c0
4
- data.tar.gz: 14b33b02313b33441b8b81a38b20a076a4f4d4f3cf9d75c10bf647e19e7f9225
3
+ metadata.gz: 4c8aa36344cdc15eb6630b90d9190139606a1758e814b9f8253bcccbc65de38a
4
+ data.tar.gz: 699d241ddddef0397ac598c5e873b15698854f116f627f37faccec6abd007f68
5
5
  SHA512:
6
- metadata.gz: f3ee70bc3325a97b85affc84f2ed0e72ed6e7ec02bb684fed6894d88ad4a4b74b46e593ac07b6a6ba6e3a1458ef76576cfb715096c04f971a0c2c45a336bf355
7
- data.tar.gz: e35f4d3da9895285738241c72f8aa0b40b7da76ed298f83cae7a007222386ec20bdaee136f4c3658f94823786568dc553db05418f8a4da56627fb14bb8412290
6
+ metadata.gz: 10f2e39c079e74a85071601d290fcea640e02b154b9dfcbe5d4c00b3f3e60b19aa79064ff76f2e3234694160707d05ce8437e41ddb8912574a1097250fc3427c
7
+ data.tar.gz: 2a68cde9de2c765f2c346be23e4eabacb3e9a3c9096445e3f66d8d1fbb8fa768e8106991edd0a5d6a166faaebda6bfd5c6141c06678b4b37bd6f96d99186a164
@@ -172,7 +172,9 @@ module Mailosaur
172
172
  if ((1000 * (Time.now.to_f - start_time).to_i) + delay) > timeout
173
173
  return Mailosaur::Models::MessageListResult.new(model) unless error_on_timeout
174
174
 
175
- raise Mailosaur::MailosaurError.new('No matching messages found in time. By default, only messages received in the last hour are checked (use receivedAfter to override this).', 'search_timeout')
175
+ msg = format('No matching messages found in time. By default, only messages received in the last hour are checked (use receivedAfter to override this). The search criteria used for this query was [%s] which timed out after %sms',
176
+ criteria.to_json, timeout)
177
+ raise Mailosaur::MailosaurError.new(msg, 'search_timeout')
176
178
  end
177
179
 
178
180
  sleep(delay / 1000)
@@ -3,10 +3,10 @@ module Mailosaur
3
3
  class PreviewEmailClient < BaseModel
4
4
  def initialize(data = {})
5
5
  @id = data['id']
6
- @name = data['id']
7
- @platform_group = data['id']
8
- @platform_type = data['id']
9
- @platform_version = data['id']
6
+ @name = data['name']
7
+ @platform_group = data['platformGroup']
8
+ @platform_type = data['platformType']
9
+ @platform_version = data['platformVersion']
10
10
  @can_disable_images = data['canDisableImages']
11
11
  @status = data['status']
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module Mailosaur
2
- VERSION = '7.13.0'.freeze
2
+ VERSION = '7.15.0'.freeze
3
3
  end
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: 7.13.0
4
+ version: 7.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mailosaur
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-15 00:00:00.000000000 Z
11
+ date: 2024-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
212
  - !ruby/object:Gem::Version
213
213
  version: '0'
214
214
  requirements: []
215
- rubygems_version: 3.3.26
215
+ rubygems_version: 3.3.27
216
216
  signing_key:
217
217
  specification_version: 4
218
218
  summary: The Mailosaur Ruby library