ethon 0.11.0 → 0.12.0

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
- SHA1:
3
- metadata.gz: ac54c9df1c6dfd22a65124a64c7bb93b2792dc55
4
- data.tar.gz: 5fedd427db76181d6bde8c7c4af4116bdf1cc272
2
+ SHA256:
3
+ metadata.gz: d849b2843c88fd4277aac9caa8b9e50b93ec7d3cf7805c4eb3c06dcfb6ee9959
4
+ data.tar.gz: 61b75662bc26c23ce525eb7b98ea2404308d3cd1c6912e92b7acbedabaf95944
5
5
  SHA512:
6
- metadata.gz: 538f6d8f6af52a294d72ecc3f63f8a2a7ed97f90154382979edfbdc6085f38e16ea4e336f1cdff3d107551402ba2408b87f8632added41b2915744b97da47c3c
7
- data.tar.gz: 54695f47f42ea0838c8da9531d136b52d6d77a8e5cd10374929c878b6ff55f572727d1e8afa3b854672ba6bbbcb5eff1d0d25091bc6d5f1ad6df0d757eeecb6e
6
+ metadata.gz: c586fb2b19fa35183ee81aaa685ddae7cbebbe55c80166dc20256f6d14181cfc15fe31f88b8951f474d05be77246201c24a8b27dc92a10c0ac177842f4d4c522
7
+ data.tar.gz: ef4b60756f41c27873cc8c4e7d7ab1d140ec24b6940dedcafc2920d7d7fa5d11e06a437e39c38742b4ac2e7041ad89f1b49f68566b5b90063cbf581b0efc78b2
data/.gitignore CHANGED
@@ -5,3 +5,4 @@ Gemfile.lock
5
5
  .yardoc
6
6
  doc
7
7
  coverage
8
+ .idea
@@ -12,9 +12,11 @@ rvm:
12
12
  - 1.9.2
13
13
  - 1.9.3
14
14
  - 2.0.0-p648
15
- - 2.1.8
16
- - 2.2.4
17
- - 2.3.0
15
+ - 2.1.10
16
+ - 2.2.10
17
+ - 2.3.7
18
+ - 2.4.4
19
+ - 2.5.1
18
20
  - ruby-head
19
21
  - ree
20
22
  - jruby-18mode
@@ -2,7 +2,15 @@
2
2
 
3
3
  ## Master
4
4
 
5
- [Full Changelog](https://github.com/typhoeus/ethon/compare/v0.10.1...master)
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
 
@@ -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, :bool, 3
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
@@ -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
@@ -38,7 +38,7 @@ module Ethon
38
38
  #
39
39
  # @return [ void ]
40
40
  def pipelining=(value)
41
- Curl.set_option(:pipelining, value_for(value, :bool), handle, :multi)
41
+ Curl.set_option(:pipelining, value_for(value, :int), handle, :multi)
42
42
  end
43
43
 
44
44
  # Sets socketdata option.
@@ -1,5 +1,5 @@
1
1
  module Ethon
2
2
 
3
3
  # Ethon version.
4
- VERSION = '0.11.0'
4
+ VERSION = '0.12.0'
5
5
  end
@@ -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.11.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: 2017-10-26 00:00:00.000000000 Z
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.2.2
156
+ rubygems_version: 2.7.6
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Libcurl wrapper.