rack-test 0.5.6 → 0.5.7

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.
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
- source :gemcutter
1
+ source :rubygems
2
2
 
3
- gem 'rspec', '>= 2.0.0.beta.15'
3
+ gem 'rspec'
4
4
  gem "rack"
5
- gem "sinatra"
5
+ gem "sinatra"
@@ -3,14 +3,14 @@ GEM
3
3
  specs:
4
4
  diff-lcs (1.1.2)
5
5
  rack (1.2.1)
6
- rspec (2.0.0.beta.20)
7
- rspec-core (= 2.0.0.beta.20)
8
- rspec-expectations (= 2.0.0.beta.20)
9
- rspec-mocks (= 2.0.0.beta.20)
10
- rspec-core (2.0.0.beta.20)
11
- rspec-expectations (2.0.0.beta.20)
12
- diff-lcs (>= 1.1.2)
13
- rspec-mocks (2.0.0.beta.20)
6
+ rspec (2.3.0)
7
+ rspec-core (~> 2.3.0)
8
+ rspec-expectations (~> 2.3.0)
9
+ rspec-mocks (~> 2.3.0)
10
+ rspec-core (2.3.1)
11
+ rspec-expectations (2.3.0)
12
+ diff-lcs (~> 1.1.2)
13
+ rspec-mocks (2.3.0)
14
14
  sinatra (1.0)
15
15
  rack (>= 1.0)
16
16
 
@@ -19,5 +19,5 @@ PLATFORMS
19
19
 
20
20
  DEPENDENCIES
21
21
  rack
22
- rspec (>= 2.0.0.beta.15)
22
+ rspec
23
23
  sinatra
@@ -1,7 +1,13 @@
1
- == Git
1
+ == 0.5.7 / 2011-01-01
2
+
3
+ * Bug fixes
4
+
5
+ * If no URI is present, include all cookies (Pratik Naik)
2
6
 
3
7
  == 0.5.6 / 2010-09-25
4
8
 
9
+ * Bug fixes
10
+
5
11
  * Use parse_nested_query for parsing URI like Rack does (Eugene Bolshakov)
6
12
  * Don't depend on ActiveSupport extension to String (Bryan Helmkamp)
7
13
  * Do not overwrite HTTP_HOST if it is set (Krekoten' Marjan)
@@ -9,7 +9,7 @@ require "rack/test/uploaded_file"
9
9
 
10
10
  module Rack
11
11
  module Test
12
- VERSION = "0.5.6"
12
+ VERSION = "0.5.7"
13
13
 
14
14
  DEFAULT_HOST = "example.org"
15
15
  MULTIPART_BOUNDARY = "----------XnJLe9ZIbbGUYtzPQJ16u1"
@@ -164,7 +164,7 @@ module Rack
164
164
  # so that when we are done, the cookies will be unique by name and
165
165
  # we'll have grabbed the most specific to the URI.
166
166
  @cookies.each do |cookie|
167
- cookies[cookie.name] = cookie if cookie.matches?(uri)
167
+ cookies[cookie.name] = cookie if !uri || cookie.matches?(uri)
168
168
  end
169
169
 
170
170
  return cookies
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rack-test}
5
- s.version = "0.5.6"
5
+ s.version = "0.5.7"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Bryan Helmkamp"]
9
- s.date = %q{2010-09-25}
9
+ s.date = %q{2011-01-01}
10
10
  s.description = %q{Rack::Test is a small, simple testing API for Rack apps. It can be used on its
11
11
  own or as a reusable starting point for Web frameworks and testing libraries
12
12
  to build on. Most of its initial functionality is an extraction of Merb 1.0's
@@ -113,6 +113,7 @@ describe Rack::Test::Session do
113
113
 
114
114
  get "https://example.com/cookies/show"
115
115
  last_request.cookies.should == { "secure-cookie" => "set" }
116
+ rack_mock_session.cookie_jar['secure-cookie'].should == 'set'
116
117
  end
117
118
 
118
119
  it "keeps separate cookie jars for different domains" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-test
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 6
10
- version: 0.5.6
9
+ - 7
10
+ version: 0.5.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bryan Helmkamp
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-25 00:00:00 -04:00
18
+ date: 2011-01-01 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency