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 +4 -4
- data/lib/faraday.rb +1 -1
- data/lib/faraday/connection.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3cf028ad2c8ac0b1a137ace67fe066cf993af87
|
4
|
+
data.tar.gz: 60250bf4b1c574825c8855351ffb1cc8157bf6f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f41b772f396a8c2a0fb0dac9e613230ee3efaee5954951ecdbe48d4fcccc6ba74ce9a069b222be56901d383fd9d66c223291a852c5f914f34e29432c7d801b41
|
7
|
+
data.tar.gz: b53cca6785e8ba152235e347505e5f1a0ea4e6eb5e9167582d2943668db2180a0ff31006d868b3c20107528db73576951124fdc9ee2364571917b9a9b28bef33
|
data/lib/faraday.rb
CHANGED
data/lib/faraday/connection.rb
CHANGED
@@ -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
|
-
|
452
|
-
uri = URI
|
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.
|
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-
|
11
|
+
date: 2017-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multipart-post
|