uffizzi_core 2.0.11 → 2.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/services/uffizzi_core/deployment_service.rb +5 -1
- data/lib/uffizzi_core/version.rb +1 -1
- 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: 352dbfb965c5537169fbbbede79df00a53512ca9ff28fb0eede1e8672b6418d4
|
4
|
+
data.tar.gz: 16fd3f6783221058b6f201f0ad248e36ab107b3a9fbda4218321f5e0e0df3fdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac68d290750a09f4ca25838d1e295dcb83cf5fba91357e05d5f3eb5e4e4fdb8e5d3a7de8e8e6297fb6b4b36d99573ef16f63d6cafbaa549348525a28257612a6
|
7
|
+
data.tar.gz: 53686fbbce8978dae4334155371421373e074c024827cb3903c8f71d64c40660d4d39b54b79d39ac1d5d266199e5e7d4c6c80b435a58b136cfa32b9850edffcd
|
@@ -100,7 +100,7 @@ class UffizziCore::DeploymentService
|
|
100
100
|
repo_name, pull_request_number = pull_request_data(deployment)
|
101
101
|
raise UffizziCore::Deployment::LabelsNotFoundError if repo_name.nil? || pull_request_number.nil?
|
102
102
|
|
103
|
-
formatted_repo_name = repo_name.split('/').last.downcase
|
103
|
+
formatted_repo_name = format_url_safe(repo_name.split('/').last.downcase)
|
104
104
|
subdomain = "pr-#{pull_request_number}-#{name(deployment)}-#{formatted_repo_name}"
|
105
105
|
format_subdomain(subdomain)
|
106
106
|
end
|
@@ -309,5 +309,9 @@ class UffizziCore::DeploymentService
|
|
309
309
|
|
310
310
|
[gitlab_data['repo'], gitlab_data.dig('merge_request', 'number')]
|
311
311
|
end
|
312
|
+
|
313
|
+
def format_url_safe(name)
|
314
|
+
name.gsub(/ /, '-').gsub(/[^\w-]+/, '-')
|
315
|
+
end
|
312
316
|
end
|
313
317
|
end
|
data/lib/uffizzi_core/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uffizzi_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Thurman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-11-
|
12
|
+
date: 2022-11-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aasm
|