unrest 0.1.2 → 0.1.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 +4 -4
 - data/lib/unrest.rb +3 -3
 - data/lib/unrest/version.rb +1 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 5f39214ed9228863c3edad78a3b06293deb6829b
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 12a97ba60ad48de667d1c9fbea31d7b5acb1b23a
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: e66e8da99e4983f97346adb45bdc86147652deb16201c9644f2cac1d692dcd537b75f47328618f68716caff988064bb6ed4edaa16f6956aa61a4211f697a6d29
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 42f820666496e1f3198670ba4b6a4c46a92a4ccd2adfd31194be86f9717d6a3841d6c8d38e6764d795511b21e276dbb75f30230c671fd2fff3c4ce1e6d543293
         
     | 
    
        data/lib/unrest.rb
    CHANGED
    
    | 
         @@ -45,7 +45,7 @@ class Unrest 
     | 
|
| 
       45 
45 
     | 
    
         
             
              private
         
     | 
| 
       46 
46 
     | 
    
         | 
| 
       47 
47 
     | 
    
         
             
              def uri path=nil
         
     | 
| 
       48 
     | 
    
         
            -
                URI.parse([url, path].compact.join('/'))
         
     | 
| 
      
 48 
     | 
    
         
            +
                URI.parse([@url, path].compact.join('/'))
         
     | 
| 
       49 
49 
     | 
    
         
             
              end
         
     | 
| 
       50 
50 
     | 
    
         | 
| 
       51 
51 
     | 
    
         
             
              def ssl? uri
         
     | 
| 
         @@ -59,8 +59,8 @@ class Unrest 
     | 
|
| 
       59 
59 
     | 
    
         
             
                http_client.open_timeout = configuration.timeout
         
     | 
| 
       60 
60 
     | 
    
         
             
                http_client.read_timeout = configuration.timeout
         
     | 
| 
       61 
61 
     | 
    
         | 
| 
       62 
     | 
    
         
            -
                http_client.key = options.fetch(:http_client_key, nil)
         
     | 
| 
       63 
     | 
    
         
            -
                http_client.cert = options.fetch(:http_client_cert, nil)
         
     | 
| 
      
 62 
     | 
    
         
            +
                http_client.key = OpenSSL::PKey::RSA.new(options.fetch(:http_client_key, nil))
         
     | 
| 
      
 63 
     | 
    
         
            +
                http_client.cert = OpenSSL::X509::Certificate.new(options.fetch(:http_client_cert, nil))
         
     | 
| 
       64 
64 
     | 
    
         | 
| 
       65 
65 
     | 
    
         
             
                http_client.set_debug_output($stdout)
         
     | 
| 
       66 
66 
     | 
    
         | 
    
        data/lib/unrest/version.rb
    CHANGED