warden 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -3,6 +3,7 @@ source :rubygems
3
3
  gemspec
4
4
 
5
5
  gem 'rake'
6
+ gem 'rack', '1.3'
6
7
 
7
8
  group :test do
8
9
  gem 'rspec', '~>2'
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- warden (1.0.4)
4
+ warden (1.0.5)
5
5
  rack (>= 1.0)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
10
  diff-lcs (1.1.2)
11
- rack (1.2.2)
11
+ rack (1.3.0)
12
12
  rack-test (0.6.0)
13
13
  rack (>= 1.0)
14
14
  rake (0.8.7)
@@ -25,6 +25,7 @@ PLATFORMS
25
25
  ruby
26
26
 
27
27
  DEPENDENCIES
28
+ rack (= 1.3)
28
29
  rack-test
29
30
  rake
30
31
  rspec (~> 2)
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Warden
3
- VERSION = "1.0.4".freeze
3
+ VERSION = "1.0.5".freeze
4
4
  end
@@ -219,9 +219,9 @@ describe Warden::Proxy do
219
219
  sid.should_not be_nil
220
220
 
221
221
  # Do another request, giving a cookie but turning on warden authentication
222
- env = env_with_params("/", {}, "HTTP_COOKIE" => cookie, "warden.on" => true)
222
+ env = env_with_params("/", {}, 'rack.session' => @env['rack.session'], "HTTP_COOKIE" => cookie, "warden.on" => true)
223
223
  response = app.call(env)
224
- @env["rack.session"]["counter"].should == 2
224
+ env["rack.session"]["counter"].should == 2
225
225
 
226
226
  # Regardless of rack version, a cookie should be sent back
227
227
  new_cookie = response[1]["Set-Cookie"]
@@ -258,7 +258,7 @@ describe Warden::Proxy do
258
258
  # Do another request, passing the cookie. The user should be fetched from cookie.
259
259
  env = env_with_params("/", {}, "HTTP_COOKIE" => cookie)
260
260
  response = app.call(env)
261
- @env["rack.session"]["counter"].should == 2
261
+ env["rack.session"]["counter"].should == 2
262
262
 
263
263
  # Depending on rack version, a cookie will be returned with the
264
264
  # same session id or no cookie is given back (becase it did not change).
data/warden-1.0.4.gem ADDED
Binary file
data/warden.gemspec CHANGED
@@ -1,12 +1,12 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
- require 'lib/warden/version'
3
+ require './lib/warden/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = %q{warden}
7
7
  s.version = Warden::VERSION
8
8
  s.authors = ["Daniel Neighman"]
9
- s.date = %q{2010-10-12}
9
+ s.date = %q{2011-07-27}
10
10
  s.email = %q{has.sox@gmail.com}
11
11
  s.extra_rdoc_files = [
12
12
  "LICENSE",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warden
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 4
10
- version: 1.0.4
9
+ - 5
10
+ version: 1.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel Neighman
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-12 00:00:00 +11:00
18
+ date: 2011-07-27 00:00:00 +10:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -84,6 +84,8 @@ files:
84
84
  - TODO.textile
85
85
  - warden-1.0.0.gem
86
86
  - warden-1.0.1.gem
87
+ - warden-1.0.4.gem
88
+ - warden-1.0.5.gem
87
89
  - warden.gemspec
88
90
  has_rdoc: true
89
91
  homepage: http://github.com/hassox/warden
@@ -115,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
117
  requirements: []
116
118
 
117
119
  rubyforge_project: warden
118
- rubygems_version: 1.4.2
120
+ rubygems_version: 1.6.2
119
121
  signing_key:
120
122
  specification_version: 3
121
123
  summary: Rack middleware that provides authentication for rack applications