bunq-client 0.2.0 → 0.3.0

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
  SHA256:
3
- metadata.gz: f43869cbdc6e1d596f972aac0752ca7ed25fe6884814ea592a7e34e97fae6948
4
- data.tar.gz: 38a49c91d8e233921b8d21b1e5852e01acfff630157abe0dd3bfa4f715f4a10f
3
+ metadata.gz: 223d75a61a8e2175a424b034343ed91e7e59c0c372f1f5a2d40d6554e8549e67
4
+ data.tar.gz: f049a79d1fe5bf45573c5f86bfad370e7c29105262084fc154da49067d007b72
5
5
  SHA512:
6
- metadata.gz: a853e3ae7694c1bfb5a41aa735c4942ff015c8614602f6efd45d9a9aa08300ee1e89da4ad2ff3f354d82ef4ba519f10229badd1338dd9730d61ec8d8b2cb475d
7
- data.tar.gz: ac8ee43d4bb61f30ce45937b7b90af82087cccd0d248396d27decdcbcdfae6584f4bf40f5c434135cc9ac7d248ebafdd9f44039557d59a433b8124ab1a06e4d2
6
+ metadata.gz: 9af617dd19d60bdcd4882d735f82bc891a3d51ffbea1070bc050c276bcd9a0cac3b6b0c3ead27662352b3381ff14c259a1cfc41daed7b71b55640f27221c24a1
7
+ data.tar.gz: caecec27519fe2c211345d26f76f1fec68a33198b392143b845b3281a81743fdfcdbf1de081434c45d7d59c0c497fd3c4c07e6f61cdedd4b70147f76c6dd46b6
@@ -29,5 +29,6 @@ module Bunq
29
29
  class AbsentResponseSignature < ResponseError; end
30
30
  class TooManyRequestsResponse < ResponseError; end
31
31
  class UnauthorisedResponse < ResponseError; end
32
+ class ResourceNotFound < ResponseError; end
32
33
  class Timeout < StandardError; end
33
34
  end
@@ -118,6 +118,8 @@ module Bunq
118
118
  fail TooManyRequestsResponse.new(code: response.code, headers: response.raw_headers, body: response.body)
119
119
  elsif response.code == 401
120
120
  fail UnauthorisedResponse.new(code: response.code, headers: response.raw_headers, body: response.body)
121
+ elsif response.code == 404
122
+ fail ResourceNotFound.new(code: response.code, headers: response.raw_headers, body: response.body)
121
123
  else
122
124
  fail UnexpectedResponse.new(code: response.code, headers: response.raw_headers, body: response.body)
123
125
  end
@@ -1,3 +1,3 @@
1
1
  module Bunq
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bunq-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lars Vonk
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2019-06-03 00:00:00.000000000 Z
14
+ date: 2019-06-06 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rest-client