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 +8 -8
- data/lib/fat_zebra/gateway.rb +4 -2
- data/lib/fat_zebra/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDJhZWQ1OWM3ZmNmNWMzMjA0M2FmNDE0MDlhY2Q1MWUxOWMwZWU1NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NThkMWRhM2JhODk4M2Q1YjI4NzgwZmQ5M2YyMmM5MWFiZTA0MDdlYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjM0MTc3YjI0NDRjZTBlZTA1ZDQzMDZhOTZkZDU3MTY4YmVjZDNlNzI5MjZj
|
10
|
+
OWYyOGZhY2U3ZjQ0ODlmOTZkMWQ2ZmI1ODg2NDU1ZTIxNzMyYWVmZTI0ZDY1
|
11
|
+
ZDA0ZjJiMTQ5MDVkMmNiZGMxZWQwMmFhZDZhODU3NzliMzg0MTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDZmZGYzMzlkYzFkNmQ3OTMwZTFlZDE2ZTllY2M4N2QyNTQ0NmNiYTRmYzIz
|
14
|
+
Y2E0MzMxNmRjYjg0YzJhZTdiOTlhMDk2NjRjZTA5YmU2ZWJlMDliOTVkYTFl
|
15
|
+
ZTI5ZGNlMjQzNzAxNDhjMWNhMTQyZTBhODI0NTk5YTdiOGYyY2E=
|
data/lib/fat_zebra/gateway.rb
CHANGED
@@ -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
|
266
|
+
raise RequestError, "Requested Resource not found"
|
265
267
|
when 500
|
266
|
-
raise RequestError, "Server Error, please check
|
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
|
data/lib/fat_zebra/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2015-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|