faraday 1.4.2 → 1.4.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/faraday/connection.rb +2 -2
- data/lib/faraday/version.rb +1 -1
- data/spec/faraday/connection_spec.rb +7 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc82ee913ef4ffa6468eea5e656c49d4eab0f769321eb63a85fdb4caa9a90143
|
4
|
+
data.tar.gz: cccf1ae40f10f353ca2cc5e4e92bb01e4b1d65a9ac3ed50b7e5c5951680ba019
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5360375fef63ad3e1068792458dd8ccc956b603be65e5571b9b6ce73938fc7ba2d220aeb99d4f3b022fa9945a07c8264c6452916e58963883fdd6843ded2d58e
|
7
|
+
data.tar.gz: fac76254509856e7e827fecda3c76a070c53cdb1771782ff5d668f14a4b8a4b126be9761d0856fe28eccda4607daf031cb7c8ea4559e245b100db08e95f01a0a
|
data/lib/faraday/connection.rb
CHANGED
@@ -73,6 +73,7 @@ module Faraday
|
|
73
73
|
@options = options.request
|
74
74
|
@ssl = options.ssl
|
75
75
|
@default_parallel_manager = options.parallel_manager
|
76
|
+
@manual_proxy = nil
|
76
77
|
|
77
78
|
@builder = options.builder || begin
|
78
79
|
# pass an empty block to Builder so it doesn't assume default middleware
|
@@ -519,9 +520,8 @@ module Faraday
|
|
519
520
|
# @return [URI]
|
520
521
|
def build_exclusive_url(url = nil, params = nil, params_encoder = nil)
|
521
522
|
url = nil if url.respond_to?(:empty?) && url.empty?
|
522
|
-
base = url_prefix
|
523
|
+
base = url_prefix.dup
|
523
524
|
if url && base.path && base.path !~ %r{/$}
|
524
|
-
base = base.dup
|
525
525
|
base.path = "#{base.path}/" # ensure trailing slash
|
526
526
|
end
|
527
527
|
url = url && URI.parse(url.to_s).opaque ? url.to_s.gsub(':', '%3A') : url
|
data/lib/faraday/version.rb
CHANGED
@@ -253,6 +253,13 @@ RSpec.describe Faraday::Connection do
|
|
253
253
|
expect(uri.path).to eq('/sake.html')
|
254
254
|
end
|
255
255
|
|
256
|
+
it 'always returns new URI instance' do
|
257
|
+
conn.url_prefix = 'http://sushi.com'
|
258
|
+
uri1 = conn.build_exclusive_url(nil)
|
259
|
+
uri2 = conn.build_exclusive_url(nil)
|
260
|
+
expect(uri1).not_to equal(uri2)
|
261
|
+
end
|
262
|
+
|
256
263
|
context 'with url_prefixed connection' do
|
257
264
|
let(:url) { 'http://sushi.com/sushi/' }
|
258
265
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faraday
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "@technoweenie"
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-
|
13
|
+
date: 2021-06-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday-em_http
|
@@ -221,7 +221,7 @@ licenses:
|
|
221
221
|
- MIT
|
222
222
|
metadata:
|
223
223
|
homepage_uri: https://lostisland.github.io/faraday
|
224
|
-
changelog_uri: https://github.com/lostisland/faraday/releases/tag/v1.4.
|
224
|
+
changelog_uri: https://github.com/lostisland/faraday/releases/tag/v1.4.3
|
225
225
|
source_code_uri: https://github.com/lostisland/faraday
|
226
226
|
bug_tracker_uri: https://github.com/lostisland/faraday/issues
|
227
227
|
post_install_message:
|