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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd38ea7ca08426d913991b0d6fbea26ba138e261
4
- data.tar.gz: 0f91455b6cd0991ec8c865ab529fd35f0daaf219
3
+ metadata.gz: 7eb473f61dd21aa6decfbb12ea50cb3e715680ae
4
+ data.tar.gz: b64a0437e80827fbf34d4d8acabd7dc312babcca
5
5
  SHA512:
6
- metadata.gz: 69931a317fc42510e03b321917c14bec3fbcf757f75d2c0c925649daffcacbc9b53745e9d00c6c6ea0c4123d31575f8b12e648aa2002b7623da6a7ff96a858b4
7
- data.tar.gz: b9783f39585bab9017840f566ad8842e7c9d5ed7063ed84c0ff1bce4dee439b792e3346ed46d68944b508a89543963ffbd8f1f2d441a9a67849cc87b7ca7e98d
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
@@ -1,5 +1,5 @@
1
1
  module Iban
2
2
  module Lookup
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iban-lookup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Kampp