google_auth 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,7 @@ class SessionsController < ApplicationController
7
7
 
8
8
  def create
9
9
  if auth = request.env['omniauth.auth']
10
- user = User.find_or_initialize_by_email(auth['info']['email'])
10
+ user = GoogleAuth.user_class.find_or_initialize_by_email(auth['info']['email'])
11
11
  user.uid = auth['uid']
12
12
  user.name = auth['info']['name']
13
13
  user.save!
@@ -1,3 +1,3 @@
1
1
  module GoogleAuth
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-06 00:00:00.000000000 Z
12
+ date: 2012-10-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-google-apps
16
- requirement: &70304295909800 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,12 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70304295909800
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  description: ! 'Convenience wrapper for omniauth-google-apps: Makes a lot of assumptions,
26
31
  requires less configuration.'
27
32
  email:
@@ -61,9 +66,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
66
  version: '0'
62
67
  requirements: []
63
68
  rubyforge_project:
64
- rubygems_version: 1.8.11
69
+ rubygems_version: 1.8.23
65
70
  signing_key:
66
71
  specification_version: 3
67
72
  summary: Convenience wrapper of omniauth-google-apps
68
73
  test_files: []
69
- has_rdoc: