gitlab_support_readiness 1.0.21 → 1.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/support_readiness/zendesk/themes.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6388080e42263c0ad426f97669455b9ef2802560180bbf48a58a3221029dc16
|
4
|
+
data.tar.gz: 1941b7ec7ba364c122de4174f54409afa957a1c78197a05105b858c33fb40897
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43918e587e8c0af7542757cd755616fb7996bd6a8d41240f56d2a799818ad9d72dff1fae7f6440acc65d22f58cc0285395b12cfc58dd3a4abdbc16f79051a7cc
|
7
|
+
data.tar.gz: 74337d8cf6f2492eb42ffe220be472ac404fb419a7184efbde9cd2170069cd899052ab149536e7042aeeabff3b4d52c34dfadf468fbb26a21b208db732c89876
|
@@ -209,7 +209,7 @@ module Readiness
|
|
209
209
|
# @since 1.0.12
|
210
210
|
# @param client [Object] An instance of {Readiness::Zendesk::Client}
|
211
211
|
# @param theme [Object] An instance of {Readiness::Zendesk::Themes}
|
212
|
-
# @return [
|
212
|
+
# @return [Hash] An instance of {Readiness::Zendesk::ThemeJobStatuses}
|
213
213
|
# @example
|
214
214
|
# require 'support_readiness'
|
215
215
|
# config = Readiness::Zendesk::Configuration.new
|
@@ -233,7 +233,7 @@ module Readiness
|
|
233
233
|
}
|
234
234
|
response = client.connection.post 'guide/theming/jobs/themes/imports', object.to_json
|
235
235
|
handle_request_error(1, 'Zendesk', response.status, { action: 'Create theme import job', id: theme.name }) unless response.status == 202
|
236
|
-
|
236
|
+
Oj.load(response.body)['job']
|
237
237
|
end
|
238
238
|
|
239
239
|
##
|
@@ -259,10 +259,10 @@ module Readiness
|
|
259
259
|
# pp job.id
|
260
260
|
# # => "a66e7bde543c6b6d018f0e07a654feaf"
|
261
261
|
def self.upload!(client, job, file)
|
262
|
-
object = job
|
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
|
265
|
+
response = client.upload_connection.post job['data']['upload']['url'], object.to_json
|
266
266
|
ThemeJobStatuses.find!(client, job.id)
|
267
267
|
end
|
268
268
|
|