bigid_bgcheck 0.3.2 → 1.0.0

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: 7886a04c546951d77a298933cad061760cc783c4b86fe4fcaa38d985bafa0e31
4
- data.tar.gz: fcd09ead79b995ae82230b76c82cc710be22f52432e4ef023d37454c3358de99
3
+ metadata.gz: 83b0ce3e3803e3ab919da5c7bb52d86e001b11c453b0009b08fc84349b0c8d04
4
+ data.tar.gz: 76d8911bdaf04c554b46697dae56e9a17cf7e567511aa06022ca67606df6749a
5
5
  SHA512:
6
- metadata.gz: 55959edbe9aa5859c749622a9572ab4e9da398c6e3846561170a2da20f9e6b653cb1a5bfeb21e79181cc1cb00889d7f0866b791b77e4055508ec1060c4fed5e3
7
- data.tar.gz: be555051741add4b5b3cc12b7b8f384a8c43501731eb640af6706514be1013c16517dd0c7b3c74639e8e569c11eea5a387e2288596f6d3635e4d4e60f5a6522f
6
+ metadata.gz: 4c6b9841820338633d3abc24efce241d91f65ebe28ec079fa659e949c0927086e68de19dac41f8fe393ad460f1f5be9509e6a2b70cad80103acfdab1d23259ab
7
+ data.tar.gz: 59edc949c550899148a69ee5c6db50c874e97de5099382472db503be514940598b06ed224271842a827bac0c7085a506bd52beac633b59f83923419125a83615
@@ -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.3.2"
12
+ VERSION = "1.0.0"
13
13
  end
14
14
  end
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.3.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danilo Carolino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-13 00:00:00.000000000 Z
11
+ date: 2023-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bigid_auth
@@ -16,60 +16,48 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.2
19
+ version: 1.0.0
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.2.0
22
+ version: 0.2.2
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: 0.2.2
29
+ version: 1.0.0
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.2.0
32
+ version: 0.2.2
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: i18n
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '1.8'
40
37
  - - ">="
41
38
  - !ruby/object:Gem::Version
42
- version: '1.0'
39
+ version: '0'
43
40
  type: :runtime
44
41
  prerelease: false
45
42
  version_requirements: !ruby/object:Gem::Requirement
46
43
  requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '1.8'
50
44
  - - ">="
51
45
  - !ruby/object:Gem::Version
52
- version: '1.0'
46
+ version: '0'
53
47
  - !ruby/object:Gem::Dependency
54
48
  name: json
55
49
  requirement: !ruby/object:Gem::Requirement
56
50
  requirements:
57
51
  - - ">="
58
52
  - !ruby/object:Gem::Version
59
- version: '2.5'
60
- - - "<"
61
- - !ruby/object:Gem::Version
62
- version: '2.7'
53
+ version: '0'
63
54
  type: :runtime
64
55
  prerelease: false
65
56
  version_requirements: !ruby/object:Gem::Requirement
66
57
  requirements:
67
58
  - - ">="
68
59
  - !ruby/object:Gem::Version
69
- version: '2.5'
70
- - - "<"
71
- - !ruby/object:Gem::Version
72
- version: '2.7'
60
+ version: '0'
73
61
  - !ruby/object:Gem::Dependency
74
62
  name: cpf_cnpj
75
63
  requirement: !ruby/object:Gem::Requirement
@@ -90,40 +78,20 @@ dependencies:
90
78
  - - ">="
91
79
  - !ruby/object:Gem::Version
92
80
  version: '0.5'
93
- - !ruby/object:Gem::Dependency
94
- name: bundler
95
- requirement: !ruby/object:Gem::Requirement
96
- requirements:
97
- - - "~>"
98
- - !ruby/object:Gem::Version
99
- version: '2.3'
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- version: 2.3.0
103
- type: :development
104
- prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '2.3'
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- version: 2.3.0
113
81
  - !ruby/object:Gem::Dependency
114
82
  name: factory_bot
115
83
  requirement: !ruby/object:Gem::Requirement
116
84
  requirements:
117
85
  - - "~>"
118
86
  - !ruby/object:Gem::Version
119
- version: '6.2'
87
+ version: 6.2.1
120
88
  type: :development
121
89
  prerelease: false
122
90
  version_requirements: !ruby/object:Gem::Requirement
123
91
  requirements:
124
92
  - - "~>"
125
93
  - !ruby/object:Gem::Version
126
- version: '6.2'
94
+ version: 6.2.1
127
95
  - !ruby/object:Gem::Dependency
128
96
  name: pry
129
97
  requirement: !ruby/object:Gem::Requirement
@@ -138,96 +106,76 @@ dependencies:
138
106
  - - "~>"
