authlogic-connect 0.0.4.03 → 0.0.4.04

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/Rakefile CHANGED
@@ -6,7 +6,7 @@ require 'rake/gempackagetask'
6
6
  spec = Gem::Specification.new do |s|
7
7
  s.name = "authlogic-connect"
8
8
  s.author = "Lance Pollard"
9
- s.version = "0.0.4.03"
9
+ s.version = "0.0.4.04"
10
10
  s.summary = "Authlogic Connect: Oauth and OpenID made dead simple"
11
11
  s.homepage = "http://github.com/viatropos/authlogic-connect"
12
12
  s.email = "lancejpollard@gmail.com"
@@ -32,7 +32,7 @@ module AuthlogicConnect::Oauth::User
32
32
  # modules work like inheritance
33
33
  def save_oauth_session
34
34
  super
35
- auth_session[:auth_attributes] = attributes.reject!{|k, v| v.blank?} unless is_auth_session?
35
+ auth_session[:auth_attributes] = attributes.reject!{|k, v| v.blank? || !self.respond_to?(k)} unless is_auth_session?
36
36
  end
37
37
 
38
38
  def redirect_to_oauth
@@ -22,7 +22,6 @@ module AuthlogicConnect::Openid
22
22
  super
23
23
  values = value.is_a?(Array) ? value : [value]
24
24
  hash = values.first.is_a?(Hash) ? values.first.with_indifferent_access : nil
25
- self.openid_identifier = hash[:openid_identifier] if !hash.nil? && hash.key?(:openid_identifier)
26
25
  end
27
26
 
28
27
  private
@@ -28,10 +28,8 @@ module AuthlogicConnect::Openid
28
28
  attrs_to_save = attributes.clone.delete_if do |k, v|
29
29
  attr_list.include?(k.to_sym)
30
30
  end
31
- if self.respond_to?(:password) && self.respond_to?(:password_confirmation)
32
- attrs_to_save.merge!(:password => password, :password_confirmation => password_confirmation)
33
- end
34
- attrs_to_save
31
+ attrs_to_save.merge!(:password => password, :password_confirmation => password_confirmation)
32
+ attrs_to_save.reject!{|k, v| v.blank? || !self.respond_to?(k)}
35
33
  end
36
34
  end
37
35
  end
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 0
8
8
  - 4
9
- - 3
10
- version: 0.0.4.03
9
+ - 4
10
+ version: 0.0.4.04
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lance Pollard