cb-api 21.3.1 → 21.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -0
- data/lib/cb/utils/validator.rb +1 -1
- data/lib/cb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b3d3467a541fe01fbf677fa7c6c21b6dc1e7530
|
4
|
+
data.tar.gz: f312799f899a88f53a5bb1b62ea5a8100fdedf6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1425f28549f07ce7e5c2bc59a7de9baab6f4163b64c54644fdaae821fedc8acf8d78c0c4a37b85148b2b5c9e66674d8b05f12db70785b6397201240a7f067f64
|
7
|
+
data.tar.gz: 1aefdd8c9981287f2e361ae7ef7c8fb87beb4cc7b1048c4c062e47919c6011e6ce02121b6d87b0027f8b922aa16fed9dc283027e6f73a730236a371e5ee7264b
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,7 @@ Version History
|
|
2
2
|
====
|
3
3
|
* All Version bumps are required to update this file as well!!
|
4
4
|
----
|
5
|
+
* 21.3.2 Follow style guide more closely and use `.first` + return empty string when no errors node
|
5
6
|
* 21.3.1 Add error message to error raised from API
|
6
7
|
* 21.3.0 Add better error message to MissingRequiredField error in api_response
|
7
8
|
* 21.2.0 Add User Profile API (/consumer/user-profile)
|
data/lib/cb/utils/validator.rb
CHANGED
@@ -32,7 +32,7 @@ module Cb
|
|
32
32
|
|
33
33
|
def fail_with_error_details(response, error_type)
|
34
34
|
processed_response = process_response_body(response)
|
35
|
-
error_message = processed_response['errors'] ? processed_response['errors']
|
35
|
+
error_message = processed_response['errors'] ? processed_response['errors'].first : ''
|
36
36
|
error = error_type.new(error_message)
|
37
37
|
error.code = response.code rescue nil
|
38
38
|
error.raw_response = response
|
data/lib/cb/version.rb
CHANGED