uffizzi_core 2.1.20 → 2.1.22

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: cea91c9498c6599018ef40cc94a0008146ed9517739d64167fb19d73b1b40949
4
- data.tar.gz: 81e29d9c451ee34794cff66a89bbbfb36d6a4ea29c7fb2da9e95d8f5aba67d66
3
+ metadata.gz: 8e656eb503e61d1df06ee0fa3e494ebe2e0710bf332813c7a5d48b0915e297da
4
+ data.tar.gz: dd6bc21422c286a60b7ee6f5b42ee476583b9e0240ef5d7c49be8f1fa7150d52
5
5
  SHA512:
6
- metadata.gz: d584fea9409e2b99daf70fe98f3313f30620d08b112ae8797d8f7e245bac1ee3d98b9d0c4d050b957c410da1db7c714300c9d0f03638020b9206aac6a5856149
7
- data.tar.gz: 0ffab94f8571e668b042738d24f027d818261fd9c6d896ac656baaf93555c43a029ecb5b30113e2ea991361323a88b67360e1af95218b5bff6375f4fdf5eb9ff
6
+ metadata.gz: be971d5693d19dc437775321a5897e00abed51e1c3f88878c9370afcbf0accbe90a989002ab75ad18b9eed96cbb4a5c98da80daef57e9042f1c3ac153fb60e24
7
+ data.tar.gz: 8b771df5c0456e872d3cb89e9f947962b91ab216493193cf95eaf8e711f1d86f923ad1231b4d59ea15b464c47788192c7db44c97dc97d1e467d10a131626bfb4
@@ -19,10 +19,6 @@ class UffizziCore::ControllerClient
19
19
  connection.post("/deployments/#{deployment_id}", body)
20
20
  end
21
21
 
22
- def update_deployment(deployment_id:, body:)
23
- connection.put("/deployments/#{deployment_id}", body)
24
- end
25
-
26
22
  def delete_deployment(deployment_id:)
27
23
  connection.delete("/deployments/#{deployment_id}")
28
24
  end
@@ -12,7 +12,7 @@ module UffizziCore::Concerns::Models::Deployment
12
12
 
13
13
  self.table_name = UffizziCore.table_names[:deployments]
14
14
 
15
- enumerize :kind, in: [:standard, :performance, :enterprise, :free], predicates: true, default: :standard
15
+ enumerize :kind, in: [:standard], predicates: true, default: :standard
16
16
 
17
17
  belongs_to :project, touch: true
18
18
  belongs_to :deployed_by, class_name: UffizziCore::User.name, foreign_key: :deployed_by_id, optional: true
@@ -22,9 +22,14 @@ module UffizziCore::Concerns::Models::Membership
22
22
  aasm(:state) do
23
23
  state :active, initial: true
24
24
  state :blocked
25
+ state :inactive
25
26
 
26
27
  event :activate do
27
- transitions from: [:blocked], to: :active
28
+ transitions from: [:blocked, :inactive], to: :active
29
+ end
30
+
31
+ event :deactivate do
32
+ transitions from: [:active], to: :inactive
28
33
  end
29
34
 
30
35
  event :block do
@@ -17,11 +17,6 @@ class UffizziCore::ControllerService
17
17
  controller_client.create_deployment(deployment_id: deployment.id, body: body)
18
18
  end
19
19
 
20
- def update_deployment(deployment)
21
- body = UffizziCore::Controller::UpdateDeployment::DeploymentSerializer.new(deployment).as_json
22
- controller_client.update_deployment(deployment_id: deployment.id, body: body)
23
- end
24
-
25
20
  def delete_deployment(deployment_id)
26
21
  controller_client.delete_deployment(deployment_id: deployment_id)
27
22
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '2.1.20'
4
+ VERSION = '2.1.22'
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.20
4
+ version: 2.1.22
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-13 00:00:00.000000000 Z
12
+ date: 2023-05-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm