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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 852fb909df9a9f6e729b77257fdde96a8f5f83dd382fa7476b6cf95927d86cde
4
- data.tar.gz: 941d453ea5d0b52ceece2b961a3ff1a684e823d658db5fb205fa26745e1ed6e6
3
+ metadata.gz: 3188a4eafb4e53c63d37b3354eb52f3293c1de6a05e08e5bdd475fa17253aca4
4
+ data.tar.gz: d2b914b3cd59cca73af51dc9c1e01c7ee134fecf8863b506777bb07f7771503c
5
5
  SHA512:
6
- metadata.gz: e05cfb7ae7e6867dc06c0609098a86dd50197bb97ac67a4e91ed87cfbfa60b671f2886605737908aa5be7a15bffc0cb8063da2689eaf6deacbc03e7fa686d076
7
- data.tar.gz: f3cd848e833cdb38fc2fc9d2587627fa12973c57b71c1574d4872c56abc90f4b05a9a4f7af659ae7bd6da1ccc7c3ef1f226c0153b14be8af2ed88f457c356d11
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 `any volunteer?` label!
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
@@ -14,7 +14,7 @@ require 'forwardable'
14
14
  # conn.get '/'
15
15
  #
16
16
  module Faraday
17
- VERSION = "0.15.3"
17
+ VERSION = "0.15.4"
18
18
 
19
19
  class << self
20
20
  # Public: Gets or sets the root path that Faraday is being loaded from.
@@ -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
- Net::HTTP::Persistent.new(name: 'Faraday')
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.3
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-09-19 00:00:00.000000000 Z
11
+ date: 2018-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multipart-post