bunq-client 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bunq/resource.rb +1 -1
- data/lib/bunq/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be254960c8428aa33d20c3f8a46666d0d5a01b1e6a08749e0026d7aa8ef6c93d
|
4
|
+
data.tar.gz: a711a80bff07d74ea85f941aa1bd39b28c0241c26f753e09c9c336ea8f1701ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90e12c808f2675e307581c74de203fd31e09967caad14cd9c6636cbaed77b46d318e1408b0bce4863d70952fbf8dd83e45f9b5ad2a024994f4bd8d8384ef554f
|
7
|
+
data.tar.gz: 8036d1a337e605d3d396edbba2c0c4518dbc0602e478c09fe41e42d71615aaacfc64fcf7f6ccff202763358ce18be315aeb749fce94486ac38e36893efc84ae2
|
data/lib/bunq/resource.rb
CHANGED
@@ -118,7 +118,7 @@ module Bunq
|
|
118
118
|
end
|
119
119
|
elsif (response.code == 409 && Bunq.configuration.sandbox) || response.code == 429
|
120
120
|
fail TooManyRequestsResponse.new(code: response.code, headers: response.raw_headers, body: response.body)
|
121
|
-
elsif response.code
|
121
|
+
elsif [401, 403].include?(response.code)
|
122
122
|
fail UnauthorisedResponse.new(code: response.code, headers: response.raw_headers, body: response.body)
|
123
123
|
elsif response.code == 404
|
124
124
|
fail ResourceNotFound.new(code: response.code, headers: response.raw_headers, body: response.body)
|
data/lib/bunq/version.rb
CHANGED