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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 913f73df1d1821cd5a933ee4a5c0bc7c776f1eeb512588b7488aa110706bf0b6
4
- data.tar.gz: bda53a132d7e5b3a44739277405a9f79200dcb6bdab4e120ede7f6cae0e71a04
3
+ metadata.gz: 33c2d6553dc8885b0fe21e619033297cf0b7101a34075ad1bc71ec9a17117707
4
+ data.tar.gz: ec0af8fa883f54639840ff7fd47b26f3ac491509122ecb83a755919263d4e811
5
5
  SHA512:
6
- metadata.gz: d29406640c31ef0d20e5c060582cb5860946ce8ff4b0f249412e7edc368d355efbaf94cd595885afa863607264a9facfb6af3912e814743969e424ac559ebfe8
7
- data.tar.gz: 7f31702439cff0df222e723c363e5b6c6f242fa582f82986f5a26809db63291eb17f46c2a2a476ecf15a9caadbd9c807766b5f8707b41abb58658cffd571f878
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@v2
19
+ - uses: actions/checkout@v3
20
20
  - name: Set up Ruby 2.6
21
- uses: actions/setup-ruby@v1
21
+ uses: ruby/setup-ruby@v1
22
22
  with:
23
- ruby-version: 2.6.x
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
 
@@ -1,3 +1,3 @@
1
1
  module MangoPay
2
- VERSION = '3.12.0'
2
+ VERSION = '3.13.2'
3
3
  end
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 || 10000
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, ssl_version: :TLSv1_2) do |http|
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
@@ -1,7 +1,7 @@
1
1
  describe MangoPay::BankingAliases do
2
2
  include_context 'users'
3
3
  include_context 'wallets'
4
- include_context 'bankigaliases'
4
+ include_context 'bankingaliases'
5
5
 
6
6
  describe 'CREATE' do
7
7
  it 'creates a new banking alias' do
@@ -601,7 +601,7 @@ shared_context 'hooks' do
601
601
  end
602
602
 
603
603
  ###############################################
604
- shared_context 'bankigaliases' do
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.12.0
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: 2022-11-16 00:00:00.000000000 Z
12
+ date: 2023-05-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json