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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f078e2eba71cbc4578ee9a4c1ceec003435b4f3331ec52924c9b2a30eb873b5
4
- data.tar.gz: bada7c2db0bbc0a3cbb2f7470a3f1d9d9a366a9f150cb95313e3f49aadc66f75
3
+ metadata.gz: fe1ebc273c327323e346cd5f95acdf0f416fe43b9df2b63af7a26f74125397ce
4
+ data.tar.gz: 0a89cf40a825ad278c2ca22ca441e1cd7f2cb8e77c0884a17507cc207d3680dd
5
5
  SHA512:
6
- metadata.gz: 53249dd591e3b909a88fb5bdc0b3a70e89b56364c5ba86945cf6620f842e6c5cdf750bb07b75bca4c29ea24106a384e9fab06b43873590f0770504325549ae67
7
- data.tar.gz: 6ddbe14002b9525f7b447cbfa4982eea4dd83458b0c6457344711acd7c72cf95ac971e31d8793a007b17d496d5ab5186a27337f13f5fe1fb30361c2cdb1a1c67
6
+ metadata.gz: 67a17203419ba2e66edbfdced0ddcb9d6affa3a12742bf55432ec0c30d60bd22abacda6b0ff656d755e340ab05a63bbd5f1b8984e0ef3c1ea1713b19d6305573
7
+ data.tar.gz: 62b1d4edec6dde17d86342dcb06a4b01748b2bcb298a1776a81209bb2118ff8f514e859b9209703df49efff7519e94ea198d61ed7a1e3a21c5fda573259e2d73
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG for bigid_bgcheck
2
2
 
3
+ ## v0.1.3
4
+
5
+ * Fix a problem with the locale initialization in Rails projects
6
+
3
7
  ## v0.1.2
4
8
 
5
9
  * Move auth service to an external package
@@ -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.2"
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
@@ -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.2
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-18 00:00:00.000000000 Z
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.0
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.0
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.0
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.0
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: '0'
285
+ version: '2.5'
281
286
  required_rubygems_version: !ruby/object:Gem::Requirement
282
287
  requirements:
283
288
  - - ">="