ethon 0.5.1 → 0.5.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.
- data/CHANGELOG.md +13 -2
- data/lib/ethon/curls/options.rb +1 -3
- data/lib/ethon/easy.rb +7 -0
- data/lib/ethon/easy/options.rb +1 -1
- data/lib/ethon/multi/operations.rb +1 -1
- data/lib/ethon/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG.md
CHANGED
@@ -2,9 +2,20 @@
|
|
2
2
|
|
3
3
|
## Master
|
4
4
|
|
5
|
+
[Full Changelog](http://github.com/typhoeus/ethon/compare/v0.5.1...master)
|
6
|
+
|
7
|
+
Enhancements:
|
8
|
+
|
9
|
+
* New libcurl option keypasswd.
|
10
|
+
|
11
|
+
Bugfixes:
|
12
|
+
|
13
|
+
* Correct request logging when using multi interface.
|
14
|
+
* Remove invalid libcurl option sslcertpasswd.
|
15
|
+
|
5
16
|
## 0.5.1
|
6
17
|
|
7
|
-
[Full Changelog](http://github.com/typhoeus/ethon/compare/v0.5.0...
|
18
|
+
[Full Changelog](http://github.com/typhoeus/ethon/compare/v0.5.0...v0.5.1)
|
8
19
|
|
9
20
|
Bugfixes:
|
10
21
|
|
@@ -13,7 +24,7 @@ Bugfixes:
|
|
13
24
|
|
14
25
|
## 0.5.0
|
15
26
|
|
16
|
-
[Full Changelog](http://github.com/typhoeus/ethon/compare/v0.4.4...
|
27
|
+
[Full Changelog](http://github.com/typhoeus/ethon/compare/v0.4.4...v0.5.0)
|
17
28
|
|
18
29
|
Enhancements:
|
19
30
|
|
data/lib/ethon/curls/options.rb
CHANGED
@@ -40,7 +40,6 @@ module Ethon
|
|
40
40
|
# https://github.com/bagder/curl/blob/master/include/curl/curl.h
|
41
41
|
def easy_options
|
42
42
|
{
|
43
|
-
|
44
43
|
:file => option_types[:object_point] + 1,
|
45
44
|
:writedata => option_types[:object_point] + 1,
|
46
45
|
:url => option_types[:object_point] + 2,
|
@@ -66,8 +65,7 @@ module Ethon
|
|
66
65
|
:httpheader => option_types[:object_point] + 23,
|
67
66
|
:httppost => option_types[:object_point] + 24,
|
68
67
|
:sslcert => option_types[:object_point] + 25,
|
69
|
-
:
|
70
|
-
:sslkeypasswd => option_types[:object_point] + 26,
|
68
|
+
:keypasswd => option_types[:object_point] + 26,
|
71
69
|
:crlf => option_types[:long] + 27,
|
72
70
|
:quote => option_types[:object_point] + 28,
|
73
71
|
:writeheader => option_types[:object_point] + 29,
|
data/lib/ethon/easy.rb
CHANGED
@@ -384,6 +384,13 @@ module Ethon
|
|
384
384
|
# to avoid allowing the code to block. If "if!" is specified but the
|
385
385
|
# parameter does not match an existing interface,
|
386
386
|
# CURLE_INTERFACE_FAILED is returned.
|
387
|
+
# @option options :keypasswd [String]
|
388
|
+
# Pass a pointer to a zero terminated string as parameter. It will be
|
389
|
+
# used as the password required to use the CURLOPT_SSLKEY or
|
390
|
+
# CURLOPT_SSH_PRIVATE_KEYFILE private key. You never needed a pass
|
391
|
+
# phrase to load a certificate but you need one to load your private key.
|
392
|
+
# (This option was known as CURLOPT_SSLKEYPASSWD up to 7.16.4 and
|
393
|
+
# CURLOPT_SSLCERTPASSWD up to 7.9.2)
|
387
394
|
# @option options :maxredirs [Integer]
|
388
395
|
# Pass a long. The set number will be the redirection limit. If that
|
389
396
|
# many redirections have been followed, the next redirect will cause an
|
data/lib/ethon/easy/options.rb
CHANGED
@@ -14,7 +14,7 @@ module Ethon
|
|
14
14
|
:dns_cache_timeout, :httppost, :httpget, :nobody, :upload,
|
15
15
|
:customrequest, :cainfo, :capath, :connecttimeout, :connecttimeout_ms,
|
16
16
|
:forbid_reuse, :followlocation, :httpauth, :infilesize, :interface,
|
17
|
-
:maxredirs, :nosignal, :postfieldsize, :copypostfields, :proxy,
|
17
|
+
:keypasswd, :maxredirs, :nosignal, :postfieldsize, :copypostfields, :proxy,
|
18
18
|
:proxyauth, :proxyport, :proxytype, :proxyuserpwd, :timeout, :timeout_ms,
|
19
19
|
:readdata, :sslcert, :ssl_verifypeer, :ssl_verifyhost, :sslcerttype,
|
20
20
|
:sslkey, :sslkeytype, :sslversion, :url, :useragent, :userpwd,
|
@@ -138,9 +138,9 @@ module Ethon
|
|
138
138
|
next if msg[:code] != :done
|
139
139
|
easy = easy_handles.find{ |e| e.handle == msg[:easy_handle] }
|
140
140
|
easy.return_code = msg[:data][:code]
|
141
|
+
Ethon.logger.debug("ETHON: performed #{easy.log_inspect}")
|
141
142
|
delete(easy)
|
142
143
|
easy.complete
|
143
|
-
Ethon.logger.debug("ETHON: performed #{easy.log_inspect}")
|
144
144
|
end
|
145
145
|
end
|
146
146
|
|
data/lib/ethon/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ethon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
@@ -121,7 +121,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
121
121
|
version: '0'
|
122
122
|
segments:
|
123
123
|
- 0
|
124
|
-
hash:
|
124
|
+
hash: -2796817779069789218
|
125
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
126
|
none: false
|
127
127
|
requirements:
|