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 CHANGED
@@ -1,8 +1,3 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'koala'
4
-
5
- group :development do
6
- gem "minitest", ">= 0", :platforms => :ruby_18
7
- gem "bundler", "~> 1.0.0"
8
- end
3
+ gemspec
@@ -20,4 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ["lib"]
21
21
 
22
22
  s.add_dependency 'koala', '~> 1.0.0'
23
+
24
+ s.add_development_dependency 'minitest'
25
+ s.add_development_dependency 'rack-test'
23
26
  end
@@ -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 + "?redirect_to=#{params['redirect_to']}")
55
+ @response.redirect(path + "?#{params['redirect_to'].to_query('redirect_to')}")
56
56
  else
57
- @response.redirect('/' + "?redirect_to=#{params['redirect_to']}")
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'] : '/'))
@@ -1,3 +1,3 @@
1
1
  module Eukaliptus
2
- VERSION = "0.8.3"
2
+ VERSION = "0.8.4"
3
3
  end
@@ -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
@@ -1,22 +1,13 @@
1
- require 'rubygems'
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
 
@@ -3,7 +3,7 @@ require 'test_helper'
3
3
  describe "Eukaliptus::FacebookHelpersTest" do
4
4
  describe "when asked about a helper" do
5
5
  it "must respond positively" do
6
- assert true
6
+ skip "Possitive"
7
7
  end
8
8
  end
9
9
 
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
- date: 2011-06-19 00:00:00.000000000 +02:00
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
- requirement: &2157367720 !ruby/object:Gem::Requirement
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
- version_requirements: *2157367720
27
- description: Eukaliptus is a set of helpers and bug fixes for browsers to help you
28
- build Facebook iframe applications or user fan tabs.
29
- email:
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
- files:
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/test_eukaliptus.rb
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
- require_paths:
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: '0'
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: '0'
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.2
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/test_eukaliptus.rb
107
+ test_files:
108
+ - test/middleware_test.rb
82
109
  - test/test_helper.rb
83
110
  - test/view_helpers/facebook_helpers_test.rb
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class TestEukaliptus < MiniTest::Unit::TestCase
4
- def test_eukaliptus_headers
5
- skip "Test P3p header"
6
- end
7
- end