MailchimpTransactional 1.0.45 → 1.0.46
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/MailchimpTransactional.gemspec +1 -1
- data/README.md +3 -3
- data/lib/MailchimpTransactional/api/allowlists_api.rb +1 -1
- data/lib/MailchimpTransactional/api/exports_api.rb +1 -1
- data/lib/MailchimpTransactional/api/inbound_api.rb +1 -1
- data/lib/MailchimpTransactional/api/ips_api.rb +1 -1
- data/lib/MailchimpTransactional/api/messages_api.rb +1 -1
- data/lib/MailchimpTransactional/api/metadata_api.rb +1 -1
- data/lib/MailchimpTransactional/api/rejects_api.rb +1 -1
- data/lib/MailchimpTransactional/api/senders_api.rb +1 -1
- data/lib/MailchimpTransactional/api/subaccounts_api.rb +1 -1
- data/lib/MailchimpTransactional/api/tags_api.rb +1 -1
- data/lib/MailchimpTransactional/api/templates_api.rb +1 -1
- data/lib/MailchimpTransactional/api/urls_api.rb +1 -1
- data/lib/MailchimpTransactional/api/users_api.rb +1 -1
- data/lib/MailchimpTransactional/api/webhooks_api.rb +1 -1
- data/lib/MailchimpTransactional/api/whitelists_api.rb +1 -1
- data/lib/MailchimpTransactional/api_client.rb +10 -5
- data/lib/MailchimpTransactional/api_error.rb +1 -1
- data/lib/MailchimpTransactional/configuration.rb +1 -1
- data/lib/MailchimpTransactional/version.rb +2 -2
- data/lib/MailchimpTransactional.rb +3 -3
- 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: 820fbdaf8c630cc395b6470cb006a84bd6493acef1fa316448c175ed39b7b637
|
|
4
|
+
data.tar.gz: d39dbf063ab138bc05fda0db87cb6acd03f8fb6aab7395d389fd27d4d9b9a151
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d5d0007826f2c6dc8c2a00ea1b80359f7566d717c2dd385b7b94002e38800e0ef8b8a8e57a64d99e229b4cf7854519ef35aee015c393608e815774d4a78b767
|
|
7
|
+
data.tar.gz: 31b3bb4991d5eaf1bcd24a2a106821ca6ebf44ca3fd412101b81bd8e3e1bbfe76aa62c33e169e65a286022995951b06339b6a7135fa93a828f13341c9a13d98c
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
## Transactional
|
|
4
4
|
|
|
5
|
+
### 1.0.46
|
|
6
|
+
* Added a little more granularity to the `set_timeout` method to the Client class in the Ruby SDK; now supports `read`, `write` and `connect` parameters, which will default to the `timeout` param if unspecified, or 300 seconds if `timeout` is unspecified.
|
|
7
|
+
|
|
5
8
|
### 1.0.45
|
|
6
9
|
* Added a `set_timeout` method to the Client class in the Ruby SDK
|
|
7
10
|
|
|
@@ -31,6 +34,9 @@
|
|
|
31
34
|
|
|
32
35
|
## Marketing
|
|
33
36
|
|
|
37
|
+
### 3.0.70
|
|
38
|
+
* Added more granularity for the `timeout` field in the Ruby Marketing SDK; now supports `read_timeout`, `write_timeout` and `connect_timeout` fields which will default to the `timeout` value.
|
|
39
|
+
|
|
34
40
|
### 3.0.69
|
|
35
41
|
* Added handling for a `timeout` field in the config block passed to the client constructor in the Ruby Marketing SDK.
|
|
36
42
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
7
7
|
|
|
8
|
-
OpenAPI spec version: 1.0.
|
|
8
|
+
OpenAPI spec version: 1.0.46
|
|
9
9
|
Contact: apihelp@mailchimp.com
|
|
10
10
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
11
|
Swagger Codegen version: 2.4.12
|
data/README.md
CHANGED
|
@@ -21,15 +21,15 @@ gem build MailchimpTransactional.gemspec
|
|
|
21
21
|
Then either install the gem locally:
|
|
22
22
|
|
|
23
23
|
```shell
|
|
24
|
-
gem install ./MailchimpTransactional-1.0.
|
|
24
|
+
gem install ./MailchimpTransactional-1.0.46.gem
|
|
25
25
|
```
|
|
26
|
-
(for development, run `gem install --dev ./MailchimpTransactional-1.0.
|
|
26
|
+
(for development, run `gem install --dev ./MailchimpTransactional-1.0.46.gem` to install the development dependencies)
|
|
27
27
|
|
|
28
28
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
29
29
|
|
|
30
30
|
Finally add this to the Gemfile:
|
|
31
31
|
|
|
32
|
-
gem 'MailchimpTransactional', '~> 1.0.
|
|
32
|
+
gem 'MailchimpTransactional', '~> 1.0.46'
|
|
33
33
|
|
|
34
34
|
### Install from Git
|
|
35
35
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -20,7 +20,9 @@ module MailchimpTransactional
|
|
|
20
20
|
@format_list = ['json', 'xml', 'php', 'yaml']
|
|
21
21
|
@default_output_format = 'json'
|
|
22
22
|
@accepts = ['application/json', 'application/xml', 'application/x-php', 'application/x-yaml; charset=utf-8']
|
|
23
|
-
@
|
|
23
|
+
@read_timeout = 300
|
|
24
|
+
@write_timeout = 300
|
|
25
|
+
@connect_timeout = 300
|
|
24
26
|
set_api_key(api_key)
|
|
25
27
|
end
|
|
26
28
|
|
|
@@ -38,8 +40,11 @@ module MailchimpTransactional
|
|
|
38
40
|
end
|
|
39
41
|
end
|
|
40
42
|
|
|
41
|
-
def set_timeout(
|
|
42
|
-
|
|
43
|
+
def set_timeout(default_timeout=nil, read: nil, write: nil, connect: nil)
|
|
44
|
+
default_timeout = default_timeout || 300
|
|
45
|
+
@read_timeout = read || default_timeout
|
|
46
|
+
@write_timeout = write || default_timeout
|
|
47
|
+
@connect_timeout = connect || default_timeout
|
|
43
48
|
end
|
|
44
49
|
|
|
45
50
|
def call_api(http_method, path, body = {})
|
|
@@ -68,7 +73,7 @@ module MailchimpTransactional
|
|
|
68
73
|
body[:key] = @api_key
|
|
69
74
|
|
|
70
75
|
# send request
|
|
71
|
-
conn = Excon.new(url, :headers => {'Content-Type' => 'application/json'}, :read_timeout => @
|
|
76
|
+
conn = Excon.new(url, :headers => {'Content-Type' => 'application/json'}, :read_timeout => @read_timeout, :write_timeout => @write_timeout, :connect_timeout => @connect_timeout)
|
|
72
77
|
res = conn.post(:body => body.to_json)
|
|
73
78
|
|
|
74
79
|
# handle response
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.12
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
module MailchimpTransactional
|
|
14
|
-
VERSION = '1.0.
|
|
14
|
+
VERSION = '1.0.46'
|
|
15
15
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.46
|
|
7
7
|
Contact: apihelp@mailchimp.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.12
|
|
@@ -63,8 +63,8 @@ module MailchimpTransactional
|
|
|
63
63
|
@api_client.set_default_output_format(output_format)
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
-
def set_timeout(timeout)
|
|
67
|
-
@api_client.set_timeout(timeout)
|
|
66
|
+
def set_timeout(timeout=nil, read: nil, write: nil, connect: nil)
|
|
67
|
+
@api_client.set_timeout(timeout, read: read, write: write, connect: connect)
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
def allowlists
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: MailchimpTransactional
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.46
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mailchimp
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-10-
|
|
11
|
+
date: 2021-10-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: excon
|