faraday 0.15.1 → 0.15.2
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/lib/faraday.rb +1 -1
- data/lib/faraday/adapter/net_http.rb +2 -0
- data/lib/faraday/parameters.rb +2 -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: 42be55b00611d618997b1a7ce9224433de94d05a3d8c58eded72c747169f03c2
|
4
|
+
data.tar.gz: e1c9762524844227534b3a3fa29280675c4f6d9c08aa38fe3778b868b6ee0fdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d07058fb83243451c60d69a93fc45b4415da74b3daa6554140a6c0f2908cb50d29efc6d2573890fed8d72f4a7c92c14b4aa62ce2ec64a3b26569a8711902dcf
|
7
|
+
data.tar.gz: 975c1fe201ee8772a954dd734a37f4dc7401ea278b4dbd21e17ddc11a5e87d7ad0a6141e73f18ec63255feb181f8be252ad7dad6b115cfb4362f970bcc339580
|
data/lib/faraday.rb
CHANGED
@@ -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
|
data/lib/faraday/parameters.rb
CHANGED
@@ -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.
|
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-
|
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.
|
95
|
+
rubygems_version: 2.7.7
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: HTTP/REST API client library.
|