iban-lookup 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/iban-lookup.rb +4 -2
- data/lib/iban-lookup/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7eb473f61dd21aa6decfbb12ea50cb3e715680ae
|
4
|
+
data.tar.gz: b64a0437e80827fbf34d4d8acabd7dc312babcca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4edbda7938bb4d0991fa1ab24db12a173a97a9764057748ed65f192f085ccab785c4372fbcfaa040567881d915873f68ec4e0de66e69a076507e675270ce584f
|
7
|
+
data.tar.gz: c791e6facceeb9a868837516ead15fdcfe47b5fc095684215cd0d47f6e6e6dfe3a0f5a9f047bb1207831b69584d4935a853fd8241d0e74248fd8cb456f9214c7
|
data/lib/iban-lookup.rb
CHANGED
@@ -60,7 +60,6 @@ module IbanLookup
|
|
60
60
|
response.body.presence
|
61
61
|
end
|
62
62
|
|
63
|
-
logger.debug "IBAN response: #{body}"
|
64
63
|
JSON.parse(body.presence || '{}')
|
65
64
|
end
|
66
65
|
rescue => e
|
@@ -70,7 +69,10 @@ module IbanLookup
|
|
70
69
|
end
|
71
70
|
|
72
71
|
def response
|
73
|
-
Faraday.get("#{URL.chomp('/')}/#{ENDPOINT.chomp('/')}?#{params.to_query}")
|
72
|
+
Faraday.get("#{URL.chomp('/')}/#{ENDPOINT.chomp('/')}?#{params.to_query}").tap do |res|
|
73
|
+
logger.debug "IBAN response status: #{res.status}"
|
74
|
+
logger.debug "IBAN response body: #{res.body}"
|
75
|
+
end
|
74
76
|
end
|
75
77
|
|
76
78
|
def cache
|
data/lib/iban-lookup/version.rb
CHANGED