gitlab_support_readiness 1.0.21 → 1.0.23
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 +5 -5
- 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: 847be3a76e2b97282982ea3e03c350686c447317783e74e04b8d0454a9fe6cac
|
4
|
+
data.tar.gz: 412e39c9c79fdcdb52db657e8ea768c43ef7f45aa8a130e4d55cb0685d8b7b53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a535d8526272a3c1955febd339306a2457e5c2f988633529c2c7770e699cdcf95237fc5393993becdf2172e9df0248cc3214d0d30aec3a58e7e6fd0338025631
|
7
|
+
data.tar.gz: 21b8bd271e01a06de1c9655096f942ec62b24d8b0e74b49c8422d063195bba5ae0ee701151fc850dd8e35d7b924db2a0ec5ef035172bef9997253fc869f094f2
|
@@ -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,11 +259,11 @@ 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
|
266
|
-
ThemeJobStatuses.find!(client, job
|
265
|
+
response = client.upload_connection.post job['data']['upload']['url'], object.to_json
|
266
|
+
ThemeJobStatuses.find!(client, job['id'])
|
267
267
|
end
|
268
268
|
|
269
269
|
##
|