oa-cadun 3.1.1 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ module OACadun
2
2
  module VERSION
3
3
  MAJOR = 3
4
4
  MINOR = 1
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY] * '.'
8
8
  end
@@ -39,14 +39,16 @@ module OmniAuth
39
39
  :birthday => user.birthday.strftime('%d/%m/%Y'),
40
40
  :mobile => user.mobile,
41
41
  :phone => user.phone,
42
- :cpf => user.cpf
42
+ :cpf => user.cpf,
43
+ :user_type => user.user_type,
44
+ :zipcode => user.zipcode
43
45
  }
44
46
  }
45
47
  end
46
48
 
47
49
  protected
48
50
  def user
49
- @user ||= User.new(request.params['GLBID'], env['REMOTE_ADDR'], service_id)
51
+ @user ||= User.new(:glb_id => request.params['GLBID'], :ip => env['REMOTE_ADDR'], :service_id => service_id)
50
52
  end
51
53
 
52
54
  def service_id
data/oa-cadun.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.require_paths = %w(lib)
17
17
 
18
18
  s.add_dependency 'oa-core'
19
- s.add_dependency 'cadun', '0.2.1'
19
+ s.add_dependency 'cadun', '0.2.3'
20
20
  s.add_development_dependency 'rack'
21
21
  s.add_development_dependency 'rspec'
22
22
  s.add_development_dependency 'rr'
@@ -61,23 +61,25 @@ describe OmniAuth::Strategies::Cadun do
61
61
  end
62
62
 
63
63
  describe ":user_info" do
64
- specify { subject[:user_info].should include(:GLBID => "GLBID") }
65
- specify { subject[:user_info].should include(:id => "21737810") }
66
- specify { subject[:user_info].should include(:email => "fab1@spam.la") }
67
- specify { subject[:user_info].should include(:status => "ATIVO") }
68
- specify { subject[:user_info].should include(:nickname => "fabricio_fab1") }
69
- specify { subject[:user_info].should include(:name => "Fabricio Rodrigo Lopes") }
70
64
  specify { subject[:user_info].should include(:address => "Rua Uruguai, 59") }
71
- specify { subject[:user_info].should include(:neighborhood => "Andaraí") }
65
+ specify { subject[:user_info].should include(:birthday => "22/02/1983") }
72
66
  specify { subject[:user_info].should include(:city => "Rio de Janeiro") }
73
- specify { subject[:user_info].should include(:state => "RJ") }
74
67
  specify { subject[:user_info].should include(:country => "Brasil") }
68
+ specify { subject[:user_info].should include(:cpf => "09532034765") }
69
+ specify { subject[:user_info].should include(:email => "fab1@spam.la") }
75
70
  specify { subject[:user_info].should include(:gender => "MASCULINO") }
76
- specify { subject[:user_info].should include(:birthday => "22/02/1983") }
71
+ specify { subject[:user_info].should include(:GLBID => "GLBID") }
72
+ specify { subject[:user_info].should include(:id => "21737810") }
77
73
  specify { subject[:user_info].should include(:mobile => "21 99999999") }
74
+ specify { subject[:user_info].should include(:name => "Fabricio Rodrigo Lopes") }
75
+ specify { subject[:user_info].should include(:neighborhood => "Andaraí") }
76
+ specify { subject[:user_info].should include(:nickname => "fabricio_fab1") }
78
77
  specify { subject[:user_info].should include(:phone => "21 22881060") }
79
- specify { subject[:user_info].should include(:cpf => "09532034765") }
78
+ specify { subject[:user_info].should include(:state => "RJ") }
79
+ specify { subject[:user_info].should include(:status => "ATIVO") }
80
80
  specify { subject[:user_info].should include(:url => "/go_back") }
81
+ specify { subject[:user_info].should include(:user_type => "NAO_ASSINANTE") }
82
+ specify { subject[:user_info].should include(:zipcode => "20510060") }
81
83
  end
82
84
  end
83
85
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: oa-cadun
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 3.1.1
5
+ version: 3.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Bruno
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2011-05-24 00:00:00 -03:00
15
+ date: 2011-05-26 00:00:00 -03:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - "="
36
36
  - !ruby/object:Gem::Version
37
- version: 0.2.1
37
+ version: 0.2.3
38
38
  type: :runtime
39
39
  version_requirements: *id002
40
40
  - !ruby/object:Gem::Dependency