authlogic_facebook 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/authlogic_facebook.gemspec +2 -2
- data/lib/authlogic_facebook/session.rb +5 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
data/authlogic_facebook.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{authlogic_facebook}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Rusty Burchfield"]
|
12
|
-
s.date = %q{2009-12-
|
12
|
+
s.date = %q{2009-12-05}
|
13
13
|
s.description = %q{Authlogic plugin to support Facebook without Facebooker. A small unobtrusive gem (mini_fb) is used instead.}
|
14
14
|
s.email = %q{GICodeWarrior@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -69,7 +69,7 @@ module AuthlogicFacebook
|
|
69
69
|
# Clears out the block if we are authenticating with Facebook so that we
|
70
70
|
# can redirect without a DoubleRender error.
|
71
71
|
def save(&block)
|
72
|
-
block = nil if
|
72
|
+
block = nil if redirecting_to_facebook?
|
73
73
|
super(&block)
|
74
74
|
end
|
75
75
|
|
@@ -136,6 +136,10 @@ module AuthlogicFacebook
|
|
136
136
|
!unverified_facebook_params['uid'].blank?
|
137
137
|
end
|
138
138
|
|
139
|
+
def redirecting_to_facebook?
|
140
|
+
authenticating_with_facebook? && !facebook_callback?
|
141
|
+
end
|
142
|
+
|
139
143
|
def facebook_uid_field
|
140
144
|
self.class.facebook_uid_field
|
141
145
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authlogic_facebook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rusty Burchfield
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-05 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|