oa-globocom 0.4.7 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ module OAGloboCom
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 4
5
- PATCH = 7
5
+ PATCH = 8
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH] * '.'
8
8
  end
@@ -24,7 +24,7 @@ module OmniAuth
24
24
  def callback_phase
25
25
  begin
26
26
  super
27
- rescue => e
27
+ rescue Exception => e
28
28
  logger.error(log_exception(e)) if logger
29
29
 
30
30
  fail!(e.message, e.message)
@@ -48,8 +48,8 @@ describe OmniAuth::Strategies::GloboCom do
48
48
  end
49
49
 
50
50
  it { strategy.env['omniauth.auth'].should be_nil }
51
- it { strategy.env['omniauth.error'].should == "Unauthorized" }
52
- it { strategy.env['omniauth.error.type'].should == :Unauthorized }
51
+ it { strategy.env['omniauth.error'].should == "NAO_AUTORIZADO" }
52
+ it { strategy.env['omniauth.error.type'].should == :NAO_AUTORIZADO }
53
53
  end
54
54
 
55
55
  context "when the authorization succeeds" do
@@ -144,8 +144,8 @@ describe OmniAuth::Strategies::GloboCom do
144
144
  stub_fail_requests
145
145
  strategy.call! Rack::MockRequest.env_for("http://localhost/auth/cadun/callback?GLBID=GLBID", "rack.session" => {}, "REMOTE_ADDR" => "127.0.0.1")
146
146
 
147
- exception = Exception.new('Error')
148
- strategy.log_exception(exception).should == "SERVER_NAME: localhost | PATH_INFO: /auth/cadun/callback | QUERY_STRING: GLBID=GLBID | EXCEPTION: Error"
147
+ exception = Exception.new('NAO_AUTORIZADO')
148
+ strategy.log_exception(exception).should == "SERVER_NAME: localhost | PATH_INFO: /auth/cadun/callback | QUERY_STRING: GLBID=GLBID | EXCEPTION: NAO_AUTORIZADO"
149
149
  end
150
150
  end
151
151
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oa-globocom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -15,7 +15,7 @@ date: 2011-08-05 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: oa-core
18
- requirement: &2152430320 !ruby/object:Gem::Requirement
18
+ requirement: &2164414600 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 0.2.6
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2152430320
26
+ version_requirements: *2164414600
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: cadun
29
- requirement: &2152429820 !ruby/object:Gem::Requirement
29
+ requirement: &2157532540 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ~>
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 0.5.5
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *2152429820
37
+ version_requirements: *2157532540
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rack
40
- requirement: &2152429440 !ruby/object:Gem::Requirement
40
+ requirement: &2157532160 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: '0'
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *2152429440
48
+ version_requirements: *2157532160
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: rake
51
- requirement: &2152428980 !ruby/object:Gem::Requirement
51
+ requirement: &2157531700 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: '0'
57
57
  type: :development
58
58
  prerelease: false
59
- version_requirements: *2152428980
59
+ version_requirements: *2157531700
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: rspec
62
- requirement: &2152428560 !ruby/object:Gem::Requirement
62
+ requirement: &2157531280 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: '0'
68
68
  type: :development
69
69
  prerelease: false
70
- version_requirements: *2152428560
70
+ version_requirements: *2157531280
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: rr
73
- requirement: &2152428140 !ruby/object:Gem::Requirement
73
+ requirement: &2157530860 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: '0'
79
79
  type: :development
80
80
  prerelease: false
81
- version_requirements: *2152428140
81
+ version_requirements: *2157530860
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: fakeweb
84
- requirement: &2152427720 !ruby/object:Gem::Requirement
84
+ requirement: &2157530440 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
@@ -89,7 +89,7 @@ dependencies:
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
- version_requirements: *2152427720
92
+ version_requirements: *2157530440
93
93
  description: The goal of this gem is to allow the developer to use ContaGlobo.com
94
94
  (a login webservice made by Globo.com) in any web app using OmniAuth
95
95
  email: