faraday 1.7.1 → 1.7.2
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 +6 -1
- data/lib/faraday/version.rb +1 -1
- 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: dc552d61adb1522a8fad137e999bf05ca2bab8f23da090e832023a407482e2be
|
|
4
|
+
data.tar.gz: 90dc970e1e03002fc8f49ca3cd07aeb9636b03b6ebd2fc2fe856c0f38661aa3f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ef70a25de820defbfa52dbc6da6abc01dda7b190326fdf637eaaa3d988b5fefba726ccb3813b974367a7c1a3e00e748dcac44018ba9f2bdd172591dc83441e58
|
|
7
|
+
data.tar.gz: ddcaf2f3d6bbf55d713a661a429073c4d4230c5723281765e64931cc24a5f17a8ffc81d9cddfc1ca43f759474346993c980797d3978016912a5eb8885677b737
|
data/lib/faraday/connection.rb
CHANGED
|
@@ -433,13 +433,18 @@ module Faraday
|
|
|
433
433
|
uri.query = nil
|
|
434
434
|
|
|
435
435
|
with_uri_credentials(uri) do |user, password|
|
|
436
|
-
|
|
436
|
+
set_basic_auth(user, password)
|
|
437
437
|
uri.user = uri.password = nil
|
|
438
438
|
end
|
|
439
439
|
|
|
440
440
|
@proxy = proxy_from_env(url) unless @manual_proxy
|
|
441
441
|
end
|
|
442
442
|
|
|
443
|
+
def set_basic_auth(user, password)
|
|
444
|
+
header = Faraday::Request::BasicAuthentication.header(user, password)
|
|
445
|
+
headers[Faraday::Request::Authorization::KEY] = header
|
|
446
|
+
end
|
|
447
|
+
|
|
443
448
|
# Sets the path prefix and ensures that it always has a leading
|
|
444
449
|
# slash.
|
|
445
450
|
#
|
data/lib/faraday/version.rb
CHANGED
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.7.
|
|
4
|
+
version: 1.7.2
|
|
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-09-13 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: faraday-em_http
|
|
@@ -260,7 +260,7 @@ licenses:
|
|
|
260
260
|
- MIT
|
|
261
261
|
metadata:
|
|
262
262
|
homepage_uri: https://lostisland.github.io/faraday
|
|
263
|
-
changelog_uri: https://github.com/lostisland/faraday/releases/tag/v1.7.
|
|
263
|
+
changelog_uri: https://github.com/lostisland/faraday/releases/tag/v1.7.2
|
|
264
264
|
source_code_uri: https://github.com/lostisland/faraday
|
|
265
265
|
bug_tracker_uri: https://github.com/lostisland/faraday/issues
|
|
266
266
|
post_install_message:
|