emailable 3.0.2 → 3.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 569f2990e697b4682c76a2d659760562572c175f8649e273bf821965fd2df76f
4
- data.tar.gz: cc16ed03e3a287e558a2d681f4c9d08ecadcc56a2bb5ec0242ad05ec4ed4a931
3
+ metadata.gz: 708c483149a304ccfbac1757c300380475d579afa28a72c85738432ffeff7b6f
4
+ data.tar.gz: 3350fc08596f6f3a7b6991a299ec52eee0d246fef52727103b6d927cdd62d23c
5
5
  SHA512:
6
- metadata.gz: c8d2241faf3fc8b8bfce8a6f1bef348558b109800f428d67edcc3744c0daac4cd9a5c47b490d4622ff0dbcdf22b09efff69167ccc50b315b90212633b1ef67c5
7
- data.tar.gz: 1300dc96e81a82de3ac19bfd392ecafd1f22751fbf261d5528e775f1b9bfab88b224dcbe2da9e3534ed9898b30b022cbc6bf64ae9a2e89cc3df3c5b518168851
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/2d74c69a9155109058a7/maintainability)](https://codeclimate.com/github/emailable/emailable-ruby/maintainability)
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
 
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Emailable
2
- VERSION = '3.0.2'
2
+ VERSION = '3.1.0'
3
3
  end
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.2
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-07-27 00:00:00.000000000 Z
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: