unleashed 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/unleashed/error.rb +1 -1
- data/lib/unleashed/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5d6367c6d29e0b8c1e9034e5537a26450fd37cc321f8fe566a8a802ab12509d
|
4
|
+
data.tar.gz: 21dbff509f3bbb40c1dd98ee4014881461c52b626a2ee235b0367c5cdf706557
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ef8902ad1494b3de7148f24a80211ab8f55d1e89af2984a422d70caad0a8557c7abf3cf2063fa4ea390dc3dc8e5661ec3648a8217df3413140274fdbc2b72e0
|
7
|
+
data.tar.gz: bc6c05cbf0232a4c9e957104865e86a0c437abc37245898321971cf7924d8ddcb3fd12ae8c22a3eb7e355d6304b4bf12fa240dcdadfac7fe26125248000a9965
|
data/lib/unleashed/error.rb
CHANGED
@@ -42,7 +42,7 @@ module Unleashed
|
|
42
42
|
else
|
43
43
|
json_response = JSON.parse(@response.body)
|
44
44
|
message = ''
|
45
|
-
message << json_response['
|
45
|
+
message << json_response['description'] if json_response.key?('description')
|
46
46
|
|
47
47
|
if json_response.key?('errors')
|
48
48
|
message << json_response['errors'].map { |attribute, content| "#{attribute}: #{content}" }.join(', ')
|
data/lib/unleashed/version.rb
CHANGED