139
107
  - !ruby/object:Gem::Version
140
108
  version: 0.14.1
141
- - !ruby/object:Gem::Dependency
142
- name: rake
143
- requirement: !ruby/object:Gem::Requirement
144
- requirements:
145
- - - "~>"
146
- - !ruby/object:Gem::Version
147
- version: 13.0.6
148
- - - ">="
149
- - !ruby/object:Gem::Version
150
- version: 10.0.0
151
- type: :development
152
- prerelease: false
153
- version_requirements: !ruby/object:Gem::Requirement
154
- requirements:
155
- - - "~>"
156
- - !ruby/object:Gem::Version
157
- version: 13.0.6
158
- - - ">="
159
- - !ruby/object:Gem::Version
160
- version: 10.0.0
161
109
  - !ruby/object:Gem::Dependency
162
110
  name: rspec
163
111
  requirement: !ruby/object:Gem::Requirement
164
112
  requirements:
165
113
  - - "~>"
166
114
  - !ruby/object:Gem::Version
167
- version: 3.11.0
115
+ version: 3.12.0
168
116
  type: :development
169
117
  prerelease: false
170
118
  version_requirements: !ruby/object:Gem::Requirement
171
119
  requirements:
172
120
  - - "~>"
173
121
  - !ruby/object:Gem::Version
174
- version: 3.11.0
122
+ version: 3.12.0
175
123
  - !ruby/object:Gem::Dependency
176
124
  name: rubocop
177
125
  requirement: !ruby/object:Gem::Requirement
178
126
  requirements:
179
127
  - - "~>"
180
128
  - !ruby/object:Gem::Version
181
- version: 1.30.1
129
+ version: 1.42.0
182
130
  type: :development
183
131
  prerelease: false
184
132
  version_requirements: !ruby/object:Gem::Requirement
185
133
  requirements:
186
134
  - - "~>"
187
135
  - !ruby/object:Gem::Version
188
- version: 1.30.1
136
+ version: 1.42.0
189
137
  - !ruby/object:Gem::Dependency
190
138
  name: rubocop-packaging
191
139
  requirement: !ruby/object:Gem::Requirement
192
140
  requirements:
193
141
  - - "~>"
194
142
  - !ruby/object:Gem::Version
195
- version: 0.5.1
143
+ version: 0.5.2
196
144
  type: :development
197
145
  prerelease: false
198
146
  version_requirements: !ruby/object:Gem::Requirement
199
147
  requirements:
200
148
  - - "~>"
201
149
  - !ruby/object:Gem::Version
202
- version: 0.5.1
150
+ version: 0.5.2
203
151
  - !ruby/object:Gem::Dependency
204
152
  name: rubocop-performance
205
153
  requirement: !ruby/object:Gem::Requirement
206
154
  requirements:
207
155
  - - "~>"
208
156
  - !ruby/object:Gem::Version
209
- version: 1.14.2
157
+ version: 1.15.2
210
158
  type: :development
211
159
  prerelease: false
212
160
  version_requirements: !ruby/object:Gem::Requirement
213
161
  requirements:
214
162
  - - "~>"
215
163
  - !ruby/object:Gem::Version
216
- version: 1.14.2
164
+ version: 1.15.2
217
165
  - !ruby/object:Gem::Dependency
218
166
  name: simplecov
219
167
  requirement: !ruby/object:Gem::Requirement
220
168
  requirements:
221
169
  - - "~>"
222
170
  - !ruby/object:Gem::Version
223
- version: 0.21.2
171
+ version: 0.22.0
224
172
  type: :development
225
173
  prerelease: false
226
174
  version_requirements: !ruby/object:Gem::Requirement
227
175
  requirements:
228
176
  - - "~>"
229
177
  - !ruby/object:Gem::Version
230
- version: 0.21.2
178
+ version: 0.22.0
231
179
  - !ruby/object:Gem::Dependency
232
180
  name: simplecov-json
233
181
  requirement: !ruby/object:Gem::Requirement
@@ -250,10 +198,7 @@ extensions: []
250
198
  extra_rdoc_files: []
251
199
  files:
252
200
  - Rakefile
253
- - docs/CHANGELOG.md
254
- - docs/CODE_OF_CONDUCT.md
255
201
  - docs/CONTRIBUTING.md
256
- - docs/LICENSE.txt
257
202
  - docs/PUBLISHING.md
258
203
  - lib/bigid/bgcheck/bad_request_error.rb
259
204
  - lib/bigid/bgcheck/base_error.rb
@@ -301,30 +246,30 @@ required_ruby_version: !ruby/object:Gem::Requirement
301
246
  requirements:
302
247
  - - ">="
