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 +3 -3
 - data/Gemfile.lock +9 -9
 - data/History.txt +7 -1
 - data/lib/rack/test.rb +1 -1
 - data/lib/rack/test/cookie_jar.rb +1 -1
 - data/rack-test.gemspec +2 -2
 - data/spec/rack/test/cookie_spec.rb +1 -0
 - metadata +4 -4
 
    
        data/Gemfile
    CHANGED
    
    
    
        data/Gemfile.lock
    CHANGED
    
    | 
         @@ -3,14 +3,14 @@ GEM 
     | 
|
| 
       3 
3 
     | 
    
         
             
              specs:
         
     | 
| 
       4 
4 
     | 
    
         
             
                diff-lcs (1.1.2)
         
     | 
| 
       5 
5 
     | 
    
         
             
                rack (1.2.1)
         
     | 
| 
       6 
     | 
    
         
            -
                rspec (2. 
     | 
| 
       7 
     | 
    
         
            -
                  rspec-core ( 
     | 
| 
       8 
     | 
    
         
            -
                  rspec-expectations ( 
     | 
| 
       9 
     | 
    
         
            -
                  rspec-mocks ( 
     | 
| 
       10 
     | 
    
         
            -
                rspec-core (2. 
     | 
| 
       11 
     | 
    
         
            -
                rspec-expectations (2. 
     | 
| 
       12 
     | 
    
         
            -
                  diff-lcs ( 
     | 
| 
       13 
     | 
    
         
            -
                rspec-mocks (2. 
     | 
| 
      
 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 
     | 
| 
      
 22 
     | 
    
         
            +
              rspec
         
     | 
| 
       23 
23 
     | 
    
         
             
              sinatra
         
     | 
    
        data/History.txt
    CHANGED
    
    | 
         @@ -1,7 +1,13 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            ==  
     | 
| 
      
 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)
         
     | 
    
        data/lib/rack/test.rb
    CHANGED
    
    
    
        data/lib/rack/test/cookie_jar.rb
    CHANGED
    
    | 
         @@ -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
         
     | 
    
        data/rack-test.gemspec
    CHANGED
    
    | 
         @@ -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. 
     | 
| 
      
 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{ 
     | 
| 
      
 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:  
     | 
| 
      
 4 
     | 
    
         
            +
              hash: 5
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       6 
6 
     | 
    
         
             
              segments: 
         
     | 
| 
       7 
7 
     | 
    
         
             
              - 0
         
     | 
| 
       8 
8 
     | 
    
         
             
              - 5
         
     | 
| 
       9 
     | 
    
         
            -
              -  
     | 
| 
       10 
     | 
    
         
            -
              version: 0.5. 
     | 
| 
      
 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:  
     | 
| 
      
 18 
     | 
    
         
            +
            date: 2011-01-01 00:00:00 -05:00
         
     | 
| 
       19 
19 
     | 
    
         
             
            default_executable: 
         
     | 
| 
       20 
20 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       21 
21 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     |