gitlab_support_readiness 1.0.92 → 1.0.93
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/gitlab/projects.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 710aadd328be6b90bbde373f19ebe37ad8089aac5edf48b7515c155a80a08460
|
4
|
+
data.tar.gz: 5ab1fffc4616ed8ed02d5b243b845f0d060524e17a8cba9a893eb30d355abd34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
11
|
+
date: 2025-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|