mangopay 3.12.0 → 3.13.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby_cd.yml +3 -3
- data/CHANGELOG.md +17 -0
- data/lib/mangopay/version.rb +1 -1
- data/lib/mangopay.rb +13 -2
- data/spec/mangopay/bankingaliases_spec.rb +1 -1
- data/spec/mangopay/shared_resources.rb +1 -1
- 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: 33c2d6553dc8885b0fe21e619033297cf0b7101a34075ad1bc71ec9a17117707
|
4
|
+
data.tar.gz: ec0af8fa883f54639840ff7fd47b26f3ac491509122ecb83a755919263d4e811
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2be5f515afb4652ec2b18d8411dfcaff56ccde9e7c7a121dc6ce575392165ae1a86a0d245f4553e0a9b94e7d8cefe4acb00284c9946b47d1a3a05ce3a38ad030
|
7
|
+
data.tar.gz: a67eab6dbb229a8a9d53f4839faa11650de723dda61bf208e8a10c44b7c7fcf47605a7af2620330d501b5a278b891cb57b15f6b58b21275b67de677f812d0d69
|
@@ -16,11 +16,11 @@ jobs:
|
|
16
16
|
packages: write
|
17
17
|
|
18
18
|
steps:
|
19
|
-
- uses: actions/checkout@
|
19
|
+
- uses: actions/checkout@v3
|
20
20
|
- name: Set up Ruby 2.6
|
21
|
-
uses:
|
21
|
+
uses: ruby/setup-ruby@v1
|
22
22
|
with:
|
23
|
-
ruby-version: 2.6.
|
23
|
+
ruby-version: 2.6.10
|
24
24
|
|
25
25
|
- name: Publish to RubyGems
|
26
26
|
run: |
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
## [3.13.2] - 2023-05-18
|
2
|
+
### Fixes
|
3
|
+
|
4
|
+
- fixed GitHub Actions CD pipeline
|
5
|
+
|
6
|
+
## [3.13.1] - 2023-05-18
|
7
|
+
### Fixes
|
8
|
+
|
9
|
+
- typo fixed in test context name (@batistadasilva)
|
10
|
+
|
11
|
+
## [3.13.0] - 2023-05-17
|
12
|
+
### Added
|
13
|
+
|
14
|
+
- Possibility to configure HTTP `max_retries (http_max_retries)` (default value = 1) and `open_timeout (http_open_timeout)` (default value = 60 seconds)
|
15
|
+
- Increased default `read_timeout` to 30 seconds
|
16
|
+
|
17
|
+
|
1
18
|
## [3.12.0] - 2022-11-16
|
2
19
|
### New 30-day preauthorization feature
|
3
20
|
|
data/lib/mangopay/version.rb
CHANGED
data/lib/mangopay.rb
CHANGED
@@ -52,6 +52,7 @@ module MangoPay
|
|
52
52
|
attr_accessor :preproduction, :root_url,
|
53
53
|
:client_id, :client_apiKey,
|
54
54
|
:temp_dir, :log_file, :http_timeout,
|
55
|
+
:http_max_retries, :http_open_timeout,
|
55
56
|
:logger
|
56
57
|
|
57
58
|
def preproduction
|
@@ -63,7 +64,15 @@ module MangoPay
|
|
63
64
|
end
|
64
65
|
|
65
66
|
def http_timeout
|
66
|
-
@http_timeout ||
|
67
|
+
@http_timeout || 30000
|
68
|
+
end
|
69
|
+
|
70
|
+
def http_max_retries
|
71
|
+
@http_max_retries || 1
|
72
|
+
end
|
73
|
+
|
74
|
+
def http_open_timeout
|
75
|
+
@http_open_timeout || 60000
|
67
76
|
end
|
68
77
|
end
|
69
78
|
|
@@ -141,7 +150,9 @@ module MangoPay
|
|
141
150
|
headers['Idempotency-Key'] = headers_or_idempotency_key if headers_or_idempotency_key != nil
|
142
151
|
end
|
143
152
|
|
144
|
-
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true, :read_timeout => configuration.http_timeout,
|
153
|
+
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true, :read_timeout => configuration.http_timeout,
|
154
|
+
:max_retries => configuration.http_max_retries,
|
155
|
+
:open_timeout => configuration.http_open_timeout, ssl_version: :TLSv1_2) do |http|
|
145
156
|
req = Net::HTTP::const_get(method.capitalize).new(uri.request_uri, headers)
|
146
157
|
req.body = JSON.dump(params)
|
147
158
|
before_request_proc.call(req) if before_request_proc
|
@@ -601,7 +601,7 @@ shared_context 'hooks' do
|
|
601
601
|
end
|
602
602
|
|
603
603
|
###############################################
|
604
|
-
shared_context '
|
604
|
+
shared_context 'bankingaliases' do
|
605
605
|
###############################################
|
606
606
|
include_context 'users'
|
607
607
|
include_context 'wallets'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mangopay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.13.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geoffroy Lorieux
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-05-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|