ethon 0.11.0 → 0.12.0
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 +5 -5
- data/.gitignore +1 -0
- data/.travis.yml +5 -3
- data/CHANGELOG.md +9 -1
- data/lib/ethon/curls/options.rb +4 -1
- data/lib/ethon/easy/queryable.rb +3 -1
- data/lib/ethon/multi/options.rb +1 -1
- data/lib/ethon/version.rb +1 -1
- data/spec/ethon/easy/options_spec.rb +1 -1
- data/spec/ethon/easy/queryable_spec.rb +8 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d849b2843c88fd4277aac9caa8b9e50b93ec7d3cf7805c4eb3c06dcfb6ee9959
|
4
|
+
data.tar.gz: 61b75662bc26c23ce525eb7b98ea2404308d3cd1c6912e92b7acbedabaf95944
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c586fb2b19fa35183ee81aaa685ddae7cbebbe55c80166dc20256f6d14181cfc15fe31f88b8951f474d05be77246201c24a8b27dc92a10c0ac177842f4d4c522
|
7
|
+
data.tar.gz: ef4b60756f41c27873cc8c4e7d7ab1d140ec24b6940dedcafc2920d7d7fa5d11e06a437e39c38742b4ac2e7041ad89f1b49f68566b5b90063cbf581b0efc78b2
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,15 @@
|
|
2
2
|
|
3
3
|
## Master
|
4
4
|
|
5
|
-
[Full Changelog](https://github.com/typhoeus/ethon/compare/v0.
|
5
|
+
[Full Changelog](https://github.com/typhoeus/ethon/compare/v0.12.0...master)
|
6
|
+
|
7
|
+
## 0.12.0
|
8
|
+
|
9
|
+
[Full Changelog](https://github.com/typhoeus/ethon/compare/v0.11.0...v0.12.0)
|
10
|
+
|
11
|
+
## 0.11.0
|
12
|
+
|
13
|
+
[Full Changelog](https://github.com/typhoeus/ethon/compare/v0.10.1...v0.11.0)
|
6
14
|
|
7
15
|
## 0.10.1
|
8
16
|
|
data/lib/ethon/curls/options.rb
CHANGED
@@ -211,7 +211,7 @@ module Ethon
|
|
211
211
|
|
212
212
|
option :multi, :socketfunction, :callback, 1
|
213
213
|
option :multi, :socketdata, :cbdata, 2
|
214
|
-
option :multi, :pipelining, :
|
214
|
+
option :multi, :pipelining, :int, 3
|
215
215
|
option :multi, :timerfunction, :callback, 4
|
216
216
|
option :multi, :timerdata, :cbdata, 5
|
217
217
|
option :multi, :maxconnects, :int, 6
|
@@ -292,6 +292,8 @@ module Ethon
|
|
292
292
|
option :easy, :localportrange, :int, 140
|
293
293
|
option :easy, :dns_cache_timeout, :int, 92
|
294
294
|
option :easy, :dns_use_global_cache, :bool, 91 # Obsolete
|
295
|
+
option :easy, :dns_interface, :string, 221
|
296
|
+
option :easy, :dns_local_ip4, :string, 222
|
295
297
|
option :easy, :buffersize, :int, 98
|
296
298
|
option :easy, :port, :int, 3
|
297
299
|
option :easy, :tcp_nodelay, :bool, 121
|
@@ -417,6 +419,7 @@ module Ethon
|
|
417
419
|
option :easy, :dns_servers, :string, 211
|
418
420
|
option :easy, :accepttimeout_ms, :int, 212
|
419
421
|
option :easy, :unix_socket_path, :string, 231
|
422
|
+
option :easy, :pipewait, :bool, 237
|
420
423
|
option_alias :easy, :unix_socket_path, :unix_socket
|
421
424
|
## SSL and SECURITY OPTIONS
|
422
425
|
option :easy, :sslcert, :string, 25
|
data/lib/ethon/easy/queryable.rb
CHANGED
@@ -102,6 +102,8 @@ module Ethon
|
|
102
102
|
encode_rack_array_pairs(h, prefix, pairs)
|
103
103
|
elsif params_encoding == :multi
|
104
104
|
encode_multi_array_pairs(h, prefix, pairs)
|
105
|
+
elsif params_encoding == :none
|
106
|
+
pairs << [prefix, h]
|
105
107
|
else
|
106
108
|
encode_indexed_array_pairs(h, prefix, pairs)
|
107
109
|
end
|
@@ -128,7 +130,7 @@ module Ethon
|
|
128
130
|
pairs_for(v, key, pairs)
|
129
131
|
end
|
130
132
|
end
|
131
|
-
|
133
|
+
|
132
134
|
def encode_multi_array_pairs(h, prefix, pairs)
|
133
135
|
h.each_with_index do |v, i|
|
134
136
|
key = prefix
|
data/lib/ethon/multi/options.rb
CHANGED
data/lib/ethon/version.rb
CHANGED
@@ -12,7 +12,7 @@ describe Ethon::Easy::Options do
|
|
12
12
|
:proxyuserpwd, :readdata, :readfunction, :redir_protocols, :ssl_verifyhost,
|
13
13
|
:ssl_verifypeer, :sslcert, :sslcerttype, :sslkey, :sslkeytype, :sslversion,
|
14
14
|
:timeout, :timeout_ms, :unrestricted_auth, :upload, :url, :useragent,
|
15
|
-
:userpwd, :verbose
|
15
|
+
:userpwd, :verbose, :pipewait
|
16
16
|
].each do |name|
|
17
17
|
describe "#{name}=" do
|
18
18
|
it "responds_to" do
|
@@ -122,6 +122,14 @@ describe Ethon::Easy::Queryable do
|
|
122
122
|
expect(pairs).to include(["b[]", 3])
|
123
123
|
end
|
124
124
|
end
|
125
|
+
|
126
|
+
context "when params_encoding is :none" do
|
127
|
+
before { params.params_encoding = :none }
|
128
|
+
it "does no transformation" do
|
129
|
+
expect(pairs).to include([:a, 1])
|
130
|
+
expect(pairs).to include([:b, [2, 3]])
|
131
|
+
end
|
132
|
+
end
|
125
133
|
end
|
126
134
|
|
127
135
|
context "when params contains something nested in an array" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ethon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hans Hasselberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: 1.3.6
|
154
154
|
requirements: []
|
155
155
|
rubyforge_project:
|
156
|
-
rubygems_version: 2.
|
156
|
+
rubygems_version: 2.7.6
|
157
157
|
signing_key:
|
158
158
|
specification_version: 4
|
159
159
|
summary: Libcurl wrapper.
|