ibanity 1.10.0 → 1.11.0
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 +5 -1
- data/lib/ibanity/api/base_resource.rb +2 -2
- data/lib/ibanity/client.rb +6 -2
- data/lib/ibanity/version.rb +1 -1
- data/lib/ibanity.rb +2 -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: f0b9e9d3d5bd37f738613c1e77292d6cee3fcbf5016d3d5200d7f4715d673735
|
4
|
+
data.tar.gz: a757cd1e70e6588174e56de7584d10f04b1b2023c6cf9e0c02e5377c8b6a226b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/ibanity/client.rb
CHANGED
@@ -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
|
data/lib/ibanity/version.rb
CHANGED
data/lib/ibanity.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2022-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|