omniauth-boletosimples 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: b10123e7d43f69648f38f2f8cdeeeed33b9dd0d7
4
- data.tar.gz: 99cc50218d730adc0ac56ab426513ab15dbf12e2
3
+ metadata.gz: 45d2277bc4a073c872f68f6c851c538c79e39b18
4
+ data.tar.gz: 624725b1d81e5ff094bcff8873b4ec65ca9ed8af
5
5
  SHA512:
6
- metadata.gz: 5ad10f6ed77097b2f46433d546db8fed7cc071b95e05156940e08a1910e7f684087b2d9a52cbb51cb233a7ba7cc02758c541caed2f44265712410965534e9e34
7
- data.tar.gz: b882b2967d06095194b910386603ad47d5828475b8f2fe27622c5664423e2f3ad48c849cbcacaab2ca0a5b4c47bc92d58470f16b4ef81a686fcf6d3e789f239e
6
+ metadata.gz: e86c24ea989775858915598e23ea3f0799c4eb1365f488742043de87b175a405cb4ed7ce9a32f7a2a07c2861a057024a786a7a999fd1df1afe61d01eb79ee49c
7
+ data.tar.gz: 946bd51e5631547c896544613cbaffaf2bedd27bbd410ce1d03e076b7352557c060171e1d7474f33cc257aa9fda976834a0cce58a1bba9d1bea4bcbc1eb8b4b8
data/Gemfile.lock CHANGED
@@ -11,7 +11,7 @@ GIT
11
11
  PATH
12
12
  remote: .
13
13
  specs:
14
- omniauth-boletosimples (0.0.4)
14
+ omniauth-boletosimples (0.0.5)
15
15
  omniauth-oauth2 (~> 1.1.2)
16
16
 
17
17
  GEM
data/README.md CHANGED
@@ -22,7 +22,7 @@ Here's a quick example, adding the middleware to a Rails app in `config/initiali
22
22
 
23
23
  ```ruby
24
24
  Rails.application.config.middleware.use OmniAuth::Builder do
25
- provider :boletosimples, ENV['APP_ID'], ENV['APP_TOKEN'], sandbox: true, scope: "profile email", user_agent: 'Your App (yourapp@example.com)'
25
+ provider :boletosimples, ENV['APP_ID'], ENV['APP_TOKEN'], environment: :sandbox, scope: "profile email", user_agent: 'Your App (yourapp@example.com)'
26
26
  end
27
27
  ```
28
28
 
@@ -34,9 +34,13 @@ The possible attributes to be returned at the moment are:
34
34
 
35
35
  ```ruby
36
36
  info['person_type']
37
- info['person_name']
37
+ info['first_name']
38
+ info['middle_name']
39
+ info['last_name']
40
+ info['full_name']
41
+ info['date_of_birth']
38
42
  info['email']
39
- info['cnpj_cpf']
43
+ info['cpf']
40
44
 
41
45
  extra['address_street_name']
42
46
  extra['address_number']
@@ -48,12 +52,15 @@ extra['address_postal_code']
48
52
  extra['phone_number']
49
53
  extra['banking_bank_number']
50
54
  extra['banking_agency_number']
55
+ extra['banking_agency_digit']
51
56
  extra['banking_account_number']
52
57
  extra['banking_account_digit']
53
58
  extra['banking_person_type']
54
59
  extra['banking_person_name']
55
60
  extra['banking_cnpj_cpf']
56
- extra['paypal_account']
61
+ extra['business_name']
62
+ extra['business_cnpj']
63
+
57
64
  ```
58
65
 
59
66
  The actual set of attributes returned depends on the scopes set. The currently available scopes are:
@@ -65,6 +72,7 @@ email
65
72
  phone
66
73
  address
67
74
  banking
75
+ business
68
76
  write
69
77
  read
70
78
  webhook
@@ -82,9 +90,13 @@ provider: boletosimples
82
90
  uid: 1
83
91
  info:
84
92
  person_type: 'individual'
85
- person_name: 'Henry Renato Leonardo Barros'
93
+ first_name: 'Henry Renato'
94
+ middle_name: 'Leonardo'
95
+ last_name: 'Barros'
96
+ full_name: 'Henry Renato Leonardo Barros'
97
+ date_of_birth: '1987-04-01'
86
98
  email: 'henry@example.com'
87
- cnpj_cpf: '139.586.432-21'
99
+ cpf: '139.586.432-21'
88
100
  credentials:
89
101
  token: <token>
90
102
  refresh_token: <refresh token>
@@ -101,18 +113,23 @@ extra:
101
113
  phone_number: '6336151015'
102
114
  banking_bank_number: '237'
103
115
  banking_agency_number: '3290'
116
+ banking_agency_digit: '1'
104
117
  banking_account_number: '1028'
105
118
  banking_account_digit: '9'
106
119
  banking_person_type: 'individual'
107
120
  banking_person_name: 'Henry Renato Leonardo Barros'
108
121
  banking_cnpj_cpf: '139.586.432-21'
109
- paypal_account: 'henry@example.com'
122
+ business_name: 'Boleto Simples Cobranças Ltda'
123
+ business_cnpj: '05.813.794/0001-26'
110
124
  ```
111
125
 
112
126
  ## Issues
113
127
 
114
128
  If you have problems, please create a [Github Issue](https://github.com/BoletoSimples/omniauth-boletosimples/issues).
115
129
 
130
+ ## Sample Code
131
+ Check our [Sample Code](https://github.com/BoletoSimples/login-with-boletosimples-demo-rails)
132
+
116
133
  ## Contributing
117
134
 
118
135
  Please see [CONTRIBUTING.md](https://github.com/BoletoSimples/omniauth-boletosimples/blob/master/CONTRIBUTING.md) for details.
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module BoletoSimples
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -17,7 +17,7 @@ module OmniAuth
17
17
 
18
18
  option :authorize_options, [:scope, :response_type]
19
19
  option :provider_ignores_state, true
20
- option :sandbox, false
20
+ option :environment, :production
21
21
 
22
22
  uid { raw_info['id'] }
23
23
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-boletosimples
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael Lima