303
248
  - !ruby/object:Gem::Version
304
- version: '2.7'
249
+ version: '3.0'
305
250
  required_rubygems_version: !ruby/object:Gem::Requirement
306
251
  requirements:
307
252
  - - ">="
308
253
  - !ruby/object:Gem::Version
309
254
  version: '0'
310
255
  requirements: []
311
- rubygems_version: 3.1.6
256
+ rubygems_version: 3.4.1
312
257
  signing_key:
313
258
  specification_version: 4
314
259
  summary: Bigid Background Check Library
315
260
  test_files:
316
- - spec/bigid/bgcheck/invalid_credentials_error_spec.rb
261
+ - spec/bigid/bgcheck/bad_request_error_spec.rb
317
262
  - spec/bigid/bgcheck/base_error_spec.rb
318
- - spec/bigid/bgcheck/no_info_error_spec.rb
319
- - spec/bigid/bgcheck/invalid_document_value_error_spec.rb
320
263
  - spec/bigid/bgcheck/doc_type_spec.rb
321
- - spec/bigid/bgcheck/request_spec.rb
322
- - spec/bigid/bgcheck/result_code_spec.rb
323
264
  - spec/bigid/bgcheck/document_not_supported_error_spec.rb
324
265
  - spec/bigid/bgcheck/internal_error_spec.rb
266
+ - spec/bigid/bgcheck/invalid_credentials_error_spec.rb
267
+ - spec/bigid/bgcheck/invalid_document_value_error_spec.rb
268
+ - spec/bigid/bgcheck/no_info_error_spec.rb
269
+ - spec/bigid/bgcheck/request_spec.rb
270
+ - spec/bigid/bgcheck/result_code_spec.rb
325
271
  - spec/bigid/bgcheck/server_error_spec.rb
326
- - spec/bigid/bgcheck/bad_request_error_spec.rb
327
- - spec/support/shared_examples/errors_shared_examples.rb
328
272
  - spec/bigid_bgcheck_spec.rb
329
273
  - spec/factories/result.rb
330
274
  - spec/spec_helper.rb
275
+ - spec/support/shared_examples/errors_shared_examples.rb
data/docs/CHANGELOG.md DELETED
@@ -1,76 +0,0 @@
1
- # Changelog
2
-
3
- All notable Changed to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [Unreleased]
9
-
10
- ## [0.3.2] - 2022-06-13
11
-
12
- ### Changed
13
-
14
- - build(deps): bump bigid_auth version from 0.2.1 to 0.2.2 #31
15
-
16
- ## [0.3.1.3] - 2022-05-06
17
-
18
- ### Added
19
-
20
- - feat: automatize the project deployment proccess
21
-
22
- ### Changed
23
-
24
- - build(deps): bump ruby version from 3.1.0 to 3.1.2
25
- - build(deps): bump bigid_auth version to v0.2.1.4
26
-
27
- ## [0.3.1.1] - 2022-02-09
28
-
29
- ### Changed
30
-
31
- - bump bigid_auth version to v0.2.1.1
32
-
33
- ## [0.3.1] - 2022-02-02
34
-
35
- ### Changed
36
-
37
- - [QC-79](https://qflash.atlassian.net/jira/software/projects/QC/boards/31?selectedIssue=QC-79)
38
- Reduzir uso de pipelines em projetos Ruby [Dependabot]
39
- - Bump Ruby version to v3.1.0
40
-
41
- ## [0.3.0]
42
-
43
- ### Changed
44
-
45
- - Bump "bigid_auth" version from v0.1.0 to v0.2.0
46
-
47
- ## [0.2.0]
48
-
49
- ### Added
50
-
51
- - Add fields to service return: "raw_data", "score_details", "related_score_details" and "raw_response" (the complete json file)
52
-
53
- ## [0.1.3]
54
-
55
- ### Fixed
56
-
57
- - Fix a problem with the locale initialization in Rails projects
58
-
59
- ## [0.1.2]
60
-
61
- ### Changed
62
-
63
- - Move auth service to an external package
64
-
65
- ## [0.1.1]
66
-
67
- ### Fixed
68
-
69
- - Fix a problem with the credentials when its get by the env variables
70
- - Fix rubocop warnings
71
-
72
- ## [0.1.0]
73
-
74
- ### Added
75
-
76
- - Initial release of bigid_bgcheck
@@ -1,128 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our
6
- community a harassment-free experience for everyone, regardless of age, body
7
- size, visible or invisible disability, ethnicity, sex characteristics, gender
8
- identity and expression, level of experience, education, socio-economic status,
9
- nationality, personal appearance, race, religion, or sexual identity
10
- and orientation.
11
-
12
- We pledge to act and interact in ways that contribute to an open, welcoming,
13
- diverse, inclusive, and healthy community.
14
-
15
- ## Our Standards
16
-
17
- Examples of behavior that contributes to a positive environment for our
18
- community include:
19
-
20
- * Demonstrating empathy and kindness toward other people
21
- * Being respectful of differing opinions, viewpoints, and experiences
22
- * Giving and gracefully accepting constructive feedback
23
- * Accepting responsibility and apologizing to those affected by our mistakes,
24
- and learning from the experience
25
- * Focusing on what is best not just for us as individuals, but for the
26
- overall community
27
-
28
- Examples of unacceptable behavior include:
29
-
30
- * The use of sexualized language or imagery, and sexual attention or
31
- advances of any kind
32
- * Trolling, insulting or derogatory comments, and personal or political attacks
33
- * Public or private harassment
34
- * Publishing others' private information, such as a physical or email
35
- address, without their explicit permission
36
- * Other conduct which could reasonably be considered inappropriate in a
37
- professional setting
38
-
39
- ## Enforcement Responsibilities
40
-
41
- Community leaders are responsible for clarifying and enforcing our standards of
42
- acceptable behavior and will take appropriate and fair corrective action in
43
- response to any behavior that they deem inappropriate, threatening, offensive,
44
- or harmful.
45
-
46
- Community leaders have the right and responsibility to remove, edit, or reject
47
- comments, commits, code, wiki edits, issues, and other contributions that are
48
- not aligned to this Code of Conduct, and will communicate reasons for moderation
49
- decisions when appropriate.
50
-
51
- ## Scope
52
-
53
- This Code of Conduct applies within all community spaces, and also applies when
54
- an individual is officially representing the community in public spaces.
55
- Examples of representing our community include using an official e-mail address,
56
- posting via an official social media account, or acting as an appointed
57
- representative at an online or offline event.
58
-
59
- ## Enforcement
60
-
61
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
- reported to the community leaders responsible for enforcement at
63
- danilogcarolino@gmail.com.
64
- All complaints will be reviewed and investigated promptly and fairly.
65
-
66
- All community leaders are obligated to respect the privacy and security of the
67
- reporter of any incident.
68
-
69
- ## Enforcement Guidelines
70
-
71
- Community leaders will follow these Community Impact Guidelines in determining
72
- the consequences for any action they deem in violation of this Code of Conduct:
73
-
74
- ### 1. Correction
75
-
76
- **Community Impact**: Use of inappropriate language or other behavior deemed
77
- unprofessional or unwelcome in the community.
78
-
79
- **Consequence**: A private, written warning from community leaders, providing
80
- clarity around the nature of the violation and an explanation of why the
81
- behavior was inappropriate. A public apology may be requested.
82
-
83
- ### 2. Warning
84
-
85
- **Community Impact**: A violation through a single incident or series
86
- of actions.
87
-
88
- **Consequence**: A warning with consequences for continued behavior. No
89
- interaction with the people involved, including unsolicited interaction with
90
- those enforcing the Code of Conduct, for a specified period of time. This
91
- includes avoiding interactions in community spaces as well as external channels
92
- like social media. Violating these terms may lead to a temporary or
93
- permanent ban.
94
-
95
- ### 3. Temporary Ban
96
-
97
- **Community Impact**: A serious violation of community standards, including
98
- sustained inappropriate behavior.
99
-
100
- **Consequence**: A temporary ban from any sort of interaction or public
101
- communication with the community for a specified period of time. No public or
102
- private interaction with the people involved, including unsolicited interaction
103
- with those enforcing the Code of Conduct, is allowed during this period.
104
- Violating these terms may lead to a permanent ban.
105
-
106
- ### 4. Permanent Ban
107
-
108
- **Community Impact**: Demonstrating a pattern of violation of community
109
- standards, including sustained inappropriate behavior, harassment of an
110
- individual, or aggression toward or disparagement of classes of individuals.
111
-
112
- **Consequence**: A permanent ban from any sort of public interaction within
113
- the community.
114
-
115
- ## Attribution
116
-
117
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
- version 2.0, available at
119
- <https://www.contributor-covenant.org/version/2/0/code_of_conduct.html>.
120
-
121
- Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
- enforcement ladder](https://github.com/mozilla/diversity).
123
-
124
- [homepage]: https://www.contributor-covenant.org
125
-
126
- For answers to common questions about this code of conduct, see the FAQ at
127
- <https://www.contributor-covenant.org/faq>. Translations are available at
128
- <https://www.contributor-covenant.org/translations>.
data/docs/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2021 Quasar Flash
2
-
3
- MIT LICENSE
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.