fbgraph_rails 0.1.1 → 0.1.2

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.
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010 [name of plugin creator]
1
+ Copyright (c) 2010 Victor Costan
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,12 +1,9 @@
1
- FbgraphRails
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.add_dependency "erubis", ">= 2.3.5"
14
- gem.add_dependency "fbgraph", ">= 0.0.5"
15
- gem.add_dependency "json", ">= 1.4.2"
16
- gem.add_dependency "oauth2", ">= 0.0.8"
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
1
+ 0.1.2
@@ -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.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
- "README"
16
+ "LICENSE",
17
+ "README.rdoc"
17
18
  ]
18
19
  s.files = [
19
20
  ".gitignore",
20
21
  ".project",
21
- "MIT-LICENSE",
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[:facebook_token] = new_token
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[:facebook_token]
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
- - 1
9
- version: 0.1.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
- - README
97
+ - LICENSE
98
+ - README.rdoc
98
99
  files:
99
100
  - .gitignore
100
101
  - .project
101
- - MIT-LICENSE
102
- - README
102
+ - LICENSE
103
+ - README.rdoc
103
104
  - Rakefile
104
105
  - VERSION
105
106
  - app/controllers/facebook_oauth_controller.rb