uffizzi_core 2.0.24 → 2.0.25

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: a8aafbb5ee5ef2caafb70db7078d6705266858e0f963b8cad7f8d95eae435fbf
4
- data.tar.gz: a8cb20e5027724a8fbb374ca6648c3dd28b92f00de8454ecd3e0af58975d254f
3
+ metadata.gz: aa7005a5115382ee954986597b0deaf564a5982ce41f8fdffd3724c4d1a1a677
4
+ data.tar.gz: f051ca13a33f8aa04a884606b9e3c937c953dccfa5abc67ade1b9021b9667487
5
5
  SHA512:
6
- metadata.gz: 3311070210f6022ac352a003785c871b78ef65e58ddf6e7f614e5d9f1aab3927b1a5fd862ae62cfdbafb23d36655dd03162691ed01cd4e10d97332db3eb4e490
7
- data.tar.gz: 792fe71fb5fc50a5e2543b059ba8bfd017c93f5a955c77d7499b7fb3b77e816580ac0a235a68bfe0405b3f7c785c1cac846214675a26a95b0ad55f2fb26c3d7a
6
+ metadata.gz: 4b39d25336b04cee50b41df36552c5b911999e1a1db796a47c39fa9b65ebc467ff8b62daf343d873f3b4db5f22c77780c35cdd16d543b8aa5b99c4bc397e1a8c
7
+ data.tar.gz: ad8187b28f881fb4013bccd56b6eda7cf49ecfc553028cb6c75b8bb0552bc434a83c3e0c4b0ba83f13d90d82f3affadd38a93f7cd28aa3641266dfcb639cee9f
@@ -20,7 +20,7 @@ module UffizziCore::Concerns::Models::ComposeFile
20
20
  has_many :host_volume_files, dependent: :destroy
21
21
  has_many :deployments, dependent: :nullify
22
22
 
23
- enumerize :kind, in: [:main, :temporary], predicates: true, scope: :shallow, default: :main
23
+ enumerize :kind, in: UffizziCore.compose_file_kinds, predicates: true, scope: :shallow, default: :main
24
24
 
25
25
  validates :source, presence: true
26
26
  validate :main_compose_file_uniqueness, on: :create, if: -> { kind.main? }
@@ -27,7 +27,7 @@ module UffizziCore::Concerns::Models::Deployment
27
27
 
28
28
  validates :kind, presence: true
29
29
 
30
- enumerize :creation_source, in: [:manual, :continuous_preview, :compose_file_manual, :compose_file_continuous_preview],
30
+ enumerize :creation_source, in: [:manual, :demo, :continuous_preview, :compose_file_manual, :compose_file_continuous_preview],
31
31
  predicates: true, scope: true, default: :manual
32
32
 
33
33
  accepts_nested_attributes_for :containers, allow_destroy: true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '2.0.24'
4
+ VERSION = '2.0.25'
5
5
  end
data/lib/uffizzi_core.rb CHANGED
@@ -64,4 +64,5 @@ module UffizziCore
64
64
  mattr_accessor :user_creation_sources, default: [:system, :online_registration, :google, :sso]
65
65
  mattr_accessor :user_project_roles, default: [:admin, :developer, :viewer]
66
66
  mattr_accessor :account_sources, default: [:manual]
67
+ mattr_accessor :compose_file_kinds, default: [:main, :temporary]
67
68
  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.24
4
+ version: 2.0.25
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-01-20 00:00:00.000000000 Z
12
+ date: 2023-01-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm