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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ac5cbb03de328e4bec9581e0e6ddcd65876de9708427bc95c2a793100e93355
4
- data.tar.gz: 159d9e4823dbad2b62579c9adf0a69a1e015e234388c300d898585d8fdfc493a
3
+ metadata.gz: c6388080e42263c0ad426f97669455b9ef2802560180bbf48a58a3221029dc16
4
+ data.tar.gz: 1941b7ec7ba364c122de4174f54409afa957a1c78197a05105b858c33fb40897
5
5
  SHA512:
6
- metadata.gz: 190e8d238e72846abf8d103cc4c24c6dd17d67f93a9204996bc64489bf01bf9c1e41d15cf96a3d57f760f27f8015620d9447dcdd4c16bee868acf1acaf932da8
7
- data.tar.gz: 0f3ccceec4f67d4107d276835b601cf5255f9cdd842847e4453567b5c9c5d34c626ff6609617f3afe35b5022652bd2d1ff40bfde271e63fd3c967dcc83b0554b
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 [Object] An instance of {Readiness::Zendesk::ThemeJobStatuses}
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
- ThemeJobStatuses.new(Oj.load(response.body)['job'])
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.data['upload']['parameters'].merge(
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.to_json
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_support_readiness
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.21
4
+ version: 1.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Colyer