gitlab_support_readiness 1.0.92 → 1.0.93

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: 8e1bb9e106c7315b3948c30aea40a2c71996207ee7634d42a038b98365ce3879
4
- data.tar.gz: e3ae654689797c2858906ba85ead2a827b96ad790b7420eb5f740f9dca98368f
3
+ metadata.gz: 710aadd328be6b90bbde373f19ebe37ad8089aac5edf48b7515c155a80a08460
4
+ data.tar.gz: 5ab1fffc4616ed8ed02d5b243b845f0d060524e17a8cba9a893eb30d355abd34
5
5
  SHA512:
6
- metadata.gz: f81a922e72e1e01418d998972953bdfd1a0bbdd3df1e48752d78b1870155dbfacc93c372a417bf86eec76e4f7e32e9beda4a0c262fc2e3cdfa32cb86d45d1eed
7
- data.tar.gz: d4112092e1db77c60d52e5d0908f7a16bf231d5868b90017510766a8055cf55026fe6cfd99360724987813217173e052d05cf58b020f00f439739020e425d06f
6
+ metadata.gz: c9eb9816acaa208ee8a7036037a13b2384f0de34c1198c1becd9fa674f5d35d64f5e8974ed250a8ed94a5e9c6594ae10e4f49e5a13a8f07b09f3ecefde488da8
7
+ data.tar.gz: 8cd5b9c2dc406c93c1707125dab200e621306797468d045d64c99f14cc4ed645246b82f421e50d1a3dac37eaab051bc68e3ba79a08136f0924aa5a525fb63c12
@@ -210,6 +210,9 @@ module Readiness
210
210
  # # => "https://gitlab.com/gitlab-com/support/support-team-meta"
211
211
  def self.find(client, pid, attributes = [])
212
212
  response = client.connection.get("projects/#{pid}?#{to_param_string(attributes)}")
213
+ if response.status == 301
214
+ response = client.connection.get("projects/#{response.body.split('/').last}?#{to_param_string(attributes)}")
215
+ end
213
216
  handle_request_error(0, 'GitLab', response.status, { action: 'get', id: pid }) unless response.status == 200
214
217
  return Projects.new(Oj.load(response.body)) if response.status == 200
215
218
 
@@ -236,6 +239,9 @@ module Readiness
236
239
  # # => "https://gitlab.com/gitlab-com/support/support-team-meta"
237
240
  def self.find!(client, pid, attributes = [])
238
241
  response = client.connection.get("projects/#{pid}?#{to_param_string(attributes)}")
242
+ if response.status == 301
243
+ response = client.connection.get("projects/#{response.body.split('/').last}?#{to_param_string(attributes)}")
244
+ end
239
245
  handle_request_error(1, 'GitLab', response.status, { action: 'Find project', id: pid }) unless response.status == 200
240
246
  Projects.new(Oj.load(response.body))
241
247
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_support_readiness
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.92
4
+ version: 1.0.93
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Colyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-03 00:00:00.000000000 Z
11
+ date: 2025-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport