simple_facebook_connect 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +10 -2
- data/VERSION +1 -1
- data/init.rb +2 -2
- data/lib/simple_facebook_connect/active_record_extension.rb +13 -0
- data/lib/simple_facebook_connect.rb +1 -0
- data/simple_facebook_connect.gemspec +8 -5
- data/spec/lib/simple_facebook_connect/user_extension_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -0
- metadata +4 -3
data/README.md
CHANGED
@@ -30,12 +30,12 @@ This plugin assumes you have a `User` model with an `email` attribute. It will a
|
|
30
30
|
|
31
31
|
Install the gem:
|
32
32
|
|
33
|
-
sudo gem install
|
33
|
+
sudo gem install simple_facebook_connect --source=http://gemcutter.org
|
34
34
|
|
35
35
|
Add it as a dependency to your Rails application:
|
36
36
|
|
37
37
|
# environment.rb
|
38
|
-
gem '
|
38
|
+
gem 'simple_facebook_connect', :source => 'http://gemcutter.org'
|
39
39
|
|
40
40
|
Run the migration generator and migrate:
|
41
41
|
|
@@ -81,6 +81,14 @@ Provide a `log_in(user)` method, either in your `ApplicationController` or by su
|
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
84
|
+
Make your `User` model Facebook aware:
|
85
|
+
|
86
|
+
class User
|
87
|
+
facebook_user
|
88
|
+
|
89
|
+
...
|
90
|
+
end
|
91
|
+
|
84
92
|
Optional step (well, you really should do this): Generate Cucumber Features:
|
85
93
|
|
86
94
|
script/generate simple_facebook_connect_features
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/init.rb
CHANGED
@@ -29,7 +29,7 @@ config = YAML::load(File.read(config_file))[Rails.env]
|
|
29
29
|
SimpleFacebookConnect.api_key = config['api_key']
|
30
30
|
SimpleFacebookConnect.secret_key = config['secret_key']
|
31
31
|
|
32
|
-
|
33
|
-
|
32
|
+
ActionController::Base.send(:include, SimpleFacebookConnect::ControllerExtension)
|
33
|
+
ActiveRecord::Base.send(:include, SimpleFacebookConnect::ActiveRecordExtension)
|
34
34
|
|
35
35
|
require 'simple_facebook_connect/extensions/routes'
|
@@ -4,6 +4,7 @@ require 'simple_facebook_connect/parser'
|
|
4
4
|
require 'simple_facebook_connect/service'
|
5
5
|
require 'simple_facebook_connect/session'
|
6
6
|
require 'simple_facebook_connect/user'
|
7
|
+
require 'simple_facebook_connect/active_record_extension'
|
7
8
|
require 'simple_facebook_connect/user_extension'
|
8
9
|
require 'simple_facebook_connect/controller_extension'
|
9
10
|
|
@@ -1,12 +1,15 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
1
4
|
# -*- encoding: utf-8 -*-
|
2
5
|
|
3
6
|
Gem::Specification.new do |s|
|
4
7
|
s.name = %q{simple_facebook_connect}
|
5
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.6"
|
6
9
|
|
7
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
11
|
s.authors = ["Alexander Lang", "Frank Pr\303\266\303\237dorf"]
|
9
|
-
s.date = %q{2009-
|
12
|
+
s.date = %q{2009-10-28}
|
10
13
|
s.email = %q{alex@upstream-berlin.com}
|
11
14
|
s.extra_rdoc_files = [
|
12
15
|
"README.md"
|
@@ -30,6 +33,7 @@ Gem::Specification.new do |s|
|
|
30
33
|
"generators/simple_facebook_connect_migration/templates/migration.rb",
|
31
34
|
"init.rb",
|
32
35
|
"lib/simple_facebook_connect.rb",
|
36
|
+
"lib/simple_facebook_connect/active_record_extension.rb",
|
33
37
|
"lib/simple_facebook_connect/controller_extension.rb",
|
34
38
|
"lib/simple_facebook_connect/extensions/routes.rb",
|
35
39
|
"lib/simple_facebook_connect/parser.rb",
|
@@ -46,11 +50,10 @@ Gem::Specification.new do |s|
|
|
46
50
|
"spec/lib/simple_facebook_connect/user_spec.rb",
|
47
51
|
"spec/spec_helper.rb"
|
48
52
|
]
|
49
|
-
s.has_rdoc = true
|
50
53
|
s.homepage = %q{http://github.com/upstream/simple_facebook_connect}
|
51
54
|
s.rdoc_options = ["--charset=UTF-8"]
|
52
55
|
s.require_paths = ["lib"]
|
53
|
-
s.rubygems_version = %q{1.3.
|
56
|
+
s.rubygems_version = %q{1.3.5}
|
54
57
|
s.summary = %q{This plugin adds the ability to sign in/sign up using facebook connect to your Rails application.}
|
55
58
|
s.test_files = [
|
56
59
|
"spec/lib/simple_facebook_connect/parser_spec.rb",
|
@@ -61,7 +64,7 @@ Gem::Specification.new do |s|
|
|
61
64
|
|
62
65
|
if s.respond_to? :specification_version then
|
63
66
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
64
|
-
s.specification_version =
|
67
|
+
s.specification_version = 3
|
65
68
|
|
66
69
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
67
70
|
else
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_facebook_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Lang
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-
|
13
|
+
date: 2009-10-28 00:00:00 +01:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|
@@ -41,6 +41,7 @@ files:
|
|
41
41
|
- generators/simple_facebook_connect_migration/templates/migration.rb
|
42
42
|
- init.rb
|
43
43
|
- lib/simple_facebook_connect.rb
|
44
|
+
- lib/simple_facebook_connect/active_record_extension.rb
|
44
45
|
- lib/simple_facebook_connect/controller_extension.rb
|
45
46
|
- lib/simple_facebook_connect/extensions/routes.rb
|
46
47
|
- lib/simple_facebook_connect/parser.rb
|
@@ -82,7 +83,7 @@ requirements: []
|
|
82
83
|
rubyforge_project:
|
83
84
|
rubygems_version: 1.3.5
|
84
85
|
signing_key:
|
85
|
-
specification_version:
|
86
|
+
specification_version: 3
|
86
87
|
summary: This plugin adds the ability to sign in/sign up using facebook connect to your Rails application.
|
87
88
|
test_files:
|
88
89
|
- spec/lib/simple_facebook_connect/parser_spec.rb
|