gitlab_support_readiness 1.0.23 → 1.0.24
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdc5dedf37eb02765397926f466d0389d4f79efec6755aa965f30f8f218476e4
|
4
|
+
data.tar.gz: 901299ee3b88515e0346baf5339da8f832a8785b6ac57ae84837e8d621a1f82d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71b56a8517d065bf6a3f86d0fe1031801e940ad254393b4b154e8743c0d75673238e96f3a985063a6a0a76c1c24a79321ab8653ae66c87e4fe825f54c5f22dd1
|
7
|
+
data.tar.gz: 25d39758a44cd96e65d90e0983fff98082508da4d3264a4d2ed784b3c3723a1451431519f9f5f26d02bea5b1a0d722cd202003428d8e07454b8a5ced639d0750
|
@@ -77,7 +77,9 @@ module Readiness
|
|
77
77
|
def self.find!(client, jid)
|
78
78
|
response = client.connection.get("guide/theming/jobs/#{jid}")
|
79
79
|
handle_request_error(1, 'Zendesk', response.status, { action: 'Find theme job status', id: jid }) unless response.status == 200
|
80
|
-
ThemeJobStatuses.new(Oj.load(response.body))
|
80
|
+
status = ThemeJobStatuses.new(Oj.load(response.body)['job'])
|
81
|
+
status.id = jid if status.id.nil?
|
82
|
+
status
|
81
83
|
end
|
82
84
|
|
83
85
|
##
|
@@ -262,7 +262,7 @@ module Readiness
|
|
262
262
|
object = job['data']['upload']['parameters'].merge(
|
263
263
|
file: ::Faraday::UploadIO.new(file, 'application/zip')
|
264
264
|
)
|
265
|
-
response = client.upload_connection.post job['data']['upload']['url'], object
|
265
|
+
response = client.upload_connection.post job['data']['upload']['url'], object
|
266
266
|
ThemeJobStatuses.find!(client, job['id'])
|
267
267
|
end
|
268
268
|
|