gitlab_support_readiness 1.0.23 → 1.0.25

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: 847be3a76e2b97282982ea3e03c350686c447317783e74e04b8d0454a9fe6cac
4
- data.tar.gz: 412e39c9c79fdcdb52db657e8ea768c43ef7f45aa8a130e4d55cb0685d8b7b53
3
+ metadata.gz: 4ab21d2be7f89338471a03f2646613b3b7f173bb687dde03e7bb925d11c28d35
4
+ data.tar.gz: ba65dee2b2278ab90ddcb2d20ee6e20332b66c3aea28f72f1e552230b8037da4
5
5
  SHA512:
6
- metadata.gz: a535d8526272a3c1955febd339306a2457e5c2f988633529c2c7770e699cdcf95237fc5393993becdf2172e9df0248cc3214d0d30aec3a58e7e6fd0338025631
7
- data.tar.gz: 21b8bd271e01a06de1c9655096f942ec62b24d8b0e74b49c8422d063195bba5ae0ee701151fc850dd8e35d7b924db2a0ec5ef035172bef9997253fc869f094f2
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.to_json
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/themeing/themes/#{theme.id}"
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
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.23
4
+ version: 1.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Colyer