omniauth-boletosimples 0.0.2 → 0.0.4

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: 4b742697f424af46dc74bbb6062d47703eef7c4a
4
- data.tar.gz: 044cb75aa7c69832e01897412e92be0799d129d5
3
+ metadata.gz: b10123e7d43f69648f38f2f8cdeeeed33b9dd0d7
4
+ data.tar.gz: 99cc50218d730adc0ac56ab426513ab15dbf12e2
5
5
  SHA512:
6
- metadata.gz: c117b12aa265ad470ced3972ee533d0e92588ed7f549e4cfe36413f06a80e649779abdbc51180a6a5903a91319e5c7a10c729fae95451acfdea2ba2d4e467699
7
- data.tar.gz: 02979513f6af92372e24ee2a6cb6dab829edb74f00f9b0fc51814663cacfa80fbe836b7bee2b763dd41e85208a22dff38dfb284d4289fe1b589c6fde311f015f
6
+ metadata.gz: 5ad10f6ed77097b2f46433d546db8fed7cc071b95e05156940e08a1910e7f684087b2d9a52cbb51cb233a7ba7cc02758c541caed2f44265712410965534e9e34
7
+ data.tar.gz: b882b2967d06095194b910386603ad47d5828475b8f2fe27622c5664423e2f3ad48c849cbcacaab2ca0a5b4c47bc92d58470f16b4ef81a686fcf6d3e789f239e
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  *.gem
2
+ .idea
data/Gemfile.lock CHANGED
@@ -11,8 +11,8 @@ GIT
11
11
  PATH
12
12
  remote: .
13
13
  specs:
14
- omniauth-boletosimples (0.0.2)
15
- omniauth-oauth2 (~> 1.1.0)
14
+ omniauth-boletosimples (0.0.4)
15
+ omniauth-oauth2 (~> 1.1.2)
16
16
 
17
17
  GEM
18
18
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # OmniAuth BoletoSimples
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/omniauth-boletosimples.svg)](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:
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module BoletoSimples
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -24,9 +24,13 @@ module OmniAuth
24
24
  info do
25
25
  {
26
26
  person_type: raw_info['person_type'],
27
- person_name: raw_info['person_name'],
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
- cnpj_cpf: raw_info['cnpj_cpf']
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
- paypal_account: raw_info['paypal_account'],
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/BielSystems/omniauth-boletosimples'
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.0'
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.2
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-04-17 00:00:00.000000000 Z
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.0
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.0
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/BielSystems/omniauth-boletosimples
82
+ homepage: https://github.com/BoletoSimples/omniauth-boletosimples
81
83
  licenses:
82
84
  - MIT
83
85
  metadata: {}