scooter 4.5.1 → 4.5.3
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.
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: cd3f51eadeab98e7fd6f4823636ffd64b6f3ddb64618703ff7c330ea795bcbcf
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 3cdb800fbc6fc651dcf9414a092f89d768e53fa435b38cde40459d4329c8ae58
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 7861b61c25b1a4cc3423f6710ee691868a4ee00b2a5504183771bc25540d7acd8fd3c2a7165f82e0609a41c16eff87a04d5ff230a5841ea836d42b15eb21f14d
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: ed40948a47c73b1f0d93cb5e6ef0c14b8e9896a725025f9fe436f0a1be418f7b8d38f9a11179ce7d1c0d176ef8e4d0b06b8eaa9961e200b3d1ec4b8f1164e184
         
     | 
    
        data/README.md
    CHANGED
    
    
| 
         @@ -88,13 +88,8 @@ module Scooter 
     | 
|
| 
       88 
88 
     | 
    
         
             
                  end
         
     | 
| 
       89 
89 
     | 
    
         | 
| 
       90 
90 
     | 
    
         
             
                  def signin(login=self.credentials.login, password=self.credentials.password)
         
     | 
| 
       91 
     | 
    
         
            -
                    response = @connection.get "/auth/login"
         
     | 
| 
       92 
     | 
    
         
            -
                    return response if response.status != 200
         
     | 
| 
       93 
     | 
    
         
            -
                    # extract the session cookie, if it is present
         
     | 
| 
       94 
     | 
    
         
            -
                    cookie = response.headers['Set-Cookie']
         
     | 
| 
       95 
91 
     | 
    
         
             
                    response = @connection.post "/auth/login" do |request|
         
     | 
| 
       96 
92 
     | 
    
         
             
                      request.headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8'
         
     | 
| 
       97 
     | 
    
         
            -
                      request.headers['Cookie'] = cookie if cookie
         
     | 
| 
       98 
93 
     | 
    
         
             
                      request.body = "username=#{login}&password=#{CGI.escape(password)}"
         
     | 
| 
       99 
94 
     | 
    
         
             
                      connection.port = 443
         
     | 
| 
       100 
95 
     | 
    
         
             
                    end
         
     | 
    
        data/lib/scooter/version.rb
    CHANGED
    
    
| 
         @@ -28,12 +28,6 @@ module Scooter 
     | 
|
| 
       28 
28 
     | 
    
         | 
| 
       29 
29 
     | 
    
         
             
                  context '"signin with a page that returns a token' do
         
     | 
| 
       30 
30 
     | 
    
         
             
                    before do
         
     | 
| 
       31 
     | 
    
         
            -
                      stub_request(:get, /auth\/login/).
         
     | 
| 
       32 
     | 
    
         
            -
                        to_return(status: 200,
         
     | 
| 
       33 
     | 
    
         
            -
                                  body: '',
         
     | 
| 
       34 
     | 
    
         
            -
                                  headers: {
         
     | 
| 
       35 
     | 
    
         
            -
                                    "set-cookie"=>"__HOST-somecookie=something;Secure;Path=/",
         
     | 
| 
       36 
     | 
    
         
            -
                                  })
         
     | 
| 
       37 
31 
     | 
    
         
             
                      stub_request(:post, /auth\/login/).
         
     | 
| 
       38 
32 
     | 
    
         
             
                        to_return(status: 200,
         
     | 
| 
       39 
33 
     | 
    
         
             
                                  body: '',
         
     | 
| 
         @@ -41,7 +35,7 @@ module Scooter 
     | 
|
| 
       41 
35 
     | 
    
         
             
                                            "date"=>"Tue, 29 Nov 2016 22:05:41 GMT",
         
     | 
| 
       42 
36 
     | 
    
         
             
                                            "content-length"=>"0",
         
     | 
| 
       43 
37 
     | 
    
         
             
                                            "connection"=>"close",
         
     | 
| 
       44 
     | 
    
         
            -
                                            "set-cookie"=>" 
     | 
| 
      
 38 
     | 
    
         
            +
                                            "set-cookie"=>"JSESSIONID=b05e9b11-5e9f-4d6a-9faf-e28a0415197d; Path=/; Secure; HttpOnly, rememberMe=deleteMe; Path=/auth; Max-Age=0; Expires=Mon, 28-Nov-2016 22:05:41 GMT, pl_ssti=0CeHhpz5PPLna7kpaEMcTHjJ62z9eizHTzsxEXNK8W20;Secure;Path=/",
         
     | 
| 
       45 
39 
     | 
    
         
             
                                            "location"=>"/",
         
     | 
| 
       46 
40 
     | 
    
         
             
                                            "x-frame-options"=>"DENY"})
         
     | 
| 
       47 
41 
     | 
    
         |