defra_ruby_govpay 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/defra_ruby_govpay/api.rb +3 -3
- data/lib/defra_ruby_govpay/version.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: 2decfa9d321b4886b2c4aa340730cc04e315318a94df1c1b31ecc4219f1efe1e
|
4
|
+
data.tar.gz: 5dc7af54e47bf042414ff1f730eb6d2f2444e35c917d68ecca24f3c251116a1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ebef882ca7c22536dd057a6b9117055d0dfee7f82208b2d65f57d142a26e7650941da1c8c3fbc8e4f91eac345ae4fa2e0d9da264d36a6c0494443e7709b4593
|
7
|
+
data.tar.gz: 126ae4b0e31d66d9ab9a206174da49bc606a84e58d67c67b71b60c0b8108d6aa02aef3bf246dce20f87e471323127fcc77d007dcf0bddc16cabd56c582622304
|
@@ -22,11 +22,11 @@ module DefraRubyGovpay
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def send_request(method:, path:, params: nil, is_moto: false)
|
25
|
-
|
25
|
+
Rails.logger.info build_log_message(method, path, params, is_moto)
|
26
26
|
|
27
27
|
begin
|
28
28
|
response = execute_request(method, path, params, is_moto)
|
29
|
-
|
29
|
+
Rails.logger.info "Received response from Govpay: #{response}"
|
30
30
|
response
|
31
31
|
rescue StandardError => error
|
32
32
|
handle_error(error, method, path, params)
|
@@ -53,7 +53,7 @@ module DefraRubyGovpay
|
|
53
53
|
|
54
54
|
def handle_error(error, method, path, params)
|
55
55
|
error_message = "Error sending request to govpay (#{method} #{path}, params: #{params}): #{error}"
|
56
|
-
|
56
|
+
Rails.logger.info error_message
|
57
57
|
raise GovpayApiError, error_message
|
58
58
|
end
|
59
59
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: defra_ruby_govpay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jerome Pratt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|