uffizzi_core 2.1.19 → 2.1.20

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: ba797af235e97eb6e8a82885dfa26e5ef451333937c874c6aaa958bfdc128efc
4
- data.tar.gz: abbfad0cbba592e5230c2e2a5ac4ca4b2220e343a6ba36b770d52430a9836fb8
3
+ metadata.gz: cea91c9498c6599018ef40cc94a0008146ed9517739d64167fb19d73b1b40949
4
+ data.tar.gz: 81e29d9c451ee34794cff66a89bbbfb36d6a4ea29c7fb2da9e95d8f5aba67d66
5
5
  SHA512:
6
- metadata.gz: 6fa933fd65908f6313e68d5f91de1f5f4c7b99d946c9d6f486207677baee8f8518a266875d4cec4f5a95a39f40553595c1d5cd9290ffd37db8bcfa0e1d2fe61a
7
- data.tar.gz: 00bd7079d17e53872cf3ff6e3b1ffda37bd445f47930e85737bff4bd1990dcb0f9d286f76e7b027854c6bd4e063f74b3318e3057408904abaead27c627713e6d
6
+ metadata.gz: d584fea9409e2b99daf70fe98f3313f30620d08b112ae8797d8f7e245bac1ee3d98b9d0c4d050b957c410da1db7c714300c9d0f03638020b9206aac6a5856149
7
+ data.tar.gz: 0ffab94f8571e668b042738d24f027d818261fd9c6d896ac656baaf93555c43a029ecb5b30113e2ea991361323a88b67360e1af95218b5bff6375f4fdf5eb9ff
@@ -26,6 +26,9 @@ module UffizziCore::Concerns::Models::Deployment
26
26
  has_one :ingress_container, -> { where(receive_incoming_requests: true) }, class_name: UffizziCore::Container.name
27
27
  validates :kind, presence: true
28
28
 
29
+ enumerize :creation_source, in: [:manual, :demo, :continuous_preview, :compose_file_manual, :compose_file_continuous_preview,
30
+ :github_actions], predicates: true, scope: true, default: :manual
31
+
29
32
  accepts_nested_attributes_for :containers, allow_destroy: true
30
33
 
31
34
  after_destroy_commit :clean
@@ -21,7 +21,4 @@
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
27
24
  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::COMPOSE_FILE_MANUAL
22
+ deployment_form.creation_source = params[:creation_source] || UffizziCore::Deployment.creation_source.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.19'
4
+ VERSION = '2.1.20'
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.19
4
+ version: 2.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Thurman