semaphore_client 2.5.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/semaphore_client/exceptions.rb +3 -1
- data/lib/semaphore_client/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: ea367bad5bf63a2fb367feecccda015e8c69f4c8
|
4
|
+
data.tar.gz: 1a3205112ff51dd8ecdb2ca14a9347396041526c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae7f047f3eb3969c1ccfc90c17a670fff0b4c151ec690ecd7d5f37961749627afeb3908144bd1bbc92bf7486a4630d5e462872210064aca51f2533d0be52813e
|
7
|
+
data.tar.gz: 61b11722e92077a0510c381e124d518bdccb02823cb304b1df312708373140a18b9b82efcb2a5a44bc88c40abc3c7ef627c2ff6a7c0d9e4149e316f93e525999
|
data/Gemfile.lock
CHANGED
@@ -34,7 +34,9 @@ class SemaphoreClient
|
|
34
34
|
# 422
|
35
35
|
class UnprocessableEntity < ResponseError
|
36
36
|
def errors
|
37
|
-
JSON.parse(@env[:body])["
|
37
|
+
JSON.parse(@env[:body])["errors"].map do |error|
|
38
|
+
ApiError.new(error["resource"], error["field"], error["code"])
|
39
|
+
end
|
38
40
|
end
|
39
41
|
end
|
40
42
|
|