fbdoorman 0.7.8 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +19 -15
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/app/views/facebook/_fbjs.html.erb +1 -1
- data/lib/facebook_helpers.rb +1 -1
- metadata +24 -42
data/README.md
CHANGED
@@ -48,7 +48,24 @@ Install the following gems required by minifb ([sudo] gem install [gemname])
|
|
48
48
|
|
49
49
|
Same as clearance 0.8.8 this works with versions of Rails greater than 2.3.
|
50
50
|
|
51
|
-
gem install fbdoorman
|
51
|
+
gem install fbdoorman
|
52
|
+
|
53
|
+
Create your aplication in Facebook and set-up the information in config/facebook.yml (You'll have to create that file)
|
54
|
+
|
55
|
+
Facebook.yml
|
56
|
+
-----
|
57
|
+
|
58
|
+
You should create facebook.yml inside config folder, this is what it should look like.
|
59
|
+
|
60
|
+
:app_id: #Get this from http://www.facebook.com/developers/createapp.php
|
61
|
+
:secret: #from FB
|
62
|
+
:api_key: #from FB
|
63
|
+
:base_url: http://localhost:3000 #This is the url where you app's in, this is used to define where Fb should go after login
|
64
|
+
:after_login_path: /welcome/logged #Where to take your users when they login with FB
|
65
|
+
:after_register_path: /welcome/new #Where to go when a new user registers, use this to ask with a form for info specific to your app
|
66
|
+
:url_after_create: /welcome/logged Where to go when a session is created
|
67
|
+
|
68
|
+
*It's a common mistake to ass a trailing sladge at the end of the base_url. Doing that will brake the facebook redirections since the root sladge will be added twice and breaking the url*
|
52
69
|
|
53
70
|
Make sure the development database exists and run the generator.
|
54
71
|
|
@@ -67,20 +84,7 @@ This:
|
|
67
84
|
* prints further instructions
|
68
85
|
|
69
86
|
|
70
|
-
|
71
|
-
|
72
|
-
Facebook.yml
|
73
|
-
-----
|
74
|
-
|
75
|
-
You should create facebook.yml inside config folder, this is what it should look like.
|
76
|
-
|
77
|
-
:app_id: #Get this from http://www.facebook.com/developers/createapp.php
|
78
|
-
:secret: #from FB
|
79
|
-
:api_key: #from FB
|
80
|
-
:base_url: http://localhost:3000 #This is the url where you app's in, this is used to define where Fb should go after login
|
81
|
-
:after_login_path: /welcome/logged #Where to take your users when they login with FB
|
82
|
-
:after_register_path: /welcome/new #Where to go when a new user registers, use this to ask with a form for info specific to your app
|
83
|
-
:url_after_create: /welcome/logged Where to go when a session is created
|
87
|
+
|
84
88
|
|
85
89
|
|
86
90
|
Configure MailSender
|
data/Rakefile
CHANGED
@@ -18,7 +18,7 @@ Jeweler::Tasks.new do |gem|
|
|
18
18
|
gem.summary = "Rails authentication with facebook single sign-on OR email & password."
|
19
19
|
gem.description = "Painless user registration and sign-in using Facebook single sign-on with JS. Typical email login still works too."
|
20
20
|
gem.email = "pelaez89@gmail.com"
|
21
|
-
gem.version = "0.7.
|
21
|
+
gem.version = "0.7.9"
|
22
22
|
gem.homepage = "http://github.com/davidpelaez/minifb-clearance"
|
23
23
|
gem.authors = ["Fbdoorman: David Pelaez","MiniFB: Appoxy","Clearance: Thoughtbot"]
|
24
24
|
gem.files = FileList["[A-Z]*", "{app,config,generators,lib,shoulda_macros,rails}/**/*"]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.9
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<div id="fb-root"></div>
|
2
2
|
<script src="http://connect.facebook.net/en_US/all.js"></script>
|
3
3
|
<script>
|
4
|
-
FB.init({appId: '<%=FB_APP_ID%>', status: true, cookie: true, xfbml: true});
|
4
|
+
FB.init({appId: '<%=FB_APP_ID%>', status: true, cookie: true, xfbml: true, oauth: true});
|
5
5
|
FB.Event.subscribe('auth.sessionChange', function(response) {
|
6
6
|
if (response.session) {
|
7
7
|
// A user has logged in, and a new cookie has been saved
|
data/lib/facebook_helpers.rb
CHANGED
metadata
CHANGED
@@ -1,35 +1,27 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: fbdoorman
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.7.9
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 7
|
9
|
-
- 8
|
10
|
-
version: 0.7.8
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
13
|
-
-
|
14
|
-
-
|
15
|
-
-
|
7
|
+
authors:
|
8
|
+
- ! 'Fbdoorman: David Pelaez'
|
9
|
+
- ! 'MiniFB: Appoxy'
|
10
|
+
- ! 'Clearance: Thoughtbot'
|
16
11
|
autorequire:
|
17
12
|
bindir: bin
|
18
13
|
cert_chain: []
|
19
|
-
|
20
|
-
date: 2010-12-29 00:00:00 Z
|
14
|
+
date: 2011-12-16 00:00:00.000000000Z
|
21
15
|
dependencies: []
|
22
|
-
|
23
|
-
|
16
|
+
description: Painless user registration and sign-in using Facebook single sign-on
|
17
|
+
with JS. Typical email login still works too.
|
24
18
|
email: pelaez89@gmail.com
|
25
19
|
executables: []
|
26
|
-
|
27
20
|
extensions: []
|
28
|
-
|
29
|
-
extra_rdoc_files:
|
21
|
+
extra_rdoc_files:
|
30
22
|
- LICENSE
|
31
23
|
- README.md
|
32
|
-
files:
|
24
|
+
files:
|
33
25
|
- CHANGELOG.md
|
34
26
|
- LICENSE
|
35
27
|
- README.md
|
@@ -74,36 +66,26 @@ files:
|
|
74
66
|
- rails/init.rb
|
75
67
|
homepage: http://github.com/davidpelaez/minifb-clearance
|
76
68
|
licenses: []
|
77
|
-
|
78
69
|
post_install_message:
|
79
|
-
rdoc_options:
|
80
|
-
|
81
|
-
require_paths:
|
70
|
+
rdoc_options: []
|
71
|
+
require_paths:
|
82
72
|
- lib
|
83
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
84
74
|
none: false
|
85
|
-
requirements:
|
86
|
-
- -
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
|
89
|
-
|
90
|
-
- 0
|
91
|
-
version: "0"
|
92
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
80
|
none: false
|
94
|
-
requirements:
|
95
|
-
- -
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
|
98
|
-
segments:
|
99
|
-
- 0
|
100
|
-
version: "0"
|
81
|
+
requirements:
|
82
|
+
- - ! '>='
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
101
85
|
requirements: []
|
102
|
-
|
103
86
|
rubyforge_project:
|
104
87
|
rubygems_version: 1.7.2
|
105
88
|
signing_key:
|
106
89
|
specification_version: 3
|
107
90
|
summary: Rails authentication with facebook single sign-on OR email & password.
|
108
91
|
test_files: []
|
109
|
-
|