rack-facebook 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ be executed for the specific request.
14
14
  In your config.ru:
15
15
 
16
16
  require 'rack/facebook'
17
- use Rack::Facebook, "my_facebook_secret_key"
17
+ use Rack::Facebook, :app_name => "My Application", :application_secret => "SECRET", :api_key => "APIKEY"
18
18
 
19
19
  Using a block condition:
20
20
 
@@ -17,7 +17,7 @@ module Rack
17
17
  #
18
18
  # In your rack builder:
19
19
  #
20
- # use Rack::Facebook, :application_secret => "SECRET", :api_key => "APIKEY"
20
+ # use Rack::Facebook, :app_name => "My Application", :application_secret => "SECRET", :api_key => "APIKEY"
21
21
  #
22
22
  # Using a block condition:
23
23
  #
@@ -37,7 +37,7 @@ module Rack
37
37
  end
38
38
 
39
39
  def app_name
40
- @options[:application_name]
40
+ @options[:app_name]
41
41
  end
42
42
 
43
43
  def secret
@@ -129,7 +129,6 @@ module Rack
129
129
  end
130
130
 
131
131
  def extract_facebook_params(where)
132
-
133
132
  case where
134
133
  when :post
135
134
  source = self.POST
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "rack-facebook"
3
- s.version = "0.0.2"
4
- s.date = "2009-01-09"
3
+ s.version = "0.0.3"
4
+ s.date = "2010-01-26"
5
5
  s.summary = "Rack middleware to verify and parse Facebook parameters"
6
6
  s.email = "carlos@evolve.st"
7
7
  s.homepage = "http://www.evolve.st/notebook/2009/1/9/rack-facebook-a-new-rack-middleware-to-parse-facebook-parameters"
@@ -29,7 +29,7 @@ describe Rack::Facebook do
29
29
  end
30
30
 
31
31
  def mock_post(app, env)
32
- facebook = described_class.new(app, :application_name => APP_NAME, :application_secret => SECRET, :api_key => API_KEY)
32
+ facebook = described_class.new(app, :app_name => APP_NAME, :application_secret => SECRET, :api_key => API_KEY)
33
33
  request = Rack::MockRequest.new(facebook)
34
34
  @response = request.post("/", env)
35
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-facebook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Paramio
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-09 00:00:00 +01:00
12
+ date: 2010-01-26 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency