ibanity 1.10.0 → 1.11.0

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: 55b04259d7e3e1f8cd8ee53b23d5b50fd4803d0a15822870b59b2e3bd78820a2
4
- data.tar.gz: 79003b1d051b9e517ea786dab240b19dca82bfcbf8379784eacccdd15a7e8481
3
+ metadata.gz: f0b9e9d3d5bd37f738613c1e77292d6cee3fcbf5016d3d5200d7f4715d673735
4
+ data.tar.gz: a757cd1e70e6588174e56de7584d10f04b1b2023c6cf9e0c02e5377c8b6a226b
5
5
  SHA512:
6
- metadata.gz: f11e1268e728697e6f75cdc0eb7a79358d8359ee4eada54ddf7e452ef7147b9f0c548724047a5d99454ca785840ab5e72c0b16448b587789d27f3b6ced89a47e
7
- data.tar.gz: 96132c499b4e33ed9681f6998d1f7923e260d715078777a503dfd13c98a4979fcf03854fa96f217d3527a0e248cec994710fdfe74b3816afc92302d91ab60316
6
+ metadata.gz: 6c9b41e71c94eac22e8416d5689bb1c02c6cee7c1ba73a0fad1da4d6154a3bd18e7ae16baf154b3e5d881a72e18d77e991580f3dd3486ceb5a5fa157b1b652cd
7
+ data.tar.gz: 6fbd44ba0f4d06bb8e890728311bdf8f28e00008688f6d9005e9da6c55377e98644f1e0d8890543a69de7884a83ed6cfabe1e97f01cf381067ad84a801878bd6
data/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.11
4
+
5
+ * Allow to tweak RestClient's timeout.
6
+
3
7
  ## 1.10
4
8
 
5
- * [Ponto Connect] Add support for payment activation requests
9
+ * [Ponto Connect] Add support for payment activation requests.
6
10
 
7
11
  * [Webhooks] Add support for webhook signature validation, keys endpoint, and events.
8
12
 
@@ -130,8 +130,8 @@ module Ibanity
130
130
  resource = relationship.dig("links", "meta", "type")
131
131
  klass = relationship_klass(resource)
132
132
  method_name = Ibanity::Util.underscore(key)
133
- define_singleton_method(method_name) do |headers: nil|
134
- klass.list_by_uri(uri: url, headers: headers, customer_access_token: customer_access_token)
133
+ define_singleton_method(method_name) do |headers: nil, **query_params|
134
+ klass.list_by_uri(uri: url, headers: headers, query_params: query_params, customer_access_token: customer_access_token)
135
135
  end
136
136
  else
137
137
  resource = key
@@ -19,7 +19,9 @@ module Ibanity
19
19
  ponto_connect_client_id: nil,
20
20
  ponto_connect_client_secret: nil,
21
21
  application_id: nil,
22
- debug_http_requests: false)
22
+ debug_http_requests: false,
23
+ timeout: 60
24
+ )
23
25
  @isabel_connect_client_id = isabel_connect_client_id
24
26
  @isabel_connect_client_secret = isabel_connect_client_secret
25
27
  @ponto_connect_client_id = ponto_connect_client_id
@@ -35,6 +37,7 @@ module Ibanity
35
37
  @base_uri = "#{api_scheme}://#{api_host}"
36
38
  @ssl_ca_file = ssl_ca_file
37
39
  @application_id = application_id
40
+ @timeout = timeout
38
41
  end
39
42
 
40
43
  def get(uri:, query_params: {}, customer_access_token: nil, headers: nil, json: true)
@@ -94,7 +97,8 @@ module Ibanity
94
97
  payload: payload,
95
98
  ssl_client_cert: @certificate,
96
99
  ssl_client_key: @key,
97
- ssl_ca_file: @ssl_ca_file
100
+ ssl_ca_file: @ssl_ca_file,
101
+ timeout: @timeout
98
102
  }
99
103
 
100
104
  log("HTTP Request", query) if @http_debug
@@ -1,3 +1,3 @@
1
1
  module Ibanity
2
- VERSION = "1.10.0"
2
+ VERSION = "1.11.0"
3
3
  end
data/lib/ibanity.rb CHANGED
@@ -99,7 +99,8 @@ module Ibanity
99
99
  :api_host,
100
100
  :ssl_ca_file,
101
101
  :application_id,
102
- :debug_http_requests
102
+ :debug_http_requests,
103
+ :timeout
103
104
  ).new
104
105
  end
105
106
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibanity
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ibanity
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-03 00:00:00.000000000 Z
11
+ date: 2022-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client