RubyApp 0.6.42 → 0.6.43

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.
@@ -27,19 +27,27 @@ module RubyApp
27
27
 
28
28
  def process_request(request)
29
29
  ax_request = ::OpenID::AX::FetchRequest.new
30
- ax_request.add(::OpenID::AX::AttrInfo.new(RubyApp::Elements::Mobile::Documents::Authentication::OpenId::AxAuthenticationDocument.configuration.attributes.email, 'Email', true))
30
+ self.process_ax_request(ax_request)
31
31
  request.add_extension(ax_request)
32
32
  end
33
33
 
34
+ def process_ax_request(ax_request)
35
+ ax_request.add(::OpenID::AX::AttrInfo.new(RubyApp::Elements::Mobile::Documents::Authentication::OpenId::AxAuthenticationDocument.configuration.attributes.email, 'Email', true))
36
+ end
37
+
34
38
  def create_identity_from_response(response)
35
39
  ax_response = ::OpenID::AX::FetchResponse.from_success_response(response)
36
40
  if ax_response
37
- return self.create_identity_from_email(ax_response.data[RubyApp::Elements::Mobile::Documents::Authentication::OpenId::AxAuthenticationDocument.configuration.attributes.email].first)
41
+ return self.create_identity_from_ax_response(ax_response)
38
42
  else
39
43
  return super(response)
40
44
  end
41
45
  end
42
46
 
47
+ def create_identity_from_ax_response(ax_response)
48
+ return self.create_identity_from_email(ax_response.data[RubyApp::Elements::Mobile::Documents::Authentication::OpenId::AxAuthenticationDocument.configuration.attributes.email].first)
49
+ end
50
+
43
51
  end
44
52
 
45
53
  end
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.6.42"
2
+ VERSION = "0.6.43"
3
3
  ROOT = File.expand_path(File.dirname(__FILE__))
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RubyApp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 83
4
+ hash: 81
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 42
10
- version: 0.6.42
9
+ - 43
10
+ version: 0.6.43
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frank G. Ficnar
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-10-21 00:00:00 Z
18
+ date: 2012-10-22 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement