bigid_bgcheck 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/bigid/bgcheck/version.rb +1 -1
- data/lib/bigid_bgcheck.rb +3 -5
- data/lib/locales/en.yml +17 -0
- data/lib/locales/pt-BR.yml +17 -0
- metadata +13 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe1ebc273c327323e346cd5f95acdf0f416fe43b9df2b63af7a26f74125397ce
|
4
|
+
data.tar.gz: 0a89cf40a825ad278c2ca22ca441e1cd7f2cb8e77c0884a17507cc207d3680dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67a17203419ba2e66edbfdced0ddcb9d6affa3a12742bf55432ec0c30d60bd22abacda6b0ff656d755e340ab05a63bbd5f1b8984e0ef3c1ea1713b19d6305573
|
7
|
+
data.tar.gz: 62b1d4edec6dde17d86342dcb06a4b01748b2bcb298a1776a81209bb2118ff8f514e859b9209703df49efff7519e94ea198d61ed7a1e3a21c5fda573259e2d73
|
data/CHANGELOG.md
CHANGED
@@ -9,6 +9,6 @@ module Bigid
|
|
9
9
|
# Major - Incremented for incompatible changes with previous release (or big enough new features)
|
10
10
|
# Minor - Incremented for new backwards-compatible features + deprecations
|
11
11
|
# Patch - Incremented for backwards-compatible bug fixes
|
12
|
-
VERSION = "0.1.
|
12
|
+
VERSION = "0.1.3"
|
13
13
|
end
|
14
14
|
end
|
data/lib/bigid_bgcheck.rb
CHANGED
@@ -22,6 +22,9 @@ require "bigid/bgcheck/result"
|
|
22
22
|
require "bigid/bgcheck/result_code"
|
23
23
|
require "bigid/bgcheck/request"
|
24
24
|
|
25
|
+
I18n.load_path += Dir[File.join(__dir__, "locales", "**/*.yml")]
|
26
|
+
I18n.reload! if I18n.backend.initialized?
|
27
|
+
|
25
28
|
module Bigid
|
26
29
|
module Bgcheck
|
27
30
|
SRV_ENDPOINT = "backgroundcheck"
|
@@ -42,10 +45,5 @@ module Bigid
|
|
42
45
|
|
43
46
|
class Configuration
|
44
47
|
end
|
45
|
-
|
46
|
-
I18n.load_path << Dir["#{File.expand_path('config/locales')}/*.yml"]
|
47
|
-
I18n.config.available_locales = :en, :'pt-BR'
|
48
|
-
I18n.default_locale = :en
|
49
|
-
I18n.reload!
|
50
48
|
end
|
51
49
|
end
|
data/lib/locales/en.yml
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
en:
|
2
|
+
errors:
|
3
|
+
bigid:
|
4
|
+
auth:
|
5
|
+
authentication_error: An error ocurred during the authentication
|
6
|
+
bad_request_error: The request body or format is invalid
|
7
|
+
invalid_credentials_error: The credentials informed are invalid
|
8
|
+
server_error: An internal server error ocurred
|
9
|
+
bgcheck:
|
10
|
+
bad_request_error: The request body or format is invalid
|
11
|
+
document_not_supported_error: The document type is not supported
|
12
|
+
internal_error: An internal error on the BigId server ocurred
|
13
|
+
invalid_document_value_error: The document value is invalid
|
14
|
+
invalid_credentials_error: The credentials informed are invalid
|
15
|
+
no_info_error: No informations available
|
16
|
+
not_permission_error: Action not allowed
|
17
|
+
server_error: An internal server error ocurred
|
@@ -0,0 +1,17 @@
|
|
1
|
+
'pt-BR':
|
2
|
+
errors:
|
3
|
+
bigid:
|
4
|
+
auth:
|
5
|
+
authentication_error: Ocorreu um erro durante a autenticação
|
6
|
+
bad_request_error: O corpo ou formato da requisição é inválido
|
7
|
+
invalid_credentials_error: As credenciais informadas são inválidas
|
8
|
+
server_error: Ocorreu um erro inesperado no servidor
|
9
|
+
bgcheck:
|
10
|
+
bad_request_error: O corpo ou formato da requisição é inválido
|
11
|
+
document_not_supported_error: O tipo de documento é inválido
|
12
|
+
internal_error: Ocorreu um erro ao verificar a pessoa no BigId
|
13
|
+
invalid_document_value_error: O valor do documento é inválido
|
14
|
+
invalid_credentials_error: As credenciais informadas são inválidas
|
15
|
+
no_info_error: Sem informações disponíveis
|
16
|
+
not_permission_error: Ação não permitida
|
17
|
+
server_error: Ocorreu um erro inesperado no servidor
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bigid_bgcheck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danilo Carolino
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bigid_auth
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.1.
|
19
|
+
version: 0.1.1
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '0.1'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.1.
|
29
|
+
version: 0.1.1
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '0.1'
|
@@ -36,7 +36,7 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 1.4.
|
39
|
+
version: 1.4.1
|
40
40
|
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '1.0'
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 1.4.
|
49
|
+
version: 1.4.1
|
50
50
|
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: '1.0'
|
@@ -261,6 +261,8 @@ files:
|
|
261
261
|
- lib/bigid/bgcheck/server_error.rb
|
262
262
|
- lib/bigid/bgcheck/version.rb
|
263
263
|
- lib/bigid_bgcheck.rb
|
264
|
+
- lib/locales/en.yml
|
265
|
+
- lib/locales/pt-BR.yml
|
264
266
|
- spec/bigid_bgcheck_spec.rb
|
265
267
|
- spec/lib/bgcheck/doc_type_spec.rb
|
266
268
|
- spec/lib/bgcheck/result_code_spec.rb
|
@@ -268,7 +270,10 @@ files:
|
|
268
270
|
homepage: https://github.com/Quasar-Flash/bigid-bgcheck-ruby
|
269
271
|
licenses:
|
270
272
|
- MIT
|
271
|
-
metadata:
|
273
|
+
metadata:
|
274
|
+
changelog_uri: https://github.com/Quasar-Flash/bigid-bgcheck-ruby/blob/master/CHANGELOG.md
|
275
|
+
source_code_uri: https://github.com/Quasar-Flash/bigid-bgcheck-ruby
|
276
|
+
bug_tracker_uri: https://github.com/Quasar-Flash/bigid-bgcheck-ruby/issues
|
272
277
|
post_install_message:
|
273
278
|
rdoc_options: []
|
274
279
|
require_paths:
|
@@ -277,7 +282,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
277
282
|
requirements:
|
278
283
|
- - ">="
|
279
284
|
- !ruby/object:Gem::Version
|
280
|
-
version: '
|
285
|
+
version: '2.5'
|
281
286
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
282
287
|
requirements:
|
283
288
|
- - ">="
|