omniauth-boletosimples 0.0.2 → 0.0.4
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 +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +2 -2
- data/README.md +5 -1
- data/lib/omniauth/boletosimples/version.rb +1 -1
- data/lib/omniauth/strategies/boletosimples.rb +9 -3
- data/omniauth-boletosimples.gemspec +4 -4
- metadata +7 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b10123e7d43f69648f38f2f8cdeeeed33b9dd0d7
|
|
4
|
+
data.tar.gz: 99cc50218d730adc0ac56ab426513ab15dbf12e2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ad10f6ed77097b2f46433d546db8fed7cc071b95e05156940e08a1910e7f684087b2d9a52cbb51cb233a7ba7cc02758c541caed2f44265712410965534e9e34
|
|
7
|
+
data.tar.gz: b882b2967d06095194b910386603ad47d5828475b8f2fe27622c5664423e2f3ad48c849cbcacaab2ca0a5b4c47bc92d58470f16b4ef81a686fcf6d3e789f239e
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# OmniAuth BoletoSimples
|
|
2
2
|
|
|
3
|
+
[](http://badge.fury.io/rb/omniauth-boletosimples)
|
|
4
|
+
|
|
3
5
|
This gem contains the Log In With Boleto Simples strategy for OmniAuth.
|
|
4
6
|
|
|
5
7
|
## Installing
|
|
@@ -20,10 +22,12 @@ Here's a quick example, adding the middleware to a Rails app in `config/initiali
|
|
|
20
22
|
|
|
21
23
|
```ruby
|
|
22
24
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
|
23
|
-
provider :boletosimples, ENV['APP_ID'], ENV['APP_TOKEN'], sandbox: true, scope: "profile email"
|
|
25
|
+
provider :boletosimples, ENV['APP_ID'], ENV['APP_TOKEN'], sandbox: true, scope: "profile email", user_agent: 'Your App (yourapp@example.com)'
|
|
24
26
|
end
|
|
25
27
|
```
|
|
26
28
|
|
|
29
|
+
It is important to set user_agent with a valid email address inside, otherwise the integration will not work.
|
|
30
|
+
|
|
27
31
|
## Attributes and Scopes
|
|
28
32
|
|
|
29
33
|
The possible attributes to be returned at the moment are:
|
|
@@ -24,9 +24,13 @@ module OmniAuth
|
|
|
24
24
|
info do
|
|
25
25
|
{
|
|
26
26
|
person_type: raw_info['person_type'],
|
|
27
|
-
|
|
27
|
+
first_name: raw_info[':first_name'],
|
|
28
|
+
middle_name: raw_info[':middle_name'],
|
|
29
|
+
last_name: raw_info[':last_name'],
|
|
30
|
+
full_name: raw_info[':full_name'],
|
|
31
|
+
date_of_birth: raw_info[':date_of_birth'],
|
|
28
32
|
email: raw_info['email'],
|
|
29
|
-
|
|
33
|
+
cpf: raw_info['cpf']
|
|
30
34
|
}
|
|
31
35
|
end
|
|
32
36
|
|
|
@@ -42,12 +46,14 @@ module OmniAuth
|
|
|
42
46
|
phone_number: raw_info['phone_number'],
|
|
43
47
|
banking_bank_number: raw_info['banking_bank_number'],
|
|
44
48
|
banking_agency_number: raw_info['banking_agency_number'],
|
|
49
|
+
banking_agency_digit: raw_info['banking_agency_digit'],
|
|
45
50
|
banking_account_number: raw_info['banking_account_number'],
|
|
46
51
|
banking_account_digit: raw_info['banking_account_digit'],
|
|
47
52
|
banking_person_type: raw_info['banking_person_type'],
|
|
48
53
|
banking_person_name: raw_info['banking_person_name'],
|
|
49
54
|
banking_cnpj_cpf: raw_info['banking_cnpj_cpf'],
|
|
50
|
-
|
|
55
|
+
business_name: raw_info['business_name'],
|
|
56
|
+
business_cnpj: raw_info['business_cnpj']
|
|
51
57
|
}
|
|
52
58
|
end
|
|
53
59
|
|
|
@@ -5,10 +5,10 @@ require 'omniauth/boletosimples/version'
|
|
|
5
5
|
Gem::Specification.new do |s|
|
|
6
6
|
s.name = 'omniauth-boletosimples'
|
|
7
7
|
s.version = OmniAuth::BoletoSimples::VERSION
|
|
8
|
-
s.authors = ['Rafael Lima']
|
|
9
|
-
s.email = ['contato@rafael.adm.br']
|
|
8
|
+
s.authors = ['Rafael Lima', 'Kivanio Barbosa']
|
|
9
|
+
s.email = ['contato@rafael.adm.br', 'kivanio@gmail.com']
|
|
10
10
|
s.summary = 'BoletoSimples strategy for OmniAuth'
|
|
11
|
-
s.homepage = 'https://github.com/
|
|
11
|
+
s.homepage = 'https://github.com/BoletoSimples/omniauth-boletosimples'
|
|
12
12
|
s.license = 'MIT'
|
|
13
13
|
|
|
14
14
|
s.files = `git ls-files`.split("\n")
|
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
|
16
16
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
|
17
17
|
s.require_paths = ['lib']
|
|
18
18
|
|
|
19
|
-
s.add_runtime_dependency 'omniauth-oauth2', '~> 1.1.
|
|
19
|
+
s.add_runtime_dependency 'omniauth-oauth2', '~> 1.1.2'
|
|
20
20
|
|
|
21
21
|
s.add_development_dependency 'rspec', '~> 2.14'
|
|
22
22
|
s.add_development_dependency 'rake'
|
metadata
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-boletosimples
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rafael Lima
|
|
8
|
+
- Kivanio Barbosa
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
12
|
+
date: 2014-05-13 00:00:00.000000000 Z
|
|
12
13
|
dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
|
14
15
|
name: omniauth-oauth2
|
|
@@ -16,14 +17,14 @@ dependencies:
|
|
|
16
17
|
requirements:
|
|
17
18
|
- - "~>"
|
|
18
19
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.1.
|
|
20
|
+
version: 1.1.2
|
|
20
21
|
type: :runtime
|
|
21
22
|
prerelease: false
|
|
22
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
24
|
requirements:
|
|
24
25
|
- - "~>"
|
|
25
26
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 1.1.
|
|
27
|
+
version: 1.1.2
|
|
27
28
|
- !ruby/object:Gem::Dependency
|
|
28
29
|
name: rspec
|
|
29
30
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -55,6 +56,7 @@ dependencies:
|
|
|
55
56
|
description:
|
|
56
57
|
email:
|
|
57
58
|
- contato@rafael.adm.br
|
|
59
|
+
- kivanio@gmail.com
|
|
58
60
|
executables: []
|
|
59
61
|
extensions: []
|
|
60
62
|
extra_rdoc_files: []
|
|
@@ -77,7 +79,7 @@ files:
|
|
|
77
79
|
- spec/omniauth/strategies/boletosimples_spec.rb
|
|
78
80
|
- spec/spec_helper.rb
|
|
79
81
|
- spec/support/shared_examples.rb
|
|
80
|
-
homepage: https://github.com/
|
|
82
|
+
homepage: https://github.com/BoletoSimples/omniauth-boletosimples
|
|
81
83
|
licenses:
|
|
82
84
|
- MIT
|
|
83
85
|
metadata: {}
|