gitlab_support_readiness 1.0.23 → 1.0.25
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: 4ab21d2be7f89338471a03f2646613b3b7f173bb687dde03e7bb925d11c28d35
|
4
|
+
data.tar.gz: ba65dee2b2278ab90ddcb2d20ee6e20332b66c3aea28f72f1e552230b8037da4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7d8737d99bf51afcfd919103a5d0d6a52aa8199a34a073f006c23e142f9a5e325e56e462c6adc82da4bb84d30d4379239fc744b47a628acae6a45b38b545704
|
7
|
+
data.tar.gz: 8248245a1bc184d33b794d88451c3395a1760bdda62cd4f4568afd971bb9cc812a3d9c04cbca2b4eca5ab522744a2e09afa62b31f9966ddde29ff265c449aa9c
|
@@ -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
|
|
@@ -343,7 +343,7 @@ module Readiness
|
|
343
343
|
# pp delete
|
344
344
|
# # => true
|
345
345
|
def self.delete!(client, theme)
|
346
|
-
response = client.connection.delete "guide/
|
346
|
+
response = client.connection.delete "guide/theming/themes/#{theme.id}"
|
347
347
|
handle_request_error(1, 'Zendesk', response.status, { action: 'Delete a theme', id: theme.id, message: Oj.load(response.body)}) unless response.status == 204
|
348
348
|
true
|
349
349
|
end
|