uffizzi_core 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a39e41ef8a1ef0300ac30d802f223c0c99c8f771591569401ba7f8835bcfb095
4
- data.tar.gz: f3cb1e26f85f2751d7076234719d12a325eacab01ed4db85a6f7da8872442eb2
3
+ metadata.gz: a8dde4ab08b392e84558c16e4967250af65c53920c983b1736df5af3091bbdac
4
+ data.tar.gz: c7267a556db1b7132881ec0d9424eef05ce8dbbdf3b255456aba42bf0c38836c
5
5
  SHA512:
6
- metadata.gz: 62647e990dd6c5c449993a851d69b2f72e4d8d391ccb5d24bdffd62a16e76f1784f1d2e0e75838b74a320166d12ac560011cce8d7fe28fcf3414e7910853b854
7
- data.tar.gz: cd2d7b36a7d231e6d090e29abced6c2617f0b950de0f9491e93d05e268c147102af90e6190e7cced76fe1678ec5f4dfbdd9242698c1eddb8bfb7ee07af8e1028
6
+ metadata.gz: 27c1495b43f347282da5ac664db5485d4d4f5a751660ae502baa76b23990656546dcfb16f3221b48bf1d6f7f9fa8919d0b8e8a665e041cf05c446d95305ad82a
7
+ data.tar.gz: 2a0b7ae8d5e85aa69bc1c93f8e9a9bf6658b19a33bec346ecf9296a8c7a8e8defa10b93be8ff381c296578a0b90d9be8c31b1b5d13fb7bc20b7f7a92c96ce53f
@@ -17,7 +17,7 @@ class UffizziCore::Api::Cli::V1::Account::Credential::CreateForm < UffizziCore::
17
17
  end
18
18
 
19
19
  def check_credential_correctness
20
- errors.add(:username, :incorrect, type: type.text) unless UffizziCore::CredentialService.correct_credentials?(self)
20
+ errors.add(:username, :incorrect) unless UffizziCore::CredentialService.correct_credentials?(self)
21
21
  end
22
22
 
23
23
  def credential_exists?
@@ -11,18 +11,6 @@ module UffizziCore::Concerns::Models::Credential
11
11
 
12
12
  self.table_name = UffizziCore.table_names[:credentials]
13
13
 
14
- const_set(:CREDENTIAL_TYPES, [
15
- UffizziCore::Credential::Amazon.name,
16
- UffizziCore::Credential::Azure.name,
17
- UffizziCore::Credential::DockerHub.name,
18
- UffizziCore::Credential::DockerRegistry.name,
19
- UffizziCore::Credential::GithubContainerRegistry.name,
20
- UffizziCore::Credential::Google.name,
21
- ])
22
-
23
- enumerize :type,
24
- in: self::CREDENTIAL_TYPES, i18n_scope: ['enumerize.credential.type']
25
-
26
14
  belongs_to :account
27
15
 
28
16
  before_destroy :remove_token
@@ -13,7 +13,7 @@ en:
13
13
  password:
14
14
  password_blank: Password/Access Token can't be blank
15
15
  username:
16
- incorrect: "We were unable to log you into %{type}. Please verify that your username and password are correct."
16
+ incorrect: We were unable to log you in to docker registry. Please verify that your username and password are correct.
17
17
  type:
18
18
  exist: Credential of that type already exist.
19
19
  uffizzi_core/deployment:
@@ -76,12 +76,3 @@ en:
76
76
  session:
77
77
  unsupported_login_type: This type of login is not supported
78
78
  unauthorized: Unauthorized
79
- enumerize:
80
- credential:
81
- type:
82
- "UffizziCore::Credential::GithubContainerRegistry": "Github Container Registry"
83
- "UffizziCore::Credential::DockerHub": "DockerHub"
84
- "UffizziCore::Credential::DockerRegistry": "Docker Registry"
85
- "UffizziCore::Credential::Azure": "Azure"
86
- "UffizziCore::Credential::Google": "Google"
87
- "UffizziCore::Credential::Amazon": "Amazon"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
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.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Thurman