faraday 2.7.3 → 2.7.4

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
  SHA256:
3
- metadata.gz: ee818ac3a13f048f8abe9e53b2cc86f9f8528d67deb562f8a8b52840adc2735a
4
- data.tar.gz: dbaf3fb64a55ca17c7feebacdeefac5887d1270b4fc56a6fa7ef93aac0d14096
3
+ metadata.gz: acdabcdd0a13d304292f17cd6764fba01d12f552cf78bdae3006ee38a3921ad0
4
+ data.tar.gz: 13300a1971d6557a4c62f01c4b0c96d1aecb4372b4c8a1ba734022109d9f2c0b
5
5
  SHA512:
6
- metadata.gz: 698d48a4ae363b14d9dddffbb131ef58432c2e2403d9a6bd5606bbb8998c10d81428ae8749ace13bb5e0fd274bdac026d2c830aa047d6ed2f3b9d1a11df11c34
7
- data.tar.gz: 035e04cbb3a190754f5754a0311b1008cfff3c0a8244e7f5e83b3306e719774215ead14e4d218db4f1f95b3e2c5679e9db675e25085748ea922e9d3034206654
6
+ metadata.gz: 0151023e942ae76b69a6bb28e70c792501333bc4f67c670bb990e80917c6b4d63aaa9ee168bd333abff2dd2b1fb54f244568e7a54d5346034d311924b17eabfe
7
+ data.tar.gz: 9598f16ed0c19cdfe01be90a1a29e6751b6848d44eac1d481224fbe576a33ff73f631a2bd398f70b5534d4126f8dba9ced68bb17dad5ea8efe93214bf7ce4e1b
@@ -473,7 +473,7 @@ module Faraday
473
473
  if url && !base.path.end_with?('/')
474
474
  base.path = "#{base.path}/" # ensure trailing slash
475
475
  end
476
- url = url.to_s.gsub(':', '%3A') if Utils.URI(url.to_s).opaque
476
+ url = url.to_s.gsub(':', '%3A') if URI.parse(url.to_s).opaque
477
477
  uri = url ? base + url : base
478
478
  if params
479
479
  uri.query = params.to_query(params_encoder || options.params_encoder)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Faraday
4
- VERSION = '2.7.3'
4
+ VERSION = '2.7.4'
5
5
  end
@@ -310,6 +310,21 @@ RSpec.describe Faraday::Connection do
310
310
  expect(uri.to_s).to eq('http://service.com/api/service%3Asearch?limit=400')
311
311
  end
312
312
  end
313
+
314
+ context 'with a custom `default_uri_parser`' do
315
+ let(:url) { 'http://httpbingo.org' }
316
+ let(:parser) { Addressable::URI }
317
+
318
+ around do |example|
319
+ with_default_uri_parser(parser) do
320
+ example.run
321
+ end
322
+ end
323
+
324
+ it 'does not raise error' do
325
+ expect { conn.build_exclusive_url('/nigiri') }.not_to raise_error
326
+ end
327
+ end
313
328
  end
314
329
 
315
330
  describe '#build_url' do
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: 2.7.3
4
+ version: 2.7.4
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: 2023-01-16 00:00:00.000000000 Z
13
+ date: 2023-01-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday-net_http
@@ -131,7 +131,7 @@ licenses:
131
131
  - MIT
132
132
  metadata:
133
133
  homepage_uri: https://lostisland.github.io/faraday
134
- changelog_uri: https://github.com/lostisland/faraday/releases/tag/v2.7.3
134
+ changelog_uri: https://github.com/lostisland/faraday/releases/tag/v2.7.4
135
135
  source_code_uri: https://github.com/lostisland/faraday
136
136
  bug_tracker_uri: https://github.com/lostisland/faraday/issues
137
137
  post_install_message: