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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87cdaba8e373d94f9cb26dc3dcb997d3a9fe03e6073b0ed9f051f01817d42888
4
- data.tar.gz: cd4d760782ffdda75d6f03a61cc7c96df3bc369163444cf4b33d1c16d5b084aa
3
+ metadata.gz: 352dbfb965c5537169fbbbede79df00a53512ca9ff28fb0eede1e8672b6418d4
4
+ data.tar.gz: 16fd3f6783221058b6f201f0ad248e36ab107b3a9fbda4218321f5e0e0df3fdd
5
5
  SHA512:
6
- metadata.gz: 17e87a12097459db02a890b6a456a6f644bdb1aadb0843b2f6527e2f2c47b77bb5e180103035a2623047253b28656f8e868af7f5fa75d61a06ccb05327d3f4bd
7
- data.tar.gz: 26ae9224028cf8e7f8fbc40697df8481fa8579407f11d44d26ca237395feaec42bfa5668e2a8643bfc14c33992b27dbc3ca3471859eb6fee5617ee70a0e8dda6
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '2.0.11'
4
+ VERSION = '2.0.12'
5
5
  end
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.11
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-23 00:00:00.000000000 Z
12
+ date: 2022-11-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm