faraday 2.10.0 → 2.10.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/middleware.rb +2 -5
- 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: 0d6b48adceee9f714528016d437777166311c5108695c0e1bfa7ae98bfe494bd
|
4
|
+
data.tar.gz: c678d859ccbfe156f6aac0ba6b83619c2243705b7c2339a007c45c0f7559b3af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41bd0de3c358c55c1c64c1b54ab22b2cec9830fa12188d1c6886493373c7fe2c8ff1ffcccabdc0b4e15145f627dd5bcb184ec4a612428cb2cc2b0b57190b5c15
|
7
|
+
data.tar.gz: cfa8ce000d7e40a809b0300a8e3e6af5d191aab4836bc3613ce042446f3c0ea6c87313fe6f7ac8a6381d167913e5fb9e84899a084514fb9873bceebbf6846610
|
data/lib/faraday/middleware.rb
CHANGED
@@ -10,6 +10,7 @@ module Faraday
|
|
10
10
|
attr_reader :app, :options
|
11
11
|
|
12
12
|
DEFAULT_OPTIONS = {}.freeze
|
13
|
+
LOCK = Mutex.new
|
13
14
|
|
14
15
|
def initialize(app = nil, options = {})
|
15
16
|
@app = app
|
@@ -27,7 +28,7 @@ module Faraday
|
|
27
28
|
#
|
28
29
|
def default_options=(options = {})
|
29
30
|
validate_default_options(options)
|
30
|
-
|
31
|
+
LOCK.synchronize do
|
31
32
|
@default_options = default_options.merge(options)
|
32
33
|
end
|
33
34
|
end
|
@@ -41,10 +42,6 @@ module Faraday
|
|
41
42
|
|
42
43
|
private
|
43
44
|
|
44
|
-
def lock
|
45
|
-
@lock ||= Monitor.new
|
46
|
-
end
|
47
|
-
|
48
45
|
def validate_default_options(options)
|
49
46
|
invalid_keys = options.keys.reject { |opt| self::DEFAULT_OPTIONS.key?(opt) }
|
50
47
|
return unless invalid_keys.any?
|
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.10.
|
4
|
+
version: 2.10.1
|
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: 2024-07-
|
13
|
+
date: 2024-07-31 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday-net_http
|
@@ -132,7 +132,7 @@ licenses:
|
|
132
132
|
- MIT
|
133
133
|
metadata:
|
134
134
|
homepage_uri: https://lostisland.github.io/faraday
|
135
|
-
changelog_uri: https://github.com/lostisland/faraday/releases/tag/v2.10.
|
135
|
+
changelog_uri: https://github.com/lostisland/faraday/releases/tag/v2.10.1
|
136
136
|
source_code_uri: https://github.com/lostisland/faraday
|
137
137
|
bug_tracker_uri: https://github.com/lostisland/faraday/issues
|
138
138
|
post_install_message:
|