gitlab_support_readiness 1.0.23 → 1.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 847be3a76e2b97282982ea3e03c350686c447317783e74e04b8d0454a9fe6cac
4
- data.tar.gz: 412e39c9c79fdcdb52db657e8ea768c43ef7f45aa8a130e4d55cb0685d8b7b53
3
+ metadata.gz: fdc5dedf37eb02765397926f466d0389d4f79efec6755aa965f30f8f218476e4
4
+ data.tar.gz: 901299ee3b88515e0346baf5339da8f832a8785b6ac57ae84837e8d621a1f82d
5
5
  SHA512:
6
- metadata.gz: a535d8526272a3c1955febd339306a2457e5c2f988633529c2c7770e699cdcf95237fc5393993becdf2172e9df0248cc3214d0d30aec3a58e7e6fd0338025631
7
- data.tar.gz: 21b8bd271e01a06de1c9655096f942ec62b24d8b0e74b49c8422d063195bba5ae0ee701151fc850dd8e35d7b924db2a0ec5ef035172bef9997253fc869f094f2
6
+ metadata.gz: 71b56a8517d065bf6a3f86d0fe1031801e940ad254393b4b154e8743c0d75673238e96f3a985063a6a0a76c1c24a79321ab8653ae66c87e4fe825f54c5f22dd1
7
+ data.tar.gz: 25d39758a44cd96e65d90e0983fff98082508da4d3264a4d2ed784b3c3723a1451431519f9f5f26d02bea5b1a0d722cd202003428d8e07454b8a5ced639d0750
@@ -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
 
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.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Colyer