d4h_api 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/d4h/api/resource.rb +5 -1
- data/lib/d4h/api/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b61a4f54b1269b7c89ec9575be26669fc431e8d4c70cb5ade3c35f4d621f77a
|
|
4
|
+
data.tar.gz: 59a7a03c6c6ae5f5cd21e2cefecfa6ada0db1b4d0471684b08d06c4df49ff09d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0d5006a8ed5c1d103527c574a20dff9c0bbddab86ccc9a681c4565185a91afca8ded0743d5737a1ca43d494eb0f198aa568949d5af721034c4477568d101a4d2
|
|
7
|
+
data.tar.gz: c0f26f4892cdf6705ff35bcde75c91954ff462bbdd07074db563b8761126390a8de732a5b9b66e499abea2588ff9fab2d8245047b83e59ac5c23294fe741aef9
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/d4h/api/resource.rb
CHANGED
|
@@ -128,7 +128,11 @@ module D4H
|
|
|
128
128
|
return response if (200..299).cover?(response.status)
|
|
129
129
|
|
|
130
130
|
body = response.body || {}
|
|
131
|
-
|
|
131
|
+
parts = [body["title"], body["detail"], body["error"], body["message"]].compact.uniq
|
|
132
|
+
if (issues = body.dig("detailObj", "data", "issues"))
|
|
133
|
+
issues.each { |issue| parts << "#{issue["path"]&.join(".")}: #{issue["message"]}" }
|
|
134
|
+
end
|
|
135
|
+
message = parts.join(": ")
|
|
132
136
|
|
|
133
137
|
raise RetriableError, message if Client::RETRIABLE_STATUSES.include?(response.status)
|
|
134
138
|
|
data/lib/d4h/api/version.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|