uffizzi_core 1.1.1 → 1.1.2

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: cc8ef2e97441db099280ffb854661c6a0d701168ffa861a450c477cef59c08d3
4
- data.tar.gz: e8fcccd840437ac326ed0b79fec62702b8a5ecb31a9f6a97b97a1f353c83baf6
3
+ metadata.gz: 2edcfc13672bd0bca6949f51c036ddd4fb30b09f911c309a149141ad2b3d645d
4
+ data.tar.gz: 4747f7a5566cf82e782af3622aa7a8568dc61c8549805da8676ccf0dcd4c78a5
5
5
  SHA512:
6
- metadata.gz: d8b28b3616329ba3e7b2ce2d7fe5a96dfeeb8a8871d3338ad860360773c0b9da249b2d10e19041c6c8beff727ecb07a625a2cdd9ecc713debb6699e7e9b59ae0
7
- data.tar.gz: 8d74419aedcc3d530ad4bc69e04eb13a85d9414626bb0433075e4a23d202328d98041f52552077dcb1b179e58d2daf59ad6ed1bab48a07e866480207d6d42210
6
+ metadata.gz: 33f214f8203c262c402d3f081e7d3e609f2b0e3fb42168e2cfb050e92cb654cfc9d233267593c2defae5bd8365ca613f556cfcb8167413666fd84bf33e45e7af
7
+ data.tar.gz: 34aa0ad85bd4450a1b4249e93cb588b2ef370c5538943d2878bfdd749dce97b90ffbe4cc1a4b775c41a28a4bd1ae6ce096bb3426ce71f23aa1579889f84566d7
@@ -18,7 +18,7 @@ class UffizziCore::Api::Cli::V1::Projects::Deployments::ActivityItemsController
18
18
  deployment = resource_project.deployments.existed.find(params[:deployment_id])
19
19
 
20
20
  unless deployment.active?
21
- return render json: { errors: { title: [I18n.t('deployment.invalid_state', state: deployment.state)] } },
21
+ return render json: { errors: { title: [I18n.t('deployment.invalid_state', id: deployment.id, state: deployment.state)] } },
22
22
  status: :unprocessable_entity
23
23
  end
24
24
 
@@ -41,6 +41,7 @@ class UffizziCore::DeploymentService
41
41
  compose_file_id: compose_file.id,
42
42
  creation_source: UffizziCore::Deployment.creation_source.compose_file_manual,
43
43
  metadata: deployment_form.metadata,
44
+ state: :active,
44
45
  }
45
46
  deployment.update!(params)
46
47
  end
@@ -72,7 +72,7 @@ en:
72
72
  duplicates_exists: Secret with key %{secrets} already exist.
73
73
  invalid_key_length: A secret key must be no longer than 256 characters.
74
74
  deployment:
75
- invalid_state: Deployment %{state}
75
+ invalid_state: Preview with ID deployment-%{id} %{state}
76
76
  session:
77
77
  unsupported_login_type: This type of login is not supported
78
78
  unauthorized: Unauthorized
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '1.1.1'
4
+ VERSION = '1.1.2'
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: 1.1.1
4
+ version: 1.1.2
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: 2022-09-21 00:00:00.000000000 Z
12
+ date: 2022-09-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm