fat_zebra 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Yzk4NjUxZWMxMTVkZDA0ZGI4MThiYzQwY2U1MWFhNzMzZTg0YTcyMw==
4
+ MDJhZWQ1OWM3ZmNmNWMzMjA0M2FmNDE0MDlhY2Q1MWUxOWMwZWU1NQ==
5
5
  data.tar.gz: !binary |-
6
- MTNiM2ZkNGYyOTU4OWRjZDFiOGI3MjljY2E1MmFlMmRhYWY0YTg2Mw==
6
+ NThkMWRhM2JhODk4M2Q1YjI4NzgwZmQ5M2YyMmM5MWFiZTA0MDdlYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OGYxOGI1ZDAxMWI4ODVlZDI5OWRiZmVjZDFiOTA0Yzk2NTY5Y2M1ZTk4YTIz
10
- MTdjOWViMmFlMTJhN2ZiZDg4MDM5MWYwMzA1Nzg4Mzg3YjhmNjY4MzhlZDgw
11
- ZGVhODM0M2NjODk5ZTZjZjFhZjgwNmJkMzAyZDY4YjVmNjBiNTY=
9
+ YjM0MTc3YjI0NDRjZTBlZTA1ZDQzMDZhOTZkZDU3MTY4YmVjZDNlNzI5MjZj
10
+ OWYyOGZhY2U3ZjQ0ODlmOTZkMWQ2ZmI1ODg2NDU1ZTIxNzMyYWVmZTI0ZDY1
11
+ ZDA0ZjJiMTQ5MDVkMmNiZGMxZWQwMmFhZDZhODU3NzliMzg0MTY=
12
12
  data.tar.gz: !binary |-
13
- MDk0MWY4MzRjMmM1M2RjYmFlYmExMjg1OTBiOGNkNTZiYzk2ODMyY2NhMzkw
14
- MmExNDk5ZjdjNDJlY2UzYWQ0YTk3Y2VmMmQ4ODgwN2ViMzAwZDJkN2Y4YzIw
15
- YmFkNmE3ZWMwZjAyMGNkMjJiNWEzZGQ2OGE1ODRiNWE0YjFhZWE=
13
+ NDZmZGYzMzlkYzFkNmQ3OTMwZTFlZDE2ZTllY2M4N2QyNTQ0NmNiYTRmYzIz
14
+ Y2E0MzMxNmRjYjg0YzJhZTdiOTlhMDk2NjRjZTA5YmU2ZWJlMDliOTVkYTFl
15
+ ZTI5ZGNlMjQzNzAxNDhjMWNhMTQyZTBhODI0NTk5YTdiOGYyY2E=
@@ -256,14 +256,16 @@ module FatZebra
256
256
  JSON.parse(response)
257
257
  when 200
258
258
  JSON.parse(response)
259
+ when 422
260
+ JSON.parse(response)
259
261
  when 400
260
262
  raise RequestError, "Bad Data"
261
263
  when 401
262
264
  raise RequestError, "Unauthorized, please check your username and token"
263
265
  when 404
264
- raise RequestError, "Requested URL not found"
266
+ raise RequestError, "Requested Resource not found"
265
267
  when 500
266
- raise RequestError, "Server Error, please check https://www.fatzebra.com.au"
268
+ raise RequestError, "Server Error, please check with Gateway"
267
269
  when 501
268
270
  raise RequestError, "Problem processing your request - please check your data"
269
271
  end
@@ -1,3 +1,3 @@
1
1
  module FatZebra
2
- VERSION = "2.0.4"
2
+ VERSION = "2.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fat_zebra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Savage
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-03 00:00:00.000000000 Z
11
+ date: 2015-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec