fbgraph_rails 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/{MIT-LICENSE → LICENSE} +1 -1
- data/{README → README.rdoc} +14 -5
- data/Rakefile +4 -4
- data/VERSION +1 -1
- data/fbgraph_rails.gemspec +5 -4
- data/lib/fbgraph_rails/controller.rb +2 -2
- metadata +6 -5
data/{MIT-LICENSE → LICENSE}
RENAMED
data/{README → README.rdoc}
RENAMED
@@ -1,12 +1,9 @@
|
|
1
|
-
|
2
|
-
============
|
1
|
+
= fbgraph_rails
|
3
2
|
|
4
3
|
Integrates the fbgraph gem for the Facebook OpenGraph API with Rails
|
5
4
|
applications. Useful for session management.
|
6
5
|
|
7
|
-
|
8
|
-
Installation
|
9
|
-
=======
|
6
|
+
== Integration
|
10
7
|
|
11
8
|
Add the following to your controllers:
|
12
9
|
|
@@ -27,4 +24,16 @@ The following methods become available to your controllers.
|
|
27
24
|
current_facebook_access_token=
|
28
25
|
|
29
26
|
|
27
|
+
== Note on Patches/Pull Requests
|
28
|
+
|
29
|
+
* Fork the project.
|
30
|
+
* Make your feature addition or bug fix.
|
31
|
+
* Add tests for it. This is important so I don't break it in a
|
32
|
+
future version unintentionally.
|
33
|
+
* Commit, do not mess with rakefile, version, or history.
|
34
|
+
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
35
|
+
* Send me a pull request. Bonus points for topic branches.
|
36
|
+
|
37
|
+
== Copyright
|
38
|
+
|
30
39
|
Copyright (c) 2010 Victor Costan, released under the MIT license
|
data/Rakefile
CHANGED
@@ -10,10 +10,10 @@ begin
|
|
10
10
|
gem.email = "victor@costan.us"
|
11
11
|
gem.homepage = "http://github.com/costan/fbgraph_rails"
|
12
12
|
gem.authors = ["costan"]
|
13
|
-
gem.
|
14
|
-
gem.
|
15
|
-
gem.
|
16
|
-
gem.
|
13
|
+
gem.add_runtime_dependency "erubis", ">= 2.3.5"
|
14
|
+
gem.add_runtime_dependency "fbgraph", ">= 0.0.5"
|
15
|
+
gem.add_runtime_dependency "json", ">= 1.4.2"
|
16
|
+
gem.add_runtime_dependency "oauth2", ">= 0.0.8"
|
17
17
|
gem.add_development_dependency "jeweler", ">=1.4.0"
|
18
18
|
end
|
19
19
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/fbgraph_rails.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{fbgraph_rails}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["costan"]
|
@@ -13,13 +13,14 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.description = %q{Support for sessions tied to Facebook users.}
|
14
14
|
s.email = %q{victor@costan.us}
|
15
15
|
s.extra_rdoc_files = [
|
16
|
-
"
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
17
18
|
]
|
18
19
|
s.files = [
|
19
20
|
".gitignore",
|
20
21
|
".project",
|
21
|
-
"
|
22
|
-
"README",
|
22
|
+
"LICENSE",
|
23
|
+
"README.rdoc",
|
23
24
|
"Rakefile",
|
24
25
|
"VERSION",
|
25
26
|
"app/controllers/facebook_oauth_controller.rb",
|
@@ -30,11 +30,11 @@ module ControllerInstanceMethods
|
|
30
30
|
|
31
31
|
def current_facebook_access_token=(new_token)
|
32
32
|
@current_facebook_access_token = new_token
|
33
|
-
session[:
|
33
|
+
session[:current_facebook_token] = new_token
|
34
34
|
end
|
35
35
|
|
36
36
|
def probe_facebook_access_token
|
37
|
-
@current_facebook_access_token = session[:
|
37
|
+
@current_facebook_access_token = session[:current_facebook_token]
|
38
38
|
@facebook_client = if @current_facebook_access_token
|
39
39
|
FBGraphRails.global_fbclient
|
40
40
|
else
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- costan
|
@@ -94,12 +94,13 @@ executables: []
|
|
94
94
|
extensions: []
|
95
95
|
|
96
96
|
extra_rdoc_files:
|
97
|
-
-
|
97
|
+
- LICENSE
|
98
|
+
- README.rdoc
|
98
99
|
files:
|
99
100
|
- .gitignore
|
100
101
|
- .project
|
101
|
-
-
|
102
|
-
- README
|
102
|
+
- LICENSE
|
103
|
+
- README.rdoc
|
103
104
|
- Rakefile
|
104
105
|
- VERSION
|
105
106
|
- app/controllers/facebook_oauth_controller.rb
|