trailer_vote-api 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/trailer_vote/api/errors.rb +2 -2
- data/lib/trailer_vote/api/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: 0dec7c6d2ed054f4a4de949d17ed409a853f5b13
|
4
|
+
data.tar.gz: c3ff5c5256e8864a2be2c1a2a117ad27bb932fde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 948362c2f320ad48c44624f28058c2dc3824fdf73812b0ec1c1cef6164b314edc9ef0ac4780c44615ef5a134362487e7e98cfbefc1c8a45a27bf888e4046c05e
|
7
|
+
data.tar.gz: 31d79b0516dc36264ca0f8ff595d81f32d2a654ee80a63a99aaab71c51cf427721a0cff665a3588eed04ba66f52d20e42e013ea8561fab42beacb23d55704c60
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -48,14 +48,14 @@ module TrailerVote
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def messages
|
51
|
-
data[
|
51
|
+
Array(data[:errors]).map { |error| error[:message] }.join(', ')
|
52
52
|
end
|
53
53
|
|
54
54
|
def data
|
55
55
|
@data ||= TrailerVote::Api.decode(result)
|
56
56
|
rescue DecodeError, UnknownMediaType
|
57
57
|
# noinspection RubyStringKeysInHashInspection
|
58
|
-
@data = {
|
58
|
+
@data = { errors: [{ message: result.status.reason }] }
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|