gitlab_support_readiness 1.0.29 → 1.0.30
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: '0132694da200650b9b8625d230027b145aabeb9695c02d246b68ac1a3e4e6de5'
|
4
|
+
data.tar.gz: 77725a7d0bbab15e1cd742e12e8c35ab0dd43aa8df4bc8dff3598e68eba0868f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9bc1371cafa0390616e3c447385056624dd4bd485c72e3aeb44d614d4e1cc2c13ee42d4f6045e0ffe92c21d719845de3b14b67a9924e69b7f0fcd854839405b
|
7
|
+
data.tar.gz: 3f3fe60ccc559390e6fbd8c39d142cec4c50784e65d154a663c5444c798407958007260626de0e5bb46f4bd67d34d32251a657a657bd845a0ae125bf69f41602
|
@@ -198,7 +198,7 @@ module Readiness
|
|
198
198
|
}
|
199
199
|
}
|
200
200
|
response = client.connection.post 'guide/theming/jobs/themes/updates', object.to_json
|
201
|
-
handle_request_error(1, 'Zendesk', response.status, { action: 'Upload
|
201
|
+
handle_request_error(1, 'Zendesk', response.status, { action: 'Upload theme', id: theme.id }) unless response.status == 200
|
202
202
|
ThemeJobStatuses.new(Oj.load(response.body)['job'])
|
203
203
|
end
|
204
204
|
|
@@ -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
|
266
|
+
ThemeJobStatuses.find!(client, job.id)
|
267
267
|
end
|
268
268
|
|
269
269
|
##
|