curdbee 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/curdbee.gemspec +1 -1
- data/lib/curdbee/base.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
data/curdbee.gemspec
CHANGED
data/lib/curdbee/base.rb
CHANGED
@@ -62,7 +62,7 @@ module CurdBee
|
|
62
62
|
when 403
|
63
63
|
raise(CurdBee::Error::Forbidden.new(response), "Your action was forbidden.")
|
64
64
|
when 422
|
65
|
-
raise(CurdBee::Error::BadRequest.new(response), response.body)
|
65
|
+
raise(CurdBee::Error::BadRequest.new(response), JSON.parse(response.body).join(" "))
|
66
66
|
when 404
|
67
67
|
raise(CurdBee::Error::NotFound.new(response), "Resource not found.")
|
68
68
|
when 500
|