uffizzi_core 2.1.11 → 2.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/lib/uffizzi_core/concerns/models/membership.rb +15 -0
- data/app/repositories/uffizzi_core/membership_repo.rb +1 -0
- data/app/services/uffizzi_core/container_registry/azure_service.rb +2 -0
- data/app/services/uffizzi_core/container_registry/docker_registry_service.rb +2 -0
- data/app/services/uffizzi_core/container_registry/github_container_registry_service.rb +2 -0
- data/db/migrate/20230111000000_add_state_to_memberships.rb +7 -0
- data/lib/uffizzi_core/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 566a4ac7c7432c2799c5ec99b9254b891b57f1dc824871ea08618c185a23b943
|
4
|
+
data.tar.gz: e873366901b73043ce453bcbec7573a6901f9652a7c06eb0d2de2e5de3c91902
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f0104e86fea8ab38eeeb8b41a3b154967a1d04d7adffd923dec5aadeea9a079eb9b22c37a65b3741a3f5663359bae80c03ba3adceafe749f90e3daa7bc7fbb8
|
7
|
+
data.tar.gz: f8720202fdb34be5d0445bee562f1a76c72b133d5ad41a46d1c99dbbb53e74be51726804043c291dae6d1d7b650b757ab22e41e53bbadeaa63b2e2cad75136d7
|
@@ -4,6 +4,8 @@ module UffizziCore::Concerns::Models::Membership
|
|
4
4
|
extend ActiveSupport::Concern
|
5
5
|
|
6
6
|
included do
|
7
|
+
include AASM
|
8
|
+
include UffizziCore::StateMachineConcern
|
7
9
|
include UffizziCore::MembershipRepo
|
8
10
|
extend Enumerize
|
9
11
|
|
@@ -16,5 +18,18 @@ module UffizziCore::Concerns::Models::Membership
|
|
16
18
|
belongs_to :user
|
17
19
|
|
18
20
|
validates :role, presence: true
|
21
|
+
|
22
|
+
aasm(:state) do
|
23
|
+
state :active, initial: true
|
24
|
+
state :blocked
|
25
|
+
|
26
|
+
event :activate do
|
27
|
+
transitions from: [:blocked], to: :active
|
28
|
+
end
|
29
|
+
|
30
|
+
event :block do
|
31
|
+
transitions from: [:active], to: :blocked
|
32
|
+
end
|
33
|
+
end
|
19
34
|
end
|
20
35
|
end
|
data/lib/uffizzi_core/version.rb
CHANGED
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.
|
4
|
+
version: 2.1.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: 2023-03-
|
12
|
+
date: 2023-03-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aasm
|
@@ -1027,6 +1027,7 @@ files:
|
|
1027
1027
|
- db/migrate/20220901110752_create_host_volume_files.rb
|
1028
1028
|
- db/migrate/20220901165313_create_container_host_volume_files.rb
|
1029
1029
|
- db/migrate/20220927113647_add_additional_subdomains_to_containers.rb
|
1030
|
+
- db/migrate/20230111000000_add_state_to_memberships.rb
|
1030
1031
|
- db/migrate/20230306142513_add_last_deploy_at_to_deployments.rb
|
1031
1032
|
- db/seeds.rb
|
1032
1033
|
- lib/tasks/uffizzi_core_tasks.rake
|