faraday 0.15.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db0b54b940edbbba0e72c6a5d393b101f6852c4d4c9d4b31106382a983c31045
4
- data.tar.gz: 594b4833954d6049878ccc1e1006d4b4295da70b01809f2abbd977368215812e
3
+ metadata.gz: 42be55b00611d618997b1a7ce9224433de94d05a3d8c58eded72c747169f03c2
4
+ data.tar.gz: e1c9762524844227534b3a3fa29280675c4f6d9c08aa38fe3778b868b6ee0fdd
5
5
  SHA512:
6
- metadata.gz: 347f4c8f7e15467652370480e1131ec28ee9eeb964bc5eb8982781da79718a74bd3fe2421d57107e2245fc218b1cb0351c0df569f18b2f2fe0d1625408b8fa82
7
- data.tar.gz: 5014a90947f8987b70facb531f9dd83f4df923ee9d14cb3b8d5250cce0fe51e0eaba6b4a1ca9b5a35db15d5b181a964b9aaeaddcfc0f4f3feec9b669a48817c5
6
+ metadata.gz: 3d07058fb83243451c60d69a93fc45b4415da74b3daa6554140a6c0f2908cb50d29efc6d2573890fed8d72f4a7c92c14b4aa62ce2ec64a3b26569a8711902dcf
7
+ data.tar.gz: 975c1fe201ee8772a954dd734a37f4dc7401ea278b4dbd21e17ddc11a5e87d7ad0a6141e73f18ec63255feb181f8be252ad7dad6b115cfb4362f970bcc339580
@@ -14,7 +14,7 @@ require 'forwardable'
14
14
  # conn.get '/'
15
15
  #
16
16
  module Faraday
17
- VERSION = "0.15.1"
17
+ VERSION = "0.15.2"
18
18
 
19
19
  class << self
20
20
  # Public: Gets or sets the root path that Faraday is being loaded from.
@@ -118,6 +118,8 @@ module Faraday
118
118
  def configure_request(http, req)
119
119
  http.read_timeout = http.open_timeout = req[:timeout] if req[:timeout]
120
120
  http.open_timeout = req[:open_timeout] if req[:open_timeout]
121
+ # Only set if Net::Http supports it, since Ruby 2.5.
122
+ http.max_retries = 0 if http.respond_to?(:max_retries=)
121
123
 
122
124
  @config_block.call(http) if @config_block
123
125
  end
@@ -40,9 +40,10 @@ module Faraday
40
40
  end
41
41
  return buffer.chop
42
42
  elsif value.is_a?(Array)
43
+ new_parent = "#{parent}%5B%5D"
44
+ return new_parent if value.empty?
43
45
  buffer = ""
44
46
  value.each_with_index do |val, i|
45
- new_parent = "#{parent}%5B%5D"
46
47
  buffer << "#{to_query.call(new_parent, val)}&"
47
48
  end
48
49
  return buffer.chop
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.1
4
+ version: 0.15.2
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-05-10 00:00:00.000000000 Z
11
+ date: 2018-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multipart-post
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.7.6
95
+ rubygems_version: 2.7.7
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: HTTP/REST API client library.