MailchimpTransactional 1.0.43 → 1.0.47

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: 150970898380540d5f646260c9bc5a27c578598d941c1bea6084662a439c3169
4
- data.tar.gz: eece8b747fbc30e1185e1710ba093744abfcd6604a7f65db09843bfc5fd1db03
3
+ metadata.gz: abe112746f961881ddef27979ae7e92be84233afb30ba3edc2fccb7445528950
4
+ data.tar.gz: 8c2a45288b06c2fd9a9daed10090157084197f1c9af86973a757f34443d8cd88
5
5
  SHA512:
6
- metadata.gz: 334d2f6833d8a8f3b564397d3faaabc4150e2f8f50a7788aeb26c4020bede81f52803dcfac09ff116233d2e9fdc1f1c305a300a21e72fdef58dc3b045e00f9df
7
- data.tar.gz: b42206ca63af130f410c0d27e60947a9586cec0831c4f0e8872a7df7423bb96824740d7970553601f2d1e96d136efc5e4939d405255ab9648a8da5af0f360496
6
+ metadata.gz: b901653841b08df62658867e435ea602f1bcbdfcf01d403541c4eb5371bb4e448c8fa604914cfc2dca66988c5d461b214f470e881aa37cebb5b4243f2acdff2d
7
+ data.tar.gz: 5dff1639212c40561bda17c8dec34d246b8564812fbcf3fcf8736c0dcb20dfc8221f2a3afadd9fda370cd6518ba993e2817795d4dac35994733f04e8a93b4b63
data/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
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
+
8
+ ### 1.0.45
9
+ * Added a `set_timeout` method to the Client class in the Ruby SDK
10
+
11
+ ### 1.0.44
12
+ * Added a `set_timeout` method to the Client class in the Python SDK
13
+
5
14
  ### 1.0.43
6
15
  * Added a `setTimeout` method to the Configuration class in the PHP SDK.
7
16
 
@@ -25,6 +34,18 @@
25
34
 
26
35
  ## Marketing
27
36
 
37
+ ### 3.0.72
38
+ * Updated the `PATCH /automations/.../emails/.../` documentation to state the required `workflow_type`
39
+
40
+ ### 3.0.70
41
+ * 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.
42
+
43
+ ### 3.0.69
44
+ * Added handling for a `timeout` field in the config block passed to the client constructor in the Ruby Marketing SDK.
45
+
46
+ ### 3.0.68
47
+ * Added handling for a `'timeout'` field in `set_config()` in the Python Marketing SDK.
48
+
28
49
  ### 3.0.67
29
50
  * Added a `setTimeout()` method to the configuration class in the PHP Marketing SDK, to allow manually setting the timeout for Guzzle requests.
30
51
 
@@ -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.43
8
+ OpenAPI spec version: 1.0.47
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.43.gem
24
+ gem install ./MailchimpTransactional-1.0.47.gem
25
25
  ```
26
- (for development, run `gem install --dev ./MailchimpTransactional-1.0.43.gem` to install the development dependencies)
26
+ (for development, run `gem install --dev ./MailchimpTransactional-1.0.47.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.43'
32
+ gem 'MailchimpTransactional', '~> 1.0.47'
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.43
6
+ OpenAPI spec version: 1.0.47
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.43
6
+ OpenAPI spec version: 1.0.47
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.43
6
+ OpenAPI spec version: 1.0.47
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.43
6
+ OpenAPI spec version: 1.0.47
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.43
6
+ OpenAPI spec version: 1.0.47
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.43
6
+ OpenAPI spec version: 1.0.47
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.43
6
+ OpenAPI spec version: 1.0.47
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.43
6
+ OpenAPI spec version: 1.0.47
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.43
6
+ OpenAPI spec version: 1.0.47
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.43
6
+ OpenAPI spec version: 1.0.47
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.43
6
+ OpenAPI spec version: 1.0.47
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.43
6
+ OpenAPI spec version: 1.0.47
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.43
6
+ OpenAPI spec version: 1.0.47
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.43
6
+ OpenAPI spec version: 1.0.47
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.43
6
+ OpenAPI spec version: 1.0.47
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.43
6
+ OpenAPI spec version: 1.0.47
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,6 +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
+ @read_timeout = 300
24
+ @write_timeout = 300
25
+ @connect_timeout = 300
23
26
  set_api_key(api_key)
24
27
  end
25
28
 
@@ -37,6 +40,13 @@ module MailchimpTransactional
37
40
  end
38
41
  end
39
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
48
+ end
49
+
40
50
  def call_api(http_method, path, body = {})
41
51
  use_default_output_format = true
42
52
  active_output_format = @default_output_format
@@ -63,7 +73,7 @@ module MailchimpTransactional
63
73
  body[:key] = @api_key
64
74
 
65
75
  # send request
66
- conn = Excon.new(url, :headers => {'Content-Type' => 'application/json'}, :read_timeout => 300, :write_timeout => 300)
76
+ conn = Excon.new(url, :headers => {'Content-Type' => 'application/json'}, :read_timeout => @read_timeout, :write_timeout => @write_timeout, :connect_timeout => @connect_timeout)
67
77
  res = conn.post(:body => body.to_json)
68
78
 
69
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.43
6
+ OpenAPI spec version: 1.0.47
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.43
6
+ OpenAPI spec version: 1.0.47
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.43
6
+ OpenAPI spec version: 1.0.47
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.43'
14
+ VERSION = '1.0.47'
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.43
6
+ OpenAPI spec version: 1.0.47
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,6 +63,10 @@ module MailchimpTransactional
63
63
  @api_client.set_default_output_format(output_format)
64
64
  end
65
65
 
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
+ end
69
+
66
70
  def allowlists
67
71
  @Allowlists
68
72
  end
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.43
4
+ version: 1.0.47
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-05 00:00:00.000000000 Z
11
+ date: 2022-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon