faraday 0.15.3 → 0.15.4
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 -2
- data/lib/faraday.rb +1 -1
- data/lib/faraday/adapter/net_http_persistent.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3188a4eafb4e53c63d37b3354eb52f3293c1de6a05e08e5bdd475fa17253aca4
|
4
|
+
data.tar.gz: d2b914b3cd59cca73af51dc9c1e01c7ee134fecf8863b506777bb07f7771503c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9c3019e31107f0b718c4e20d40213318e8c3b0179fdf357293798bf3023e553ce591cf09918e173fb4c9886f50f23325a8898cf7fafdd5c22741e88567b591e
|
7
|
+
data.tar.gz: 47c1705259bd510e3aca6738c573fcb4a47d9c1f165cc37ce9ce44e553d76b4b4e7c15909c9b4620fae1596e824a986d6966917830f02ec0f457fc726fa129f3
|
data/README.md
CHANGED
@@ -274,7 +274,7 @@ end
|
|
274
274
|
### NetHttpPersistent
|
275
275
|
```ruby
|
276
276
|
conn = Faraday.new(...) do |f|
|
277
|
-
f.adapter :net_http_persistent do |http| # yields Net::HTTP::Persistent
|
277
|
+
f.adapter :net_http_persistent, pool_size: 5 do |http| # yields Net::HTTP::Persistent
|
278
278
|
http.idle_timeout = 100
|
279
279
|
http.retry_change_requests = true
|
280
280
|
end
|
@@ -360,7 +360,7 @@ of a major release, support for that Ruby version may be dropped.
|
|
360
360
|
## Contribute
|
361
361
|
|
362
362
|
Do you want to contribute to Faraday?
|
363
|
-
Open the issues page and check for the `
|
363
|
+
Open the issues page and check for the `help wanted` label!
|
364
364
|
But before you start coding, please read our [Contributing Guide](https://github.com/lostisland/faraday/blob/master/.github/CONTRIBUTING.md)
|
365
365
|
|
366
366
|
## Copyright
|
data/lib/faraday.rb
CHANGED
@@ -8,7 +8,9 @@ module Faraday
|
|
8
8
|
def net_http_connection(env)
|
9
9
|
@cached_connection ||=
|
10
10
|
if Net::HTTP::Persistent.instance_method(:initialize).parameters.first == [:key, :name]
|
11
|
-
|
11
|
+
options = {name: 'Faraday'}
|
12
|
+
options[:pool_size] = @connection_options[:pool_size] if @connection_options.key?(:pool_size)
|
13
|
+
Net::HTTP::Persistent.new(options)
|
12
14
|
else
|
13
15
|
Net::HTTP::Persistent.new('Faraday')
|
14
16
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faraday
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rick Olson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multipart-post
|