bigid_bgcheck 0.3.0.2 → 0.3.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +0 -17
- data/docs/CHANGELOG.md +44 -0
- data/docs/CODE_OF_CONDUCT.md +128 -0
- data/docs/CONTRIBUTING.md +9 -0
- data/{LICENSE.txt → docs/LICENSE.txt} +0 -0
- data/docs/PUBLISHING.md +10 -0
- data/lib/bigid/bgcheck/version.rb +1 -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 +52 -50
- data/CHANGELOG.md +0 -28
- data/README.md +0 -109
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cc6da1a532ea97383b76fa5b74613545b7dbb81ac23afa9c9188096293f9885
|
4
|
+
data.tar.gz: ce39bbc78f38f0e5080983487f259a8566d613939b177340ea4582e27835145e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9654b2b00618e9dd01c12e2e2ef8264fcac06c2866a16567f857d9aa20517409a1e9d6ec1c22d14836cb2edd0ca45654647bf368ac22615639dc1732f0b14d43
|
7
|
+
data.tar.gz: 225759d2b914aed42ed121630ebbda352cd8396f9899dffebf401adc40f55838ce6afd0d1e98201178c71ebdd8ae914e6b76cb328536b17c91b09ddb6e0bea5e
|
data/Rakefile
CHANGED
@@ -7,23 +7,6 @@ rescue LoadError
|
|
7
7
|
puts "You must `gem install bundler` and `bundle install` to run rake tasks"
|
8
8
|
end
|
9
9
|
|
10
|
-
begin
|
11
|
-
require "rdoc/task"
|
12
|
-
rescue LoadError
|
13
|
-
require "rdoc/rdoc"
|
14
|
-
require "rake/rdoctask"
|
15
|
-
|
16
|
-
RDoc::Task = Rake::RDocTask
|
17
|
-
end
|
18
|
-
|
19
|
-
RDoc::Task.new(:rdoc) do |rdoc|
|
20
|
-
rdoc.rdoc_dir = "rdoc"
|
21
|
-
rdoc.title = "bigid_bgcheck"
|
22
|
-
rdoc.options << "--line-numbers"
|
23
|
-
rdoc.rdoc_files.include("README.rdoc")
|
24
|
-
rdoc.rdoc_files.include("lib/**/*.rb")
|
25
|
-
end
|
26
|
-
|
27
10
|
Bundler::GemHelper.install_tasks
|
28
11
|
|
29
12
|
begin
|
data/docs/CHANGELOG.md
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# CHANGELOG for bigid_bgcheck
|
2
|
+
|
3
|
+
## v0.3.1.3-20220506 - [Danilo Carolino](@danilogco)
|
4
|
+
|
5
|
+
* build(deps): bump ruby version from 3.1.0 to 3.1.2
|
6
|
+
* build(deps): bump bigid_auth version to v0.2.1.4
|
7
|
+
* feat: automatize the project deployment proccess
|
8
|
+
|
9
|
+
## v0.3.1.1-20220209 - [Danilo Carolino](@danilogco)
|
10
|
+
|
11
|
+
* bump bigid_auth version to v0.2.1.1
|
12
|
+
|
13
|
+
## v0.3.1-20220202 - [Danilo Carolino](@danilogco)
|
14
|
+
|
15
|
+
* [QC-79](https://qflash.atlassian.net/jira/software/projects/QC/boards/31?selectedIssue=QC-79)
|
16
|
+
Reduzir uso de pipelines em projetos Ruby [Dependabot]
|
17
|
+
* Bump Ruby version to v3.1.0
|
18
|
+
|
19
|
+
## v0.3.0 - [Danilo Carolino](@danilogco)
|
20
|
+
|
21
|
+
* Bump "bigid_auth" version from v0.1.0 to v0.2.0
|
22
|
+
|
23
|
+
## v0.2.0 - [Danilo Carolino](@danilogco)
|
24
|
+
|
25
|
+
Features
|
26
|
+
|
27
|
+
* Add fields to service return: "raw_data", "score_details", "related_score_details" and "raw_response" (the complete json file)
|
28
|
+
|
29
|
+
## v0.1.3 - [Danilo Carolino](@danilogco)
|
30
|
+
|
31
|
+
* Fix a problem with the locale initialization in Rails projects
|
32
|
+
|
33
|
+
## v0.1.2 - [Danilo Carolino](@danilogco)
|
34
|
+
|
35
|
+
* Move auth service to an external package
|
36
|
+
|
37
|
+
## v0.1.1 - [Danilo Carolino](@danilogco)
|
38
|
+
|
39
|
+
* Fix a problem with the credentials when its get by the env variables
|
40
|
+
* Fix rubocop warnings
|
41
|
+
|
42
|
+
## v0.1.0 - [Danilo Carolino](@danilogco)
|
43
|
+
|
44
|
+
* Initial release of bigid_bgcheck
|
@@ -0,0 +1,128 @@
|
|
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>.
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Contributing
|
2
|
+
|
3
|
+
- Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet;
|
4
|
+
- Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it;
|
5
|
+
- Fork the project;
|
6
|
+
- Start a feature/bugfix branch;
|
7
|
+
- Commit and push until you are happy with your contribution;
|
8
|
+
- Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.;
|
9
|
+
- Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
File without changes
|
data/docs/PUBLISHING.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# Publishing
|
2
|
+
|
3
|
+
After the Github and Rubygems authenticatication, push with the following command:
|
4
|
+
|
5
|
+
```sh
|
6
|
+
gem build bigid_bgcheck.gemspec
|
7
|
+
gem push --key github --host https://rubygems.pkg.github.com/quasar-flash bigid_bgcheck-0.3.0.gem
|
8
|
+
```
|
9
|
+
|
10
|
+
Don't forget to generate the release:
|
@@ -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.
|
12
|
+
VERSION = "0.3.1.3"
|
13
13
|
end
|
14
14
|
end
|
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.3.
|
4
|
+
version: 0.3.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:
|
11
|
+
date: 2022-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bigid_auth
|
@@ -17,9 +17,6 @@ dependencies:
|
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.2'
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '0.2'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +24,6 @@ dependencies:
|
|
27
24
|
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0.2'
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '0.2'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: i18n
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -54,22 +48,22 @@ dependencies:
|
|
54
48
|
name: json
|
55
49
|
requirement: !ruby/object:Gem::Requirement
|
56
50
|
requirements:
|
57
|
-
- - "
|
51
|
+
- - ">="
|
58
52
|
- !ruby/object:Gem::Version
|
59
53
|
version: '2.5'
|
60
|
-
- - "
|
54
|
+
- - "<"
|
61
55
|
- !ruby/object:Gem::Version
|
62
|
-
version: '2.
|
56
|
+
version: '2.7'
|
63
57
|
type: :runtime
|
64
58
|
prerelease: false
|
65
59
|
version_requirements: !ruby/object:Gem::Requirement
|
66
60
|
requirements:
|
67
|
-
- - "
|
61
|
+
- - ">="
|
68
62
|
- !ruby/object:Gem::Version
|
69
63
|
version: '2.5'
|
70
|
-
- - "
|
64
|
+
- - "<"
|
71
65
|
- !ruby/object:Gem::Version
|
72
|
-
version: '2.
|
66
|
+
version: '2.7'
|
73
67
|
- !ruby/object:Gem::Dependency
|
74
68
|
name: cpf_cnpj
|
75
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,16 +88,22 @@ dependencies:
|
|
94
88
|
name: bundler
|
95
89
|
requirement: !ruby/object:Gem::Requirement
|
96
90
|
requirements:
|
91
|
+
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '2.3'
|
97
94
|
- - ">="
|
98
95
|
- !ruby/object:Gem::Version
|
99
|
-
version:
|
96
|
+
version: 2.3.0
|
100
97
|
type: :development
|
101
98
|
prerelease: false
|
102
99
|
version_requirements: !ruby/object:Gem::Requirement
|
103
100
|
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.3'
|
104
104
|
- - ">="
|
105
105
|
- !ruby/object:Gem::Version
|
106
|
-
version:
|
106
|
+
version: 2.3.0
|
107
107
|
- !ruby/object:Gem::Dependency
|
108
108
|
name: factory_bot
|
109
109
|
requirement: !ruby/object:Gem::Requirement
|
@@ -118,20 +118,6 @@ dependencies:
|
|
118
118
|
- - "~>"
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '6.2'
|
121
|
-
- !ruby/object:Gem::Dependency
|
122
|
-
name: fuubar
|
123
|
-
requirement: !ruby/object:Gem::Requirement
|
124
|
-
requirements:
|
125
|
-
- - "~>"
|
126
|
-
- !ruby/object:Gem::Version
|
127
|
-
version: '2.5'
|
128
|
-
type: :development
|
129
|
-
prerelease: false
|
130
|
-
version_requirements: !ruby/object:Gem::Requirement
|
131
|
-
requirements:
|
132
|
-
- - "~>"
|
133
|
-
- !ruby/object:Gem::Version
|
134
|
-
version: '2.5'
|
135
121
|
- !ruby/object:Gem::Dependency
|
136
122
|
name: pry
|
137
123
|
requirement: !ruby/object:Gem::Requirement
|
@@ -172,28 +158,28 @@ dependencies:
|
|
172
158
|
requirements:
|
173
159
|
- - "~>"
|
174
160
|
- !ruby/object:Gem::Version
|
175
|
-
version: '3.
|
161
|
+
version: '3.11'
|
176
162
|
type: :development
|
177
163
|
prerelease: false
|
178
164
|
version_requirements: !ruby/object:Gem::Requirement
|
179
165
|
requirements:
|
180
166
|
- - "~>"
|
181
167
|
- !ruby/object:Gem::Version
|
182
|
-
version: '3.
|
168
|
+
version: '3.11'
|
183
169
|
- !ruby/object:Gem::Dependency
|
184
170
|
name: rubocop
|
185
171
|
requirement: !ruby/object:Gem::Requirement
|
186
172
|
requirements:
|
187
173
|
- - "~>"
|
188
174
|
- !ruby/object:Gem::Version
|
189
|
-
version: '1.
|
175
|
+
version: '1.28'
|
190
176
|
type: :development
|
191
177
|
prerelease: false
|
192
178
|
version_requirements: !ruby/object:Gem::Requirement
|
193
179
|
requirements:
|
194
180
|
- - "~>"
|
195
181
|
- !ruby/object:Gem::Version
|
196
|
-
version: '1.
|
182
|
+
version: '1.28'
|
197
183
|
- !ruby/object:Gem::Dependency
|
198
184
|
name: rubocop-packaging
|
199
185
|
requirement: !ruby/object:Gem::Requirement
|
@@ -214,28 +200,42 @@ dependencies:
|
|
214
200
|
requirements:
|
215
201
|
- - "~>"
|
216
202
|
- !ruby/object:Gem::Version
|
217
|
-
version: '1.
|
203
|
+
version: '1.13'
|
218
204
|
type: :development
|
219
205
|
prerelease: false
|
220
206
|
version_requirements: !ruby/object:Gem::Requirement
|
221
207
|
requirements:
|
222
208
|
- - "~>"
|
223
209
|
- !ruby/object:Gem::Version
|
224
|
-
version: '1.
|
210
|
+
version: '1.13'
|
225
211
|
- !ruby/object:Gem::Dependency
|
226
212
|
name: simplecov
|
227
213
|
requirement: !ruby/object:Gem::Requirement
|
228
214
|
requirements:
|
229
215
|
- - "~>"
|
230
216
|
- !ruby/object:Gem::Version
|
231
|
-
version: 0.21
|
217
|
+
version: '0.21'
|
218
|
+
type: :development
|
219
|
+
prerelease: false
|
220
|
+
version_requirements: !ruby/object:Gem::Requirement
|
221
|
+
requirements:
|
222
|
+
- - "~>"
|
223
|
+
- !ruby/object:Gem::Version
|
224
|
+
version: '0.21'
|
225
|
+
- !ruby/object:Gem::Dependency
|
226
|
+
name: simplecov-json
|
227
|
+
requirement: !ruby/object:Gem::Requirement
|
228
|
+
requirements:
|
229
|
+
- - "~>"
|
230
|
+
- !ruby/object:Gem::Version
|
231
|
+
version: '0.2'
|
232
232
|
type: :development
|
233
233
|
prerelease: false
|
234
234
|
version_requirements: !ruby/object:Gem::Requirement
|
235
235
|
requirements:
|
236
236
|
- - "~>"
|
237
237
|
- !ruby/object:Gem::Version
|
238
|
-
version: 0.
|
238
|
+
version: '0.2'
|
239
239
|
description: A library to use BigData Corps background check features
|
240
240
|
email:
|
241
241
|
- danilo.carolino@qflash.com.br
|
@@ -243,10 +243,12 @@ executables: []
|
|
243
243
|
extensions: []
|
244
244
|
extra_rdoc_files: []
|
245
245
|
files:
|
246
|
-
- CHANGELOG.md
|
247
|
-
- LICENSE.txt
|
248
|
-
- README.md
|
249
246
|
- Rakefile
|
247
|
+
- docs/CHANGELOG.md
|
248
|
+
- docs/CODE_OF_CONDUCT.md
|
249
|
+
- docs/CONTRIBUTING.md
|
250
|
+
- docs/LICENSE.txt
|
251
|
+
- docs/PUBLISHING.md
|
250
252
|
- lib/bigid/bgcheck/bad_request_error.rb
|
251
253
|
- lib/bigid/bgcheck/base_error.rb
|
252
254
|
- lib/bigid/bgcheck/doc_type.rb
|
@@ -293,30 +295,30 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
293
295
|
requirements:
|
294
296
|
- - ">="
|
295
297
|
- !ruby/object:Gem::Version
|
296
|
-
version: '2.
|
298
|
+
version: '2.7'
|
297
299
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
298
300
|
requirements:
|
299
301
|
- - ">="
|
300
302
|
- !ruby/object:Gem::Version
|
301
303
|
version: '0'
|
302
304
|
requirements: []
|
303
|
-
rubygems_version: 3.1.
|
305
|
+
rubygems_version: 3.1.2
|
304
306
|
signing_key:
|
305
307
|
specification_version: 4
|
306
308
|
summary: Bigid Background Check Library
|
307
309
|
test_files:
|
308
|
-
- spec/bigid_bgcheck_spec.rb
|
309
310
|
- spec/support/shared_examples/errors_shared_examples.rb
|
311
|
+
- spec/bigid_bgcheck_spec.rb
|
310
312
|
- spec/factories/result.rb
|
311
313
|
- spec/spec_helper.rb
|
314
|
+
- spec/bigid/bgcheck/invalid_credentials_error_spec.rb
|
312
315
|
- spec/bigid/bgcheck/invalid_document_value_error_spec.rb
|
313
|
-
- spec/bigid/bgcheck/
|
316
|
+
- spec/bigid/bgcheck/doc_type_spec.rb
|
314
317
|
- spec/bigid/bgcheck/no_info_error_spec.rb
|
315
|
-
- spec/bigid/bgcheck/internal_error_spec.rb
|
316
|
-
- spec/bigid/bgcheck/result_code_spec.rb
|
317
|
-
- spec/bigid/bgcheck/server_error_spec.rb
|
318
318
|
- spec/bigid/bgcheck/request_spec.rb
|
319
|
-
- spec/bigid/bgcheck/invalid_credentials_error_spec.rb
|
320
319
|
- spec/bigid/bgcheck/document_not_supported_error_spec.rb
|
321
|
-
- spec/bigid/bgcheck/
|
320
|
+
- spec/bigid/bgcheck/internal_error_spec.rb
|
321
|
+
- spec/bigid/bgcheck/server_error_spec.rb
|
322
|
+
- spec/bigid/bgcheck/result_code_spec.rb
|
323
|
+
- spec/bigid/bgcheck/bad_request_error_spec.rb
|
322
324
|
- spec/bigid/bgcheck/base_error_spec.rb
|
data/CHANGELOG.md
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
# CHANGELOG for bigid_bgcheck
|
2
|
-
|
3
|
-
## v0.3.0
|
4
|
-
|
5
|
-
* Bump "bigid_auth" version from v0.1.0 to v0.2.0
|
6
|
-
|
7
|
-
## v0.2.0
|
8
|
-
|
9
|
-
Features
|
10
|
-
|
11
|
-
* Add fields to service return: "raw_data", "score_details", "related_score_details" and "raw_response" (the complete json file)
|
12
|
-
|
13
|
-
## v0.1.3
|
14
|
-
|
15
|
-
* Fix a problem with the locale initialization in Rails projects
|
16
|
-
|
17
|
-
## v0.1.2
|
18
|
-
|
19
|
-
* Move auth service to an external package
|
20
|
-
|
21
|
-
## v0.1.1
|
22
|
-
|
23
|
-
* Fix a problem with the credentials when its get by the env variables
|
24
|
-
* Fix rubocop warnings
|
25
|
-
|
26
|
-
## v0.1.0
|
27
|
-
|
28
|
-
* Initial release of bigid_bgcheck
|
data/README.md
DELETED
@@ -1,109 +0,0 @@
|
|
1
|
-
BigId Background Check's Library for Ruby
|
2
|
-
==============
|
3
|
-
|
4
|
-
[![Gem Version](https://badge.fury.io/rb/bigid_bgcheck.svg)](https://badge.fury.io/rb/bigid_bgcheck)
|
5
|
-
[![Build Status](https://travis-ci.com/Quasar-Flash/bigid_bgcheck.svg?branch=master)](https://travis-ci.com/Quasar-Flash/bigid_bgcheck)
|
6
|
-
[![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)
|
7
|
-
|
8
|
-
Requirements
|
9
|
-
-----------------
|
10
|
-
|
11
|
-
- Ruby: Any version
|
12
|
-
- Bundler
|
13
|
-
|
14
|
-
Included Modules
|
15
|
-
-----------------
|
16
|
-
|
17
|
-
- [bigid-auth-ruby](https://github.com/Quasar-Flash/bigid-auth-ruby) - BigID API authentication module
|
18
|
-
|
19
|
-
Global Installation
|
20
|
-
-----------------
|
21
|
-
|
22
|
-
```sh
|
23
|
-
gem install bigid_bgcheck
|
24
|
-
```
|
25
|
-
|
26
|
-
Installation for Rails
|
27
|
-
-----------------
|
28
|
-
|
29
|
-
```ruby
|
30
|
-
# Add to the Gemfile
|
31
|
-
gem "bigid_bgcheck", "~> 0.3"
|
32
|
-
gem "bigid_bgcheck", github: "Quasar-Flash/bigid_bgcheck"
|
33
|
-
```
|
34
|
-
|
35
|
-
Setting the BigID credentials
|
36
|
-
-----------------
|
37
|
-
|
38
|
-
```ruby
|
39
|
-
# Set the env variables
|
40
|
-
ENV["BIGID_USERNAME"] = "your_username"
|
41
|
-
ENV["BIGID_PASSWORD"] = "your_password"
|
42
|
-
```
|
43
|
-
|
44
|
-
Setting the BigID credentials - Rails Project
|
45
|
-
-----------------
|
46
|
-
|
47
|
-
Create the config/initializers/bigid.rb file and define:
|
48
|
-
|
49
|
-
```ruby
|
50
|
-
# Set the env variables
|
51
|
-
Bigid.configure do |config|
|
52
|
-
config.username = "your_username"
|
53
|
-
config.password = "your_password"
|
54
|
-
end
|
55
|
-
```
|
56
|
-
|
57
|
-
Applying a background check
|
58
|
-
-----------------
|
59
|
-
|
60
|
-
```ruby
|
61
|
-
require "bigid_bgcheck"
|
62
|
-
|
63
|
-
Bigid::Bgcheck::Request.new.call(
|
64
|
-
document: "000.000.000-00",
|
65
|
-
document_type: "CPF",
|
66
|
-
group: "Default"
|
67
|
-
)
|
68
|
-
```
|
69
|
-
|
70
|
-
Result Example
|
71
|
-
-----------------
|
72
|
-
|
73
|
-
```ruby
|
74
|
-
#<Bigid::Bgcheck::Result:0x0000560fef3c1068
|
75
|
-
@approved=false,
|
76
|
-
@ticket_id="00000000000000000",
|
77
|
-
@code=-1100,
|
78
|
-
@message="Not Approved",
|
79
|
-
@score=0,
|
80
|
-
@limit_score=0.0>
|
81
|
-
```
|
82
|
-
|
83
|
-
Problems?
|
84
|
-
-----------------
|
85
|
-
|
86
|
-
**Please do not directly email any committers with questions or problems.** A community is best served when discussions are held in public.
|
87
|
-
|
88
|
-
Searching the [issues](https://github.com/Quasar-Flash/bigid_bgcheck/issues) for your problem is also a good idea.
|
89
|
-
|
90
|
-
Contributing
|
91
|
-
-----------------
|
92
|
-
|
93
|
-
- Check out the latest master to make sure the feature hasn"t been implemented or the bug hasn't been fixed yet;
|
94
|
-
- Check out the issue tracker to make sure someone already hasn"t requested it and/or contributed it;
|
95
|
-
- Fork the project;
|
96
|
-
- Start a feature/bugfix branch;
|
97
|
-
- Commit and push until you are happy with your contribution;
|
98
|
-
- Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.;
|
99
|
-
- Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
100
|
-
|
101
|
-
License
|
102
|
-
-----------------
|
103
|
-
|
104
|
-
Please see [LICENSE](https://github.com/Quasar-Flash/bigid_bgcheck/blob/master/LICENSE.txt) for licensing details.
|
105
|
-
|
106
|
-
Authors
|
107
|
-
-----------------
|
108
|
-
|
109
|
-
Danilo Carolino, [@danilogco](https://github.com/danilogco) / [@Quasar-Flash](https://github.com/Quasar-Flash)
|