emailable 3.0.2 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/emailable/batch.rb +4 -4
- data/lib/emailable/version.rb +1 -1
- 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: 708c483149a304ccfbac1757c300380475d579afa28a72c85738432ffeff7b6f
|
4
|
+
data.tar.gz: 3350fc08596f6f3a7b6991a299ec52eee0d246fef52727103b6d927cdd62d23c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08863dd0a81fa48eeef2a871ca1b4249386c3b64f5246249bdd289dbd7d933242c24b50aa7817eac8f5defaa325a761bb96c98e9ddb49053801780577cddcd4d'
|
7
|
+
data.tar.gz: a49925c87814ea286e45a337ab372c353cae67a094c78244ba73264e18e98e00c8b43a88f6d70a1e5c31d76f97fa90fe422f8a3645e6b8f5da27e169fc495812
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Emailable Ruby Library
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.com/emailable/emailable-ruby.svg)](https://travis-ci.com/emailable/emailable-ruby)
|
4
|
-
[![Maintainability](https://api.codeclimate.com/v1/badges/
|
3
|
+
[![Build Status](https://app.travis-ci.com/emailable/emailable-ruby.svg)](https://travis-ci.com/emailable/emailable-ruby)
|
4
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/e7eef54e491adec95e6d/maintainability)](https://codeclimate.com/github/emailable/emailable-ruby/maintainability)
|
5
5
|
|
6
6
|
This is the official ruby wrapper for the Emailable API.
|
7
7
|
|
data/lib/emailable/batch.rb
CHANGED
@@ -19,20 +19,20 @@ module Emailable
|
|
19
19
|
@status = nil
|
20
20
|
end
|
21
21
|
|
22
|
-
def verify
|
22
|
+
def verify(simulate: nil)
|
23
23
|
return @id unless @id.nil?
|
24
24
|
|
25
|
-
opts = { emails: @emails.join(','), url: @callback }
|
25
|
+
opts = { emails: @emails.join(','), url: @callback, simulate: simulate }
|
26
26
|
response = @client.request(:post, 'batch', opts)
|
27
27
|
|
28
28
|
@id = response.body['id']
|
29
29
|
end
|
30
30
|
|
31
|
-
def status
|
31
|
+
def status(simulate: nil)
|
32
32
|
return nil unless @id
|
33
33
|
return @status if @status
|
34
34
|
|
35
|
-
response = @client.request(:get, 'batch', { id: @id })
|
35
|
+
response = @client.request(:get, 'batch', { id: @id, simulate: simulate })
|
36
36
|
bs = BatchStatus.new(response.body)
|
37
37
|
@status = bs if bs.complete?
|
38
38
|
|
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.0
|
4
|
+
version: 3.1.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: 2021-
|
11
|
+
date: 2021-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -151,7 +151,7 @@ metadata:
|
|
151
151
|
bug_tracker_uri: https://github.com/emailable/emailable-ruby/issues
|
152
152
|
documentation_uri: https://docs.emailable.com/?ruby
|
153
153
|
source_code_uri: https://github.com/emailable/emailable-ruby
|
154
|
-
post_install_message:
|
154
|
+
post_install_message:
|
155
155
|
rdoc_options: []
|
156
156
|
require_paths:
|
157
157
|
- lib
|
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
167
|
version: '0'
|
168
168
|
requirements: []
|
169
169
|
rubygems_version: 3.1.6
|
170
|
-
signing_key:
|
170
|
+
signing_key:
|
171
171
|
specification_version: 4
|
172
172
|
summary: Ruby bindings for the Emailable API
|
173
173
|
test_files:
|