fbauth 1.2.0.4 → 1.2.1.0
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/app/helpers/fbauth_helper.rb +12 -1
- data/app/views/fbauth/_init.html.haml +1 -1
- metadata +6 -6
@@ -8,7 +8,18 @@ module FbauthHelper
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def fbauth_init_javascript options={}
|
11
|
-
render :partial => '/fbauth/init.html.haml', :locals => options
|
11
|
+
render :partial => '/fbauth/init.html.haml', :locals => options.merge(:channel_url => fbauth_build_url('/channel.html'))
|
12
|
+
end
|
13
|
+
|
14
|
+
def fbauth_build_url path
|
15
|
+
if request.ssl?
|
16
|
+
u = "https://"
|
17
|
+
else
|
18
|
+
u = "http://"
|
19
|
+
end
|
20
|
+
u += request.host
|
21
|
+
u += ":#{request.port}" if request.port != 80
|
22
|
+
u += path
|
12
23
|
end
|
13
24
|
|
14
25
|
def fbauth
|
@@ -1,6 +1,6 @@
|
|
1
1
|
- if auto_resize
|
2
2
|
:javascript
|
3
|
-
FB.init({appId: '#{FacebookConfig['app_id']}', status: true, cookie: true, xfbml: true});
|
3
|
+
FB.init({appId: '#{FacebookConfig['app_id']}', status: true, cookie: true, xfbml: true, channelUrl: '#{channel_url}'});
|
4
4
|
FB.Canvas.setAutoResize();
|
5
5
|
- else
|
6
6
|
:javascript
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fbauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 75
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
+
- 1
|
9
10
|
- 0
|
10
|
-
|
11
|
-
version: 1.2.0.4
|
11
|
+
version: 1.2.1.0
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Three Wise Men Inc.
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-03-
|
19
|
+
date: 2011-03-17 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
21
|
dependencies: []
|
22
22
|
|
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements: []
|
73
73
|
|
74
74
|
rubyforge_project:
|
75
|
-
rubygems_version: 1.
|
75
|
+
rubygems_version: 1.5.2
|
76
76
|
signing_key:
|
77
77
|
specification_version: 3
|
78
78
|
summary: Authentication framework for Rails Facebook apps
|