eukaliptus 0.8.7 → 0.8.8

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.
@@ -47,8 +47,31 @@ Then you can place a link anywhere in your code that gives the user the chance t
47
47
 
48
48
  == Helpers
49
49
 
50
- Al helpers are namespaced with fb_ prefix you can find the documentation in this file lib/eukaliptus/view_helpers/facebook_helpers.rb
50
+ All helpers are namespaced with fb_ prefix you can find the documentation in this file lib/eukaliptus/view_helpers/facebook_helpers.rb
51
51
 
52
+ == Authentication
53
+
54
+ === Koala
55
+
56
+ We recomend using JavaScript authentication with Koala and it's very easy to implement.
57
+
58
+ See the Authentication section in Koala Wiki https://github.com/arsduo/koala/wiki/Koala-on-Rails
59
+
60
+ === Omniauth + Devise
61
+
62
+ Eukaliptus will be aware that you are using Omniauth and changes the redirection workflow.
63
+
64
+ Implement the authentication as explained in Devise Wiki https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview
65
+
66
+ Then in your OmniauthCallbacksController you will be getting a new get param :redirect_to you can add this at the end of your provider action:
67
+
68
+ ...
69
+ redirect_to params[:redirect_to] and return
70
+
71
+ You can use Koala in the mix too and instantiate a new Koala GraphAPI object as follows:
72
+
73
+ Koala::Facebook::GraphAPI.new(env["omniauth.auth"]['credentials']['token'])
74
+
52
75
  == Copyright
53
76
 
54
77
  Copyright (c) 2011 Season Advertising S.L. http://www.season.es
@@ -17,7 +17,7 @@ module Eukaliptus
17
17
  @response = Rack::Response.new body, status, headers
18
18
 
19
19
  # Fixes IE security bug
20
- @response.header["P3P"] = 'CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'
20
+ @response.header["P3P"] = 'CP="HONK HONK! http://graeme.per.ly/p3p-policies-are-a-joke"'
21
21
 
22
22
  if env['PATH_INFO'] == '/cookie_fix'
23
23
  cookie_fix(env)
@@ -23,7 +23,6 @@ module Eukaliptus
23
23
 
24
24
  if config_file.file?
25
25
  CONFIG = YAML.load_file(config_file)[Rails.env]
26
- Facebook::API_KEY = CONFIG['app_id']
27
26
  Facebook::APP_ID = CONFIG['app_id']
28
27
  Facebook::SECRET = CONFIG['secret_key']
29
28
  Facebook::HOST = CONFIG['host']
@@ -1,3 +1,3 @@
1
1
  module Eukaliptus
2
- VERSION = "0.8.7"
2
+ VERSION = "0.8.8"
3
3
  end
@@ -1,7 +1,6 @@
1
1
  development: &FACEBOOK_BASE
2
- api_key:
3
- secret_key:
4
2
  app_id:
3
+ secret_key:
5
4
  host: http://localhost:3000
6
5
  canvas: http://apps.facebook.com/
7
6
 
@@ -9,8 +8,7 @@ test:
9
8
  <<: *FACEBOOK_BASE
10
9
 
11
10
  production:
12
- api_key:
13
- secret_key:
14
11
  app_id:
12
+ secret_key:
15
13
  host:
16
14
  canvas: http://apps.facebook.com/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eukaliptus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7
4
+ version: 0.8.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,12 +10,12 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-06-25 00:00:00.000000000 +02:00
13
+ date: 2011-07-16 00:00:00.000000000 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: koala
18
- requirement: &2156881700 !ruby/object:Gem::Requirement
18
+ requirement: &2157174160 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 1.0.0
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2156881700
26
+ version_requirements: *2157174160
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
- requirement: &2156881280 !ruby/object:Gem::Requirement
29
+ requirement: &2157173580 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: '0'
35
35
  type: :development
36
36
  prerelease: false
37
- version_requirements: *2156881280
37
+ version_requirements: *2157173580
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rack-test
40
- requirement: &2156880800 !ruby/object:Gem::Requirement
40
+ requirement: &2157172960 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,7 +45,7 @@ dependencies:
45
45
  version: '0'
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *2156880800
48
+ version_requirements: *2157172960
49
49
  description: Eukaliptus is a set of helpers and bug fixes for browsers to help you
50
50
  build Facebook iframe applications or user fan tabs.
51
51
  email: