bigid_bgcheck 0.2.0 → 0.3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +58 -28
- data/lib/bigid/bgcheck/version.rb +1 -1
- data/lib/bigid_bgcheck.rb +0 -1
- data/spec/bigid/bgcheck/bad_request_error_spec.rb +0 -2
- data/spec/bigid/bgcheck/base_error_spec.rb +0 -2
- data/spec/bigid/bgcheck/doc_type_spec.rb +0 -2
- data/spec/bigid/bgcheck/document_not_supported_error_spec.rb +0 -2
- data/spec/bigid/bgcheck/internal_error_spec.rb +0 -2
- data/spec/bigid/bgcheck/invalid_credentials_error_spec.rb +0 -2
- data/spec/bigid/bgcheck/invalid_document_value_error_spec.rb +0 -2
- data/spec/bigid/bgcheck/no_info_error_spec.rb +0 -2
- data/spec/bigid/bgcheck/request_spec.rb +0 -2
- data/spec/bigid/bgcheck/result_code_spec.rb +0 -2
- data/spec/bigid/bgcheck/server_error_spec.rb +0 -2
- data/spec/bigid_bgcheck_spec.rb +0 -2
- data/spec/support/shared_examples/errors_shared_examples.rb +0 -2
- metadata +41 -67
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b228f788f9bff7e07562f1be0a23b61cff08b576aee395ba04a7578024de104
|
4
|
+
data.tar.gz: 5aafd827613270aba1d7b1230e72ff4c3c196d334ac8620c209a0f0ac72e154d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8c029ea0481383ae6e6f180c25ec608e5a87e08b664219d2e54a74ecfaf4abda4a42c6d8d06c533eadcd6e5b25acf725f581824b97c6035c562078915439b29
|
7
|
+
data.tar.gz: f782b8a5e27695bcf2a9e20ec3fc90540aa481fb65de8d0313dcd660f55e49a98033016951a33d72c090affaa7e900c81ba192031ee2c342d1579ea632865ffe
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# CHANGELOG for bigid_bgcheck
|
2
2
|
|
3
|
+
## v0.3.1.1-20220209 - Danilo Carolino
|
4
|
+
|
5
|
+
* bump bigid_auth version to v0.2.1.1
|
6
|
+
|
7
|
+
## v0.3.1-20220202 - Danilo Carolino
|
8
|
+
|
9
|
+
* [QC-79](https://qflash.atlassian.net/jira/software/projects/QC/boards/31?selectedIssue=QC-79)
|
10
|
+
Reduzir uso de pipelines em projetos Ruby [Dependabot]
|
11
|
+
* Bump Ruby version to v3.1.0
|
12
|
+
|
13
|
+
## v0.3.0
|
14
|
+
|
15
|
+
* Bump "bigid_auth" version from v0.1.0 to v0.2.0
|
16
|
+
|
3
17
|
## v0.2.0
|
4
18
|
|
5
19
|
Features
|
data/README.md
CHANGED
@@ -1,8 +1,26 @@
|
|
1
1
|
BigId Background Check's Library for Ruby
|
2
2
|
==============
|
3
3
|
|
4
|
+
Build Status
|
5
|
+
-----------------
|
6
|
+
|
4
7
|
[![Gem Version](https://badge.fury.io/rb/bigid_bgcheck.svg)](https://badge.fury.io/rb/bigid_bgcheck)
|
5
|
-
[![
|
8
|
+
[![bigid_bgcheck](https://github.com/Quasar-Flash/bigid_bgcheck/actions/workflows/ruby.yml/badge.svg)](https://github.com/Quasar-Flash/bigid_bgcheck/actions/workflows/ruby.yml)
|
9
|
+
[![Quality Gate Status](https://sonarqube.eks.qflash.com.br/api/project_badges/measure?project=Quasar-Flash_bigid_bgcheck&metric=alert_status&token=23b79ee0eebe63611e370ffb911d9be245c99154)](https://sonarqube.eks.qflash.com.br/dashboard?id=Quasar-Flash_bigid_bgcheck)
|
10
|
+
[![Coverage](https://sonarqube.eks.qflash.com.br/api/project_badges/measure?project=Quasar-Flash_bigid_bgcheck&metric=coverage&token=23b79ee0eebe63611e370ffb911d9be245c99154)](https://sonarqube.eks.qflash.com.br/dashboard?id=Quasar-Flash_bigid_bgcheck)
|
11
|
+
[![Maintainability Rating](https://sonarqube.eks.qflash.com.br/api/project_badges/measure?project=Quasar-Flash_bigid_bgcheck&metric=sqale_rating&token=23b79ee0eebe63611e370ffb911d9be245c99154)](https://sonarqube.eks.qflash.com.br/dashboard?id=Quasar-Flash_bigid_bgcheck)
|
12
|
+
|
13
|
+
Project Scores
|
14
|
+
-----------------
|
15
|
+
|
16
|
+
[![Bugs](https://sonarqube.eks.qflash.com.br/api/project_badges/measure?project=Quasar-Flash_bigid_bgcheck&metric=bugs&token=23b79ee0eebe63611e370ffb911d9be245c99154)](https://sonarqube.eks.qflash.com.br/dashboard?id=Quasar-Flash_bigid_bgcheck)
|
17
|
+
[![Code Smells](https://sonarqube.eks.qflash.com.br/api/project_badges/measure?project=Quasar-Flash_bigid_bgcheck&metric=code_smells&token=23b79ee0eebe63611e370ffb911d9be245c99154)](https://sonarqube.eks.qflash.com.br/dashboard?id=Quasar-Flash_bigid_bgcheck)
|
18
|
+
[![Duplicated Lines (%)](https://sonarqube.eks.qflash.com.br/api/project_badges/measure?project=Quasar-Flash_bigid_bgcheck&metric=duplicated_lines_density&token=23b79ee0eebe63611e370ffb911d9be245c99154)](https://sonarqube.eks.qflash.com.br/dashboard?id=Quasar-Flash_bigid_bgcheck)
|
19
|
+
[![Lines of Code](https://sonarqube.eks.qflash.com.br/api/project_badges/measure?project=Quasar-Flash_bigid_bgcheck&metric=ncloc&token=23b79ee0eebe63611e370ffb911d9be245c99154)](https://sonarqube.eks.qflash.com.br/dashboard?id=Quasar-Flash_bigid_bgcheck)
|
20
|
+
[![Reliability Rating](https://sonarqube.eks.qflash.com.br/api/project_badges/measure?project=Quasar-Flash_bigid_bgcheck&metric=reliability_rating&token=23b79ee0eebe63611e370ffb911d9be245c99154)](https://sonarqube.eks.qflash.com.br/dashboard?id=Quasar-Flash_bigid_bgcheck)
|
21
|
+
[![Security Rating](https://sonarqube.eks.qflash.com.br/api/project_badges/measure?project=Quasar-Flash_bigid_bgcheck&metric=security_rating&token=23b79ee0eebe63611e370ffb911d9be245c99154)](https://sonarqube.eks.qflash.com.br/dashboard?id=Quasar-Flash_bigid_bgcheck)
|
22
|
+
[![Technical Debt](https://sonarqube.eks.qflash.com.br/api/project_badges/measure?project=Quasar-Flash_bigid_bgcheck&metric=sqale_index&token=23b79ee0eebe63611e370ffb911d9be245c99154)](https://sonarqube.eks.qflash.com.br/dashboard?id=Quasar-Flash_bigid_bgcheck)
|
23
|
+
[![Vulnerabilities](https://sonarqube.eks.qflash.com.br/api/project_badges/measure?project=Quasar-Flash_bigid_bgcheck&metric=vulnerabilities&token=23b79ee0eebe63611e370ffb911d9be245c99154)](https://sonarqube.eks.qflash.com.br/dashboard?id=Quasar-Flash_bigid_bgcheck)
|
6
24
|
|
7
25
|
Requirements
|
8
26
|
-----------------
|
@@ -18,61 +36,73 @@ Included Modules
|
|
18
36
|
Global Installation
|
19
37
|
-----------------
|
20
38
|
|
21
|
-
|
39
|
+
```sh
|
40
|
+
gem install bigid_bgcheck
|
41
|
+
```
|
22
42
|
|
23
43
|
Installation for Rails
|
24
44
|
-----------------
|
25
45
|
|
26
|
-
|
27
|
-
|
28
|
-
|
46
|
+
```ruby
|
47
|
+
# Add to the Gemfile
|
48
|
+
gem "bigid_bgcheck", "~> 0.3"
|
49
|
+
gem "bigid_bgcheck", github: "Quasar-Flash/bigid_bgcheck"
|
50
|
+
```
|
29
51
|
|
30
52
|
Setting the BigID credentials
|
31
53
|
-----------------
|
32
54
|
|
33
|
-
|
34
|
-
|
35
|
-
|
55
|
+
```ruby
|
56
|
+
# Set the env variables
|
57
|
+
ENV["BIGID_USERNAME"] = "your_username"
|
58
|
+
ENV["BIGID_PASSWORD"] = "your_password"
|
59
|
+
```
|
36
60
|
|
37
61
|
Setting the BigID credentials - Rails Project
|
38
62
|
-----------------
|
39
63
|
|
40
64
|
Create the config/initializers/bigid.rb file and define:
|
41
65
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
66
|
+
```ruby
|
67
|
+
# Set the env variables
|
68
|
+
Bigid.configure do |config|
|
69
|
+
config.username = "your_username"
|
70
|
+
config.password = "your_password"
|
71
|
+
end
|
72
|
+
```
|
47
73
|
|
48
74
|
Applying a background check
|
49
75
|
-----------------
|
50
76
|
|
51
|
-
|
77
|
+
```ruby
|
78
|
+
require "bigid_bgcheck"
|
52
79
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
80
|
+
Bigid::Bgcheck::Request.new.call(
|
81
|
+
document: "000.000.000-00",
|
82
|
+
document_type: "CPF",
|
83
|
+
group: "Default"
|
84
|
+
)
|
85
|
+
```
|
58
86
|
|
59
87
|
Result Example
|
60
88
|
-----------------
|
61
89
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
90
|
+
```ruby
|
91
|
+
#<Bigid::Bgcheck::Result:0x0000560fef3c1068
|
92
|
+
@approved=false,
|
93
|
+
@ticket_id="00000000000000000",
|
94
|
+
@code=-1100,
|
95
|
+
@message="Not Approved",
|
96
|
+
@score=0,
|
97
|
+
@limit_score=0.0>
|
98
|
+
```
|
69
99
|
|
70
100
|
Problems?
|
71
101
|
-----------------
|
72
102
|
|
73
103
|
**Please do not directly email any committers with questions or problems.** A community is best served when discussions are held in public.
|
74
104
|
|
75
|
-
Searching the [issues](https://github.com/Quasar-Flash/
|
105
|
+
Searching the [issues](https://github.com/Quasar-Flash/bigid_bgcheck/issues) for your problem is also a good idea.
|
76
106
|
|
77
107
|
Contributing
|
78
108
|
-----------------
|
@@ -88,7 +118,7 @@ Contributing
|
|
88
118
|
License
|
89
119
|
-----------------
|
90
120
|
|
91
|
-
Please see [LICENSE](https://github.com/Quasar-Flash/
|
121
|
+
Please see [LICENSE](https://github.com/Quasar-Flash/bigid_bgcheck/blob/master/LICENSE.txt) for licensing details.
|
92
122
|
|
93
123
|
Authors
|
94
124
|
-----------------
|
@@ -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.
|
12
|
+
VERSION = "0.3.1.1"
|
13
13
|
end
|
14
14
|
end
|
data/lib/bigid_bgcheck.rb
CHANGED
data/spec/bigid_bgcheck_spec.rb
CHANGED
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.
|
4
|
+
version: 0.3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danilo Carolino
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bigid_auth
|
@@ -16,40 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '0.1'
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0.1'
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '0.1'
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: faraday
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '1.4'
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '1.0'
|
19
|
+
version: '0.2'
|
43
20
|
type: :runtime
|
44
21
|
prerelease: false
|
45
22
|
version_requirements: !ruby/object:Gem::Requirement
|
46
23
|
requirements:
|
47
24
|
- - "~>"
|
48
25
|
- !ruby/object:Gem::Version
|
49
|
-
version: '
|
50
|
-
- - ">="
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: '1.0'
|
26
|
+
version: '0.2'
|
53
27
|
- !ruby/object:Gem::Dependency
|
54
28
|
name: i18n
|
55
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -74,22 +48,22 @@ dependencies:
|
|
74
48
|
name: json
|
75
49
|
requirement: !ruby/object:Gem::Requirement
|
76
50
|
requirements:
|
77
|
-
- - "
|
51
|
+
- - ">="
|
78
52
|
- !ruby/object:Gem::Version
|
79
53
|
version: '2.5'
|
80
|
-
- - "
|
54
|
+
- - "<"
|
81
55
|
- !ruby/object:Gem::Version
|
82
|
-
version: '2.
|
56
|
+
version: '2.7'
|
83
57
|
type: :runtime
|
84
58
|
prerelease: false
|
85
59
|
version_requirements: !ruby/object:Gem::Requirement
|
86
60
|
requirements:
|
87
|
-
- - "
|
61
|
+
- - ">="
|
88
62
|
- !ruby/object:Gem::Version
|
89
63
|
version: '2.5'
|
90
|
-
- - "
|
64
|
+
- - "<"
|
91
65
|
- !ruby/object:Gem::Version
|
92
|
-
version: '2.
|
66
|
+
version: '2.7'
|
93
67
|
- !ruby/object:Gem::Dependency
|
94
68
|
name: cpf_cnpj
|
95
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -138,20 +112,6 @@ dependencies:
|
|
138
112
|
- - "~>"
|
139
113
|
- !ruby/object:Gem::Version
|
140
114
|
version: '6.2'
|
141
|
-
- !ruby/object:Gem::Dependency
|
142
|
-
name: fuubar
|
143
|
-
requirement: !ruby/object:Gem::Requirement
|
144
|
-
requirements:
|
145
|
-
- - "~>"
|
146
|
-
- !ruby/object:Gem::Version
|
147
|
-
version: '2.5'
|
148
|
-
type: :development
|
149
|
-
prerelease: false
|
150
|
-
version_requirements: !ruby/object:Gem::Requirement
|
151
|
-
requirements:
|
152
|
-
- - "~>"
|
153
|
-
- !ruby/object:Gem::Version
|
154
|
-
version: '2.5'
|
155
115
|
- !ruby/object:Gem::Dependency
|
156
116
|
name: pry
|
157
117
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,28 +152,28 @@ dependencies:
|
|
192
152
|
requirements:
|
193
153
|
- - "~>"
|
194
154
|
- !ruby/object:Gem::Version
|
195
|
-
version: '3.
|
155
|
+
version: '3.11'
|
196
156
|
type: :development
|
197
157
|
prerelease: false
|
198
158
|
version_requirements: !ruby/object:Gem::Requirement
|
199
159
|
requirements:
|
200
160
|
- - "~>"
|
201
161
|
- !ruby/object:Gem::Version
|
202
|
-
version: '3.
|
162
|
+
version: '3.11'
|
203
163
|
- !ruby/object:Gem::Dependency
|
204
164
|
name: rubocop
|
205
165
|
requirement: !ruby/object:Gem::Requirement
|
206
166
|
requirements:
|
207
167
|
- - "~>"
|
208
168
|
- !ruby/object:Gem::Version
|
209
|
-
version: '1.
|
169
|
+
version: '1.25'
|
210
170
|
type: :development
|
211
171
|
prerelease: false
|
212
172
|
version_requirements: !ruby/object:Gem::Requirement
|
213
173
|
requirements:
|
214
174
|
- - "~>"
|
215
175
|
- !ruby/object:Gem::Version
|
216
|
-
version: '1.
|
176
|
+
version: '1.25'
|
217
177
|
- !ruby/object:Gem::Dependency
|
218
178
|
name: rubocop-packaging
|
219
179
|
requirement: !ruby/object:Gem::Requirement
|
@@ -234,28 +194,42 @@ dependencies:
|
|
234
194
|
requirements:
|
235
195
|
- - "~>"
|
236
196
|
- !ruby/object:Gem::Version
|
237
|
-
version: '1.
|
197
|
+
version: '1.13'
|
238
198
|
type: :development
|
239
199
|
prerelease: false
|
240
200
|
version_requirements: !ruby/object:Gem::Requirement
|
241
201
|
requirements:
|
242
202
|
- - "~>"
|
243
203
|
- !ruby/object:Gem::Version
|
244
|
-
version: '1.
|
204
|
+
version: '1.13'
|
245
205
|
- !ruby/object:Gem::Dependency
|
246
206
|
name: simplecov
|
247
207
|
requirement: !ruby/object:Gem::Requirement
|
248
208
|
requirements:
|
249
209
|
- - "~>"
|
250
210
|
- !ruby/object:Gem::Version
|
251
|
-
version: 0.21
|
211
|
+
version: '0.21'
|
212
|
+
type: :development
|
213
|
+
prerelease: false
|
214
|
+
version_requirements: !ruby/object:Gem::Requirement
|
215
|
+
requirements:
|
216
|
+
- - "~>"
|
217
|
+
- !ruby/object:Gem::Version
|
218
|
+
version: '0.21'
|
219
|
+
- !ruby/object:Gem::Dependency
|
220
|
+
name: simplecov-json
|
221
|
+
requirement: !ruby/object:Gem::Requirement
|
222
|
+
requirements:
|
223
|
+
- - "~>"
|
224
|
+
- !ruby/object:Gem::Version
|
225
|
+
version: '0.2'
|
252
226
|
type: :development
|
253
227
|
prerelease: false
|
254
228
|
version_requirements: !ruby/object:Gem::Requirement
|
255
229
|
requirements:
|
256
230
|
- - "~>"
|
257
231
|
- !ruby/object:Gem::Version
|
258
|
-
version: 0.
|
232
|
+
version: '0.2'
|
259
233
|
description: A library to use BigData Corps background check features
|
260
234
|
email:
|
261
235
|
- danilo.carolino@qflash.com.br
|
@@ -298,14 +272,14 @@ files:
|
|
298
272
|
- spec/factories/result.rb
|
299
273
|
- spec/spec_helper.rb
|
300
274
|
- spec/support/shared_examples/errors_shared_examples.rb
|
301
|
-
homepage: https://github.com/Quasar-Flash/
|
275
|
+
homepage: https://github.com/Quasar-Flash/bigid_bgcheck
|
302
276
|
licenses:
|
303
277
|
- MIT
|
304
278
|
metadata:
|
305
|
-
changelog_uri: https://github.com/Quasar-Flash/
|
306
|
-
source_code_uri: https://github.com/Quasar-Flash/
|
307
|
-
bug_tracker_uri: https://github.com/Quasar-Flash/
|
308
|
-
post_install_message:
|
279
|
+
changelog_uri: https://github.com/Quasar-Flash/bigid_bgcheck/blob/master/CHANGELOG.md
|
280
|
+
source_code_uri: https://github.com/Quasar-Flash/bigid_bgcheck
|
281
|
+
bug_tracker_uri: https://github.com/Quasar-Flash/bigid_bgcheck/issues
|
282
|
+
post_install_message:
|
309
283
|
rdoc_options: []
|
310
284
|
require_paths:
|
311
285
|
- lib
|
@@ -313,15 +287,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
313
287
|
requirements:
|
314
288
|
- - ">="
|
315
289
|
- !ruby/object:Gem::Version
|
316
|
-
version: '2.
|
290
|
+
version: '2.7'
|
317
291
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
318
292
|
requirements:
|
319
293
|
- - ">="
|
320
294
|
- !ruby/object:Gem::Version
|
321
295
|
version: '0'
|
322
296
|
requirements: []
|
323
|
-
rubygems_version: 3.
|
324
|
-
signing_key:
|
297
|
+
rubygems_version: 3.3.3
|
298
|
+
signing_key:
|
325
299
|
specification_version: 4
|
326
300
|
summary: Bigid Background Check Library
|
327
301
|
test_files:
|