faraday 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35295b9b568c043b6a43f3074c811fb901f16476
4
- data.tar.gz: 379f16be0a414f7d18b3012a83a204c53de0ac29
3
+ metadata.gz: e3cf028ad2c8ac0b1a137ace67fe066cf993af87
4
+ data.tar.gz: 60250bf4b1c574825c8855351ffb1cc8157bf6f8
5
5
  SHA512:
6
- metadata.gz: 7273cd3b89bea73f73ad25804cd275035db74ceec823102816a6ba9710f4dbb43e9a5a5aa4c6367cdfe33a6eb029f3634bfedbe49f9f427a01bae3a008bc70ab
7
- data.tar.gz: a3e0d40b1c36a8d03d39f46f0cccc76df5d6554f76a2c1179ae8ff19e49d8ef7f69e9ff0cd6d15a221370f168ca7a1cc47d430a1841135f91fdb76ceed219d96
6
+ metadata.gz: f41b772f396a8c2a0fb0dac9e613230ee3efaee5954951ecdbe48d4fcccc6ba74ce9a069b222be56901d383fd9d66c223291a852c5f914f34e29432c7d801b41
7
+ data.tar.gz: b53cca6785e8ba152235e347505e5f1a0ea4e6eb5e9167582d2943668db2180a0ff31006d868b3c20107528db73576951124fdc9ee2364571917b9a9b28bef33
@@ -14,7 +14,7 @@ require 'forwardable'
14
14
  # conn.get '/'
15
15
  #
16
16
  module Faraday
17
- VERSION = "0.13.0"
17
+ VERSION = "0.13.1"
18
18
 
19
19
  class << self
20
20
  # Public: Gets or sets the root path that Faraday is being loaded from.
@@ -374,7 +374,7 @@ module Faraday
374
374
  @temp_proxy = self.proxy
375
375
 
376
376
  # Set temporary proxy if request url is absolute
377
- @temp_proxy = proxy_from_env(url) if url && URI(url).absolute?
377
+ @temp_proxy = proxy_from_env(url) if url && Utils.URI(url).absolute?
378
378
 
379
379
  request = build_request(method) do |req|
380
380
  req.options = req.options.merge(:proxy => @temp_proxy)
@@ -448,8 +448,9 @@ module Faraday
448
448
  uri = nil
449
449
  if URI.parse('').respond_to?(:find_proxy)
450
450
  case url
451
- when String
452
- uri = URI.parse(url).find_proxy
451
+ when String
452
+ uri = Utils.URI(url)
453
+ uri = URI.parse("#{uri.scheme}://#{uri.hostname}").find_proxy
453
454
  when URI
454
455
  uri = url.find_proxy
455
456
  when nil
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Olson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-15 00:00:00.000000000 Z
11
+ date: 2017-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multipart-post