uffizzi_core 2.1.17 → 2.1.18

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: 4581c984a5b49487e44a090db8d04c38bf2dd9203926c7e5087596d1492fc691
4
- data.tar.gz: 41c7640b4bf9f855eafda79e05e057a45fb6f4951751bdde9e9e719017f2196d
3
+ metadata.gz: fd14a19fefa5a0eb7f004a65b25a5c4cb3c517c9a8c7c53248eb5ea510e4d543
4
+ data.tar.gz: 6f2ec4218d5f41aa53c5ce36eb94ad27c45770019be1ad84f979f67c3c02e416
5
5
  SHA512:
6
- metadata.gz: 99b3267e848c4c8e78210147e6954c9e8c5ef1a329ef82f37bef79b39a0d662cc6b599a5fbdc682743ad1cfee038971d74139aea283b0745b2950174b0b9530a
7
- data.tar.gz: 8c7d55bb0bc141b1eac76103f6f3b7f0ba80275501d322674451e73cee29f6ac14aa41cce4cdcca4f8992f425e6888c5354c01f952a6625616b814564c981f9a
6
+ metadata.gz: bb0253b21dab789cd8aa07d3d68bde5ef2936cfeff7294179356e96fbef558a432e69a58398425d858ac19c35bde5de7af703e5743d48e0364fd16592184a955
7
+ data.tar.gz: a6721ce9a827f50cb533159440c168372e6db339802a4b46564c2a608ce3fb1a9077dfc5c1651bd868ad87e7d18c45dbe9212230b7c16a267b9979e68b08e15d
@@ -24,12 +24,8 @@ module UffizziCore::Concerns::Models::Deployment
24
24
  has_many :activity_items, dependent: :destroy
25
25
 
26
26
  has_one :ingress_container, -> { where(receive_incoming_requests: true) }, class_name: UffizziCore::Container.name
27
-
28
27
  validates :kind, presence: true
29
28
 
30
- enumerize :creation_source, in: [:manual, :demo, :continuous_preview, :compose_file_manual, :compose_file_continuous_preview],
31
- predicates: true, scope: true, default: :manual
32
-
33
29
  accepts_nested_attributes_for :containers, allow_destroy: true
34
30
 
35
31
  after_destroy_commit :clean
@@ -21,4 +21,7 @@
21
21
 
22
22
  class UffizziCore::Deployment < UffizziCore::ApplicationRecord
23
23
  include UffizziCore::Concerns::Models::Deployment
24
+
25
+ const_set(:COMPOSE_FILE_MANUAL, :compose_file_manual)
26
+ validates :creation_source, presence: true
24
27
  end
@@ -19,7 +19,7 @@ class UffizziCore::DeploymentService
19
19
  deployment_form = UffizziCore::Api::Cli::V1::Deployment::CreateForm.new(deployment_attributes)
20
20
  deployment_form.assign_dependences!(project, user)
21
21
  deployment_form.compose_file = compose_file
22
- deployment_form.creation_source = params[:creation_source] || UffizziCore::Deployment.creation_source.compose_file_manual
22
+ deployment_form.creation_source = params[:creation_source] || UffizziCore::Deployment::COMPOSE_FILE_MANUAL
23
23
  deployment_form.metadata = params[:metadata] || {}
24
24
 
25
25
  run_deployment_creation_tasks(deployment_form) if deployment_form.save
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '2.1.17'
4
+ VERSION = '2.1.18'
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.1.17
4
+ version: 2.1.18
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: 2023-04-05 00:00:00.000000000 Z
12
+ date: 2023-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm