eukaliptus 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -6
- data/eukaliptus.gemspec +3 -0
- data/lib/eukaliptus/middleware.rb +2 -2
- data/lib/eukaliptus/version.rb +1 -1
- data/test/middleware_test.rb +18 -0
- data/test/test_helper.rb +3 -12
- data/test/view_helpers/facebook_helpers_test.rb +1 -1
- metadata +58 -31
- data/test/test_eukaliptus.rb +0 -7
data/Gemfile
CHANGED
data/eukaliptus.gemspec
CHANGED
@@ -52,9 +52,9 @@ module Eukaliptus
|
|
52
52
|
|
53
53
|
if mappings.controllers.has_key? :omniauth_callbacks
|
54
54
|
path = [mappings.path, 'auth', :facebook.to_s, 'callback'].join('/')
|
55
|
-
@response.redirect(path
|
55
|
+
@response.redirect(path + "?#{params['redirect_to'].to_query('redirect_to')}")
|
56
56
|
else
|
57
|
-
@response.redirect(
|
57
|
+
@response.redirect("/?#{params['redirect_to'].to_query('redirect_to')}")
|
58
58
|
end
|
59
59
|
else
|
60
60
|
@response.redirect((params['redirect_to'] ? params['redirect_to'] : '/'))
|
data/lib/eukaliptus/version.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class TestEukaliptus < MiniTest::Unit::TestCase
|
4
|
+
include Rack::Test::Methods
|
5
|
+
|
6
|
+
def app
|
7
|
+
Eukaliptus::Middleware.new
|
8
|
+
end
|
9
|
+
|
10
|
+
def test_eukaliptus_headers
|
11
|
+
skip "Test P3p header"
|
12
|
+
end
|
13
|
+
|
14
|
+
def test_rack_request_params
|
15
|
+
get '/cookie_fix'
|
16
|
+
assert_equal "http://example.org/cookie_fix", last_request.url
|
17
|
+
end
|
18
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -1,22 +1,13 @@
|
|
1
|
-
|
2
|
-
require 'bundler'
|
3
|
-
begin
|
4
|
-
Bundler.setup(:default, :development)
|
5
|
-
rescue Bundler::BundlerError => e
|
6
|
-
$stderr.puts e.message
|
7
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
-
exit e.status_code
|
9
|
-
end
|
1
|
+
ENV["RAILS_ENV"] = "test"
|
10
2
|
|
11
3
|
require 'minitest/unit'
|
12
4
|
require 'minitest/spec'
|
5
|
+
require 'rack/test'
|
13
6
|
|
14
7
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
15
8
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
9
|
+
require 'rails'
|
16
10
|
require 'eukaliptus'
|
17
11
|
|
18
|
-
class MiniTest::Unit::TestCase
|
19
|
-
end
|
20
|
-
|
21
12
|
MiniTest::Unit.autorun
|
22
13
|
|
metadata
CHANGED
@@ -1,37 +1,62 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: eukaliptus
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.3
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
prerelease:
|
5
|
+
version: 0.8.4
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- season
|
9
9
|
- victorcoder
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
|
13
|
+
|
14
|
+
date: 2011-06-20 00:00:00 +02:00
|
14
15
|
default_executable:
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
16
|
+
dependencies:
|
17
|
+
- !ruby/object:Gem::Dependency
|
17
18
|
name: koala
|
18
|
-
|
19
|
+
prerelease: false
|
20
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
19
21
|
none: false
|
20
|
-
requirements:
|
22
|
+
requirements:
|
21
23
|
- - ~>
|
22
|
-
- !ruby/object:Gem::Version
|
24
|
+
- !ruby/object:Gem::Version
|
23
25
|
version: 1.0.0
|
24
26
|
type: :runtime
|
27
|
+
version_requirements: *id001
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: minitest
|
30
|
+
prerelease: false
|
31
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
32
|
+
none: false
|
33
|
+
requirements:
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: "0"
|
37
|
+
type: :development
|
38
|
+
version_requirements: *id002
|
39
|
+
- !ruby/object:Gem::Dependency
|
40
|
+
name: rack-test
|
25
41
|
prerelease: false
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
42
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: "0"
|
48
|
+
type: :development
|
49
|
+
version_requirements: *id003
|
50
|
+
description: Eukaliptus is a set of helpers and bug fixes for browsers to help you build Facebook iframe applications or user fan tabs.
|
51
|
+
email:
|
30
52
|
- victorcoder@gmail.com
|
31
53
|
executables: []
|
54
|
+
|
32
55
|
extensions: []
|
56
|
+
|
33
57
|
extra_rdoc_files: []
|
34
|
-
|
58
|
+
|
59
|
+
files:
|
35
60
|
- .gitignore
|
36
61
|
- Gemfile
|
37
62
|
- LICENSE.txt
|
@@ -48,36 +73,38 @@ files:
|
|
48
73
|
- lib/generators/eukaliptus/config_generator.rb
|
49
74
|
- lib/generators/templates/facebook.yml
|
50
75
|
- lib/tasks/facebook.rake
|
51
|
-
- test/
|
76
|
+
- test/middleware_test.rb
|
52
77
|
- test/test_helper.rb
|
53
78
|
- test/view_helpers/facebook_helpers_test.rb
|
54
79
|
has_rdoc: true
|
55
80
|
homepage: http://github.com/seasonlabs/eukaliptus
|
56
|
-
licenses:
|
81
|
+
licenses:
|
57
82
|
- MIT
|
58
83
|
post_install_message:
|
59
84
|
rdoc_options: []
|
60
|
-
|
85
|
+
|
86
|
+
require_paths:
|
61
87
|
- lib
|
62
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
63
89
|
none: false
|
64
|
-
requirements:
|
65
|
-
- -
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version:
|
68
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: "0"
|
94
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
95
|
none: false
|
70
|
-
requirements:
|
71
|
-
- -
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
version:
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: "0"
|
74
100
|
requirements: []
|
101
|
+
|
75
102
|
rubyforge_project: eukaliptus
|
76
|
-
rubygems_version: 1.6.
|
103
|
+
rubygems_version: 1.6.1
|
77
104
|
signing_key:
|
78
105
|
specification_version: 3
|
79
106
|
summary: Eukaliptus Facebook API Helpers
|
80
|
-
test_files:
|
81
|
-
- test/
|
107
|
+
test_files:
|
108
|
+
- test/middleware_test.rb
|
82
109
|
- test/test_helper.rb
|
83
110
|
- test/view_helpers/facebook_helpers_test.rb
|