emailable 3.1.1 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/emailable/batch.rb +4 -3
- data/lib/emailable/resources/batch_status.rb +1 -1
- data/lib/emailable/version.rb +1 -1
- data/test/emailable/batch_test.rb +1 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59b57b0948d78b837e5a3f82a0a0e5c5446742f57e50ebbd2c5b0817f0aabfc5
|
4
|
+
data.tar.gz: 58ce6a2ac2a9846e5daa63157014cbe0b557f4c94f30c71d9252db8e169cc12f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 033fe8af379957fdee488fca886d3e3ac4818a7f8587b80554424c7ec824bd9dd1ed949268bc246da1460d0afc449df640cdca8e7bf4fcfbef6790c6c5b1fb1a
|
7
|
+
data.tar.gz: 9d9ff16f6db49bc2c8791ae46be20dfdc7e5d8e58cc9b603e9e04492b85d97bc0bf48b7933ca46a1362469cba4ca923b35a4444c056699716a15417518454897
|
data/lib/emailable/batch.rb
CHANGED
@@ -28,11 +28,12 @@ module Emailable
|
|
28
28
|
@id = response.body['id']
|
29
29
|
end
|
30
30
|
|
31
|
-
def status(simulate: nil)
|
31
|
+
def status(simulate: nil, partial: nil)
|
32
32
|
return nil unless @id
|
33
33
|
return @status if @status
|
34
34
|
|
35
|
-
|
35
|
+
body = { id: @id, simulate: simulate, partial: partial }
|
36
|
+
response = @client.request(:get, 'batch', body)
|
36
37
|
bs = BatchStatus.new(response.body)
|
37
38
|
@status = bs if bs.complete?
|
38
39
|
|
@@ -40,7 +41,7 @@ module Emailable
|
|
40
41
|
end
|
41
42
|
|
42
43
|
def complete?
|
43
|
-
|
44
|
+
status.complete?
|
44
45
|
end
|
45
46
|
|
46
47
|
def inspect
|
data/lib/emailable/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emailable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emailable
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -153,7 +153,7 @@ metadata:
|
|
153
153
|
bug_tracker_uri: https://github.com/emailable/emailable-ruby/issues
|
154
154
|
documentation_uri: https://docs.emailable.com/?ruby
|
155
155
|
source_code_uri: https://github.com/emailable/emailable-ruby
|
156
|
-
post_install_message:
|
156
|
+
post_install_message:
|
157
157
|
rdoc_options: []
|
158
158
|
require_paths:
|
159
159
|
- lib
|
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
169
|
version: '0'
|
170
170
|
requirements: []
|
171
171
|
rubygems_version: 3.1.6
|
172
|
-
signing_key:
|
172
|
+
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: Ruby bindings for the Emailable API
|
175
175
|
test_files:
|