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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8dde4ab08b392e84558c16e4967250af65c53920c983b1736df5af3091bbdac
|
4
|
+
data.tar.gz: c7267a556db1b7132881ec0d9424eef05ce8dbbdf3b255456aba42bf0c38836c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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:
|
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:
|
data/config/locales/en.yml
CHANGED
@@ -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"
|
data/lib/uffizzi_core/version.rb
CHANGED