faraday 2.7.5 → 2.7.6
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/README.md +2 -1
- data/Rakefile +3 -1
- data/lib/faraday/options.rb +1 -0
- data/lib/faraday/request/instrumentation.rb +2 -0
- data/lib/faraday/request.rb +2 -0
- 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: 39281ad8e2e1f8e58064036df1c4adfc264154a4e662dde1ceb46f95aaf0e383
|
4
|
+
data.tar.gz: 837cebc4d69f76b1fa04b65b80d7bc3cd1063cbb958fac777eac911043444ba1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfc1fdb57568ee8cc650f97420b49e5df586dc91568e223bfbb1b625c2f422ad217528f7af4f063e58369566d17eccba1af81ec18d834f499963f9fd1ecb632c
|
7
|
+
data.tar.gz: 80b4c87ee1b66ef3ccf2c8d0ff19bccdcc0f13330a76f8c3764bf21f246c630442470b06173a375747d6263f22f1e145b37f2b64d27a2eed4ab76b5489bd21e2
|
data/README.md
CHANGED
@@ -12,7 +12,8 @@ requests. Instead, you probably want to have a look at [Awesome Faraday][awesome
|
|
12
12
|
## Getting Started
|
13
13
|
|
14
14
|
The best starting point is the [Faraday Website][website], with its introduction and explanation.
|
15
|
-
|
15
|
+
|
16
|
+
Need more details? See the [Faraday API Documentation][apidoc] to see how it works internally, or take a look at [Advanced techniques for calling HTTP APIs in Ruby](https://mattbrictson.com/blog/advanced-http-techniques-in-ruby) blog post from @mattbrictson 🚀
|
16
17
|
|
17
18
|
## Supported Ruby versions
|
18
19
|
|
data/Rakefile
CHANGED
data/lib/faraday/options.rb
CHANGED
@@ -6,11 +6,13 @@ module Faraday
|
|
6
6
|
class Instrumentation < Faraday::Middleware
|
7
7
|
# Options class used in Request::Instrumentation class.
|
8
8
|
Options = Faraday::Options.new(:name, :instrumenter) do
|
9
|
+
remove_method :name
|
9
10
|
# @return [String]
|
10
11
|
def name
|
11
12
|
self[:name] ||= 'request.faraday'
|
12
13
|
end
|
13
14
|
|
15
|
+
remove_method :instrumenter
|
14
16
|
# @return [Class]
|
15
17
|
def instrumenter
|
16
18
|
self[:instrumenter] ||= ActiveSupport::Notifications
|
data/lib/faraday/request.rb
CHANGED
@@ -42,6 +42,7 @@ module Faraday
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
+
remove_method :params=
|
45
46
|
# Replace params, preserving the existing hash type.
|
46
47
|
#
|
47
48
|
# @param hash [Hash] new params
|
@@ -53,6 +54,7 @@ module Faraday
|
|
53
54
|
end
|
54
55
|
end
|
55
56
|
|
57
|
+
remove_method :headers=
|
56
58
|
# Replace request headers, preserving the existing hash type.
|
57
59
|
#
|
58
60
|
# @param hash [Hash] new headers
|
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: 2.7.
|
4
|
+
version: 2.7.6
|
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-
|
13
|
+
date: 2023-06-07 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.
|
134
|
+
changelog_uri: https://github.com/lostisland/faraday/releases/tag/v2.7.6
|
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:
|