secobarbital-cookiejar 0.2.9.1 → 0.2.9.2
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.
| 
         @@ -308,7 +308,12 @@ module CookieJar 
     | 
|
| 
       308 
308 
     | 
    
         
             
                    else
         
     | 
| 
       309 
309 
     | 
    
         
             
                      case key
         
     | 
| 
       310 
310 
     | 
    
         
             
                      when :expires
         
     | 
| 
       311 
     | 
    
         
            -
                         
     | 
| 
      
 311 
     | 
    
         
            +
                        begin
         
     | 
| 
      
 312 
     | 
    
         
            +
                          args[:expires_at] = Time.parse keyvalue 
         
     | 
| 
      
 313 
     | 
    
         
            +
                        rescue ArgumentError
         
     | 
| 
      
 314 
     | 
    
         
            +
                          raise unless $!.message == "time out of range"
         
     | 
| 
      
 315 
     | 
    
         
            +
                          args[:expires_at] = Time.at(0x7FFFFFFF)
         
     | 
| 
      
 316 
     | 
    
         
            +
                        end 
         
     | 
| 
       312 
317 
     | 
    
         
             
                      when *[:domain, :path]
         
     | 
| 
       313 
318 
     | 
    
         
             
                        args[key] = keyvalue
         
     | 
| 
       314 
319 
     | 
    
         
             
                      when :secure
         
     | 
| 
         @@ -248,4 +248,9 @@ describe CookieValidation do 
     | 
|
| 
       248 
248 
     | 
    
         
             
                  end
         
     | 
| 
       249 
249 
     | 
    
         
             
                end
         
     | 
| 
       250 
250 
     | 
    
         
             
              end
         
     | 
| 
      
 251 
     | 
    
         
            +
              describe '#parse_set_cookie' do
         
     | 
| 
      
 252 
     | 
    
         
            +
                it "should max out at 2038 on 32bit systems" do
         
     | 
| 
      
 253 
     | 
    
         
            +
                  CookieValidation.parse_set_cookie("TRACK_USER_P=98237480810003948000782774;expires=Sat, 30-Jun-2040 05:39:49 GMT;path=/")[:expires_at].to_i.should >= 0x7FFFFFFF
         
     | 
| 
      
 254 
     | 
    
         
            +
                end
         
     | 
| 
      
 255 
     | 
    
         
            +
              end  
         
     | 
| 
       251 
256 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,13 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: secobarbital-cookiejar
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
      
 4 
     | 
    
         
            +
              hash: 127
         
     | 
| 
       4 
5 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       5 
6 
     | 
    
         
             
              segments: 
         
     | 
| 
       6 
7 
     | 
    
         
             
              - 0
         
     | 
| 
       7 
8 
     | 
    
         
             
              - 2
         
     | 
| 
       8 
9 
     | 
    
         
             
              - 9
         
     | 
| 
       9 
     | 
    
         
            -
              -  
     | 
| 
       10 
     | 
    
         
            -
              version: 0.2.9. 
     | 
| 
      
 10 
     | 
    
         
            +
              - 2
         
     | 
| 
      
 11 
     | 
    
         
            +
              version: 0.2.9.2
         
     | 
| 
       11 
12 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       12 
13 
     | 
    
         
             
            authors: 
         
     | 
| 
       13 
14 
     | 
    
         
             
            - David Waite
         
     | 
| 
         @@ -49,23 +50,27 @@ rdoc_options: 
     | 
|
| 
       49 
50 
     | 
    
         
             
            require_paths: 
         
     | 
| 
       50 
51 
     | 
    
         
             
            - lib
         
     | 
| 
       51 
52 
     | 
    
         
             
            required_ruby_version: !ruby/object:Gem::Requirement 
         
     | 
| 
      
 53 
     | 
    
         
            +
              none: false
         
     | 
| 
       52 
54 
     | 
    
         
             
              requirements: 
         
     | 
| 
       53 
55 
     | 
    
         
             
              - - ">="
         
     | 
| 
       54 
56 
     | 
    
         
             
                - !ruby/object:Gem::Version 
         
     | 
| 
      
 57 
     | 
    
         
            +
                  hash: 3
         
     | 
| 
       55 
58 
     | 
    
         
             
                  segments: 
         
     | 
| 
       56 
59 
     | 
    
         
             
                  - 0
         
     | 
| 
       57 
60 
     | 
    
         
             
                  version: "0"
         
     | 
| 
       58 
61 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement 
         
     | 
| 
      
 62 
     | 
    
         
            +
              none: false
         
     | 
| 
       59 
63 
     | 
    
         
             
              requirements: 
         
     | 
| 
       60 
64 
     | 
    
         
             
              - - ">="
         
     | 
| 
       61 
65 
     | 
    
         
             
                - !ruby/object:Gem::Version 
         
     | 
| 
      
 66 
     | 
    
         
            +
                  hash: 3
         
     | 
| 
       62 
67 
     | 
    
         
             
                  segments: 
         
     | 
| 
       63 
68 
     | 
    
         
             
                  - 0
         
     | 
| 
       64 
69 
     | 
    
         
             
                  version: "0"
         
     | 
| 
       65 
70 
     | 
    
         
             
            requirements: []
         
     | 
| 
       66 
71 
     | 
    
         | 
| 
       67 
72 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       68 
     | 
    
         
            -
            rubygems_version: 1.3. 
     | 
| 
      
 73 
     | 
    
         
            +
            rubygems_version: 1.3.7
         
     | 
| 
       69 
74 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       70 
75 
     | 
    
         
             
            specification_version: 3
         
     | 
| 
       71 
76 
     | 
    
         
             
            summary: Client-side HTTP Cookie library
         
     |