socialite 0.1.0.pre.2 → 0.1.0.pre.3

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.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Socialite
1
+ # Socialite [![Build Status](https://travis-ci.org/jsmestad/socialite.png?branch=master)](https://travis-ci.org/jsmestad/socialite)
2
2
 
3
3
  This is an opinionated Rails 3.1 mountable engine provides your application with
4
4
  support for managing multiple OAuth providers per User.
@@ -8,7 +8,7 @@ module Socialite
8
8
  end
9
9
 
10
10
  def current_user
11
- @current_user ||= User.find_by_id(session[:user_id])
11
+ @current_user ||= Socialite.user_class.find(session[:user_id])
12
12
  end
13
13
 
14
14
  def user_signed_in?
@@ -32,7 +32,7 @@ module Socialite
32
32
  def create_from_omniauth(auth)
33
33
  create do |user|
34
34
  user.name = auth['info']['name']
35
- user.name = auth['info']['email']
35
+ user.email = auth['info']['email']
36
36
  user.password ||= rand(36**10).to_s(36)
37
37
  end
38
38
  end
@@ -1,3 +1,3 @@
1
1
  module Socialite
2
- VERSION = '0.1.0.pre.2'
2
+ VERSION = '0.1.0.pre.3'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: socialite
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 0.1.0.pre.2
5
+ version: 0.1.0.pre.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Justin Smestad
@@ -409,7 +409,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
409
409
  - !ruby/object:Gem::Version
410
410
  segments:
411
411
  - 0
412
- hash: -787279925387958713
412
+ hash: 4151013875851256199
413
413
  version: '0'
414
414
  required_rubygems_version: !ruby/object:Gem::Requirement
415
415
  none: false