facebook_registration 0.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +14 -2
- data/MIT-LICENSE +20 -0
- data/README.rdoc +13 -4
- data/facebook_registration.gemspec +4 -4
- data/facebooker.yml +9 -9
- data/lib/helpers/helpers.rb +2 -1
- metadata +28 -9
data/CHANGELOG.rdoc
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
-
===
|
1
|
+
=== 0.0.1 / 2011-02-01
|
2
2
|
|
3
|
-
* Initial Release.
|
3
|
+
* Initial Release.
|
4
|
+
|
5
|
+
=== 1.0.0 / 2011-02-01
|
6
|
+
|
7
|
+
* Correction in showing registration form.
|
8
|
+
|
9
|
+
=== 1.0.1 / 2011-02-02
|
10
|
+
|
11
|
+
* Bug fixes and README file changes.
|
12
|
+
|
13
|
+
=== 1.0.3 / 2011-09-07
|
14
|
+
|
15
|
+
* Missing MIT-LICENSE added.
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011 Veerasundaravel Thirugnanasundaram
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
CHANGED
@@ -29,11 +29,20 @@ You can copy facebooker.yml file which one is already available in this Root dir
|
|
29
29
|
|
30
30
|
or
|
31
31
|
|
32
|
-
<%= fb_registration_form("fields" =>"[{'name':'name'}, {'name':'email'}, {'name':'password'}, {'name':'username','description':'Username','type':'text'}, {'name':'like', 'description':'You like this Website', 'type':'checkbox', 'default':'checked'}]", "fb_only"=>false, "redirect-uri"=>"http://localhost:3000/fb_registration", "width" =>830) %>
|
32
|
+
<%= fb_registration_form("fields" =>"[{'name':'name'}, {'name':'email'}, {'name':'password'}, {'name':'username','description':'Username','type':'text'}, {'name':'like', 'description':'You like this Website', 'type':'checkbox', 'default':'checked'}]", "fb_only"=>false, "redirect-uri"=>"http://localhost:3000/fb_registration", "width" =>830, "onvalidate"=>"validate_async") %>
|
33
33
|
|
34
|
-
|
35
|
-
|
36
|
-
|
34
|
+
Available parameters:
|
35
|
+
|
36
|
+
redirect-uri: The URI that will process the signed_request. It must be prefixed by your Site URL.
|
37
|
+
fields: Comma separated list of Named Fields, or JSON of Custom Fields.
|
38
|
+
fb_only: Optional. (boolean) Only allow users to register by linking their Facebook profile. Use this if you do not have your own registration system. Default: false.
|
39
|
+
width: Optional. (int) The width of the iframe in pixels. If the width is < 520 the plugin will render in a small layout.
|
40
|
+
onvalidate: Javascript function for client side validate of form inputs. And more...
|
41
|
+
|
42
|
+
|
43
|
+
For more form field specifications refer these urls:
|
44
|
+
http://developers.facebook.com/docs/plugins/registration#named_fields
|
45
|
+
http://developers.facebook.com/docs/plugins/registration#custom_fields
|
37
46
|
|
38
47
|
|
39
48
|
=== Accessing profile informations
|
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{facebook_registration}
|
5
|
-
s.version = "
|
5
|
+
s.version = "1.0.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Veerasundaravel Thirugnanasundaram"]
|
9
|
-
s.date = %q{2011-
|
9
|
+
s.date = %q{2011-09-07}
|
10
10
|
s.description = %q{facebook_registration is a ruby library for displaying new Facebook Registration form and to parse to signed_request[http://developers.facebook.com/docs/plugins/registration].}
|
11
11
|
s.email = ["veerasundaravel@gmail.com"]
|
12
12
|
s.extra_rdoc_files = ["CHANGELOG.rdoc", "README.rdoc", ]
|
13
|
-
s.files = ["CHANGELOG.rdoc", "README.rdoc", "facebook_registration.gemspec", "facebooker.yml", "lib/facebook_registration.rb", "lib/helpers/helpers.rb", "lib/rails/signed_request.rb"]
|
13
|
+
s.files = ["CHANGELOG.rdoc", "README.rdoc", "MIT-LICENSE", "facebook_registration.gemspec", "facebooker.yml", "lib/facebook_registration.rb", "lib/helpers/helpers.rb", "lib/rails/signed_request.rb"]
|
14
14
|
s.homepage = %q{http://veerasundaravel.wordpress.com/2011/01/27/facebook-registration-plugin-in-rails/}
|
15
15
|
s.rdoc_options = ["--main", "README.rdoc"]
|
16
16
|
s.require_paths = ["lib"]
|
@@ -26,4 +26,4 @@ Gem::Specification.new do |s|
|
|
26
26
|
else
|
27
27
|
s.add_dependency(%q<yajl-ruby>, [">= 0.7.6"])
|
28
28
|
end
|
29
|
-
end
|
29
|
+
end
|
data/facebooker.yml
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
development:
|
2
|
-
app_id:
|
3
|
-
api_key:
|
4
|
-
secret_key:
|
2
|
+
app_id: xxxxxxxxxxxxxxx
|
3
|
+
api_key: xxxxxxxxxxxxxxx
|
4
|
+
secret_key: xxxxxxxxxxxxxxx
|
5
5
|
|
6
6
|
production:
|
7
|
-
app_id:
|
8
|
-
api_key:
|
9
|
-
secret_key:
|
7
|
+
app_id: xxxxxxxxxxxxxxx
|
8
|
+
api_key: xxxxxxxxxxxxxxx
|
9
|
+
secret_key: xxxxxxxxxxxxxxx
|
10
10
|
|
11
11
|
test:
|
12
|
-
app_id:
|
13
|
-
api_key:
|
14
|
-
secret_key:
|
12
|
+
app_id: xxxxxxxxxxxxxxx
|
13
|
+
api_key: xxxxxxxxxxxxxxx
|
14
|
+
secret_key: xxxxxxxxxxxxxxx
|
data/lib/helpers/helpers.rb
CHANGED
@@ -9,11 +9,12 @@ module FacebookRegistration
|
|
9
9
|
|
10
10
|
def init_fb_registration
|
11
11
|
raise "Must set Application ID for initializing" unless defined?(FACEBOOK_CONFIG) && FACEBOOK_CONFIG["app_id"]
|
12
|
-
"<script src=\"http://connect.facebook.net/en_US/all.js#appId=#{FACEBOOK_CONFIG["app_id"]}&xfbml=1\"></script> \n <script src=\"http://code.jquery.com/jquery-1.4.4.min.js\"></script>"
|
12
|
+
"<div id=\"fb-root\"></div> \n <script src=\"http://connect.facebook.net/en_US/all.js#appId=#{FACEBOOK_CONFIG["app_id"]}&xfbml=1\"></script> \n <script src=\"http://code.jquery.com/jquery-1.4.4.min.js\"></script>"
|
13
13
|
end
|
14
14
|
|
15
15
|
def fb_registration_form(options={})
|
16
16
|
options = DefaultValues.merge(options).delete_if { |key, value| value.nil? }
|
17
|
+
|
17
18
|
str = "<fb:registration"
|
18
19
|
options.each_pair do |key, value|
|
19
20
|
str += " #{key} = \"#{value}\""
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: facebook_registration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 17
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 3
|
10
|
+
version: 1.0.3
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Veerasundaravel Thirugnanasundaram
|
@@ -9,19 +15,25 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date: 2011-
|
18
|
+
date: 2011-09-07 00:00:00 +05:30
|
13
19
|
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: yajl-ruby
|
17
|
-
|
18
|
-
|
19
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
20
26
|
requirements:
|
21
27
|
- - ">="
|
22
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 15
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
- 7
|
33
|
+
- 6
|
23
34
|
version: 0.7.6
|
24
|
-
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
25
37
|
description: facebook_registration is a ruby library for displaying new Facebook Registration form and to parse to signed_request[http://developers.facebook.com/docs/plugins/registration].
|
26
38
|
email:
|
27
39
|
- veerasundaravel@gmail.com
|
@@ -35,6 +47,7 @@ extra_rdoc_files:
|
|
35
47
|
files:
|
36
48
|
- CHANGELOG.rdoc
|
37
49
|
- README.rdoc
|
50
|
+
- MIT-LICENSE
|
38
51
|
- facebook_registration.gemspec
|
39
52
|
- facebooker.yml
|
40
53
|
- lib/facebook_registration.rb
|
@@ -51,21 +64,27 @@ rdoc_options:
|
|
51
64
|
require_paths:
|
52
65
|
- lib
|
53
66
|
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
54
68
|
requirements:
|
55
69
|
- - ">="
|
56
70
|
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 0
|
57
74
|
version: "0"
|
58
|
-
version:
|
59
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
60
77
|
requirements:
|
61
78
|
- - ">="
|
62
79
|
- !ruby/object:Gem::Version
|
80
|
+
hash: 3
|
81
|
+
segments:
|
82
|
+
- 0
|
63
83
|
version: "0"
|
64
|
-
version:
|
65
84
|
requirements: []
|
66
85
|
|
67
86
|
rubyforge_project: facebook_registration
|
68
|
-
rubygems_version: 1.
|
87
|
+
rubygems_version: 1.4.2
|
69
88
|
signing_key:
|
70
89
|
specification_version: 1
|
71
90
|
summary: facebook_registration is a ruby library for displaying new Facebook Registration form and to parse to signed_request[http://developers.facebook.com/docs/plugins/registration]. by Veerasundaravel Thirugnanasundaram
|