uffizzi_core 0.4.1 → 0.4.2

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: 5a6a5a5e07ef682bca2fc1b22a628cc093282f720f3a98a18ee290d84a05c5fc
4
- data.tar.gz: 50e1ec427b2cd4227f357b57707f9151edb2e2db62a77ee8e7f149652bd66e7d
3
+ metadata.gz: c77ce0a84cac9c658e95ca303c65b90bed161bdd6c588c18a126dab2e58175ab
4
+ data.tar.gz: b8c916fd4b1beaf5354d1e4dda147e38d5b4431e7ec0feea880cf36041a445d4
5
5
  SHA512:
6
- metadata.gz: 0b69cbdcaa12a2800e80f5f6784813333b88fffbc1df28792cbc1c07ed78a6ba6e4ee0d7a38372db46ae99d22be36d2ef88377158145829ea2153901542f5f00
7
- data.tar.gz: e121d4b060d698b4d3e07256ce7a977ec14d62a727ebd5ed9127b66d4a74ee4d29bf22327084573ae13b6d25d9a2111276610644d1f61fbb078dfa4ef01859a3
6
+ metadata.gz: 0f1d7cc3cea3c4fda4615d67d8606bd122997ed96260f595358d5942c58222a3c38814466d7c3c6b7005eeaec77cb81bc48436bcff1c73228c0b6354d2897c49
7
+ data.tar.gz: f9ca337c51fffd381a7c53744e59e60917ecd541fafd63cd94b5a5618dd5f32eab8f70cc6fbe6c153765eb47dbb9011875b5a45efd5882794fc5d6616e10076c
@@ -38,9 +38,13 @@ class UffizziCore::DeploymentService
38
38
 
39
39
  ActiveRecord::Base.transaction do
40
40
  deployment.containers.destroy_all
41
- deployment.compose_file.destroy! if deployment.compose_file.kind.temporary?
41
+ deployment.compose_file.destroy! if deployment.compose_file&.kind&.temporary?
42
42
 
43
- deployment.update!(containers: deployment_form.containers, compose_file_id: compose_file.id)
43
+ deployment.update!(
44
+ containers: deployment_form.containers,
45
+ compose_file_id: compose_file.id,
46
+ creation_source: UffizziCore::Deployment.creation_source.compose_file_manual,
47
+ )
44
48
  end
45
49
 
46
50
  deployment
@@ -304,7 +308,10 @@ class UffizziCore::DeploymentService
304
308
  subdomain_length_limit = Settings.deployment.subdomain.length_limit
305
309
  return rfc_subdomain if rfc_subdomain.length <= subdomain_length_limit
306
310
 
307
- rfc_subdomain.slice(0, subdomain_length_limit)
311
+ sliced_subdomain = rfc_subdomain.slice(0, subdomain_length_limit)
312
+ return sliced_subdomain.chop if sliced_subdomain.end_with?('-')
313
+
314
+ sliced_subdomain
308
315
  end
309
316
  end
310
317
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '0.4.1'
4
+ VERSION = '0.4.2'
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: 0.4.1
4
+ version: 0.4.2
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-08-09 00:00:00.000000000 Z
12
+ date: 2022-08-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm