excon 0.110.0 → 0.112.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/cacert.pem +117 -32
- data/lib/excon/connection.rb +0 -1
- data/lib/excon/constants.rb +114 -118
- data/lib/excon/version.rb +1 -1
- data/lib/excon.rb +36 -47
- 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: a595b595665aaaf9b650c664bca78bdc66ad05b80d7641333ce3acbeb6a80c46
|
4
|
+
data.tar.gz: 7200b150fded0987a7c57fb1155580efd0825472f375523ce12e2b0dce2ebf25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27c315cb6b11bf5f09bdae2802d033cdee746d8d907c77324535452f03b42fe2f77375530761153062f5fc70f39972858e0dfe82d64edecc7e9ab83135ce93ba
|
7
|
+
data.tar.gz: 9c37add84efa4abb2766310f27a4aa7a151e31cc9e53cfdbd321c3aade0909b88d6d9ee0c9dea3accba8761dbb356d6570eb099bf24a52a96ea0576c1217edd9
|
data/data/cacert.pem
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
##
|
2
2
|
## Bundle of CA Root Certificates
|
3
3
|
##
|
4
|
-
## Certificate data from Mozilla as of:
|
4
|
+
## Certificate data from Mozilla as of: Tue Sep 24 03:12:04 2024 GMT
|
5
|
+
##
|
6
|
+
## Find updated versions here: https://curl.se/docs/caextract.html
|
5
7
|
##
|
6
8
|
## This is a bundle of X.509 certificates of public Certificate Authorities
|
7
9
|
## (CA). These were automatically extracted from Mozilla's root certificates
|
@@ -14,7 +16,7 @@
|
|
14
16
|
## Just configure this file as the SSLCACertificateFile.
|
15
17
|
##
|
16
18
|
## Conversion done with mk-ca-bundle.pl version 1.29.
|
17
|
-
## SHA256:
|
19
|
+
## SHA256: 36105b01631f9fc03b1eca779b44a30a1a5890b9bf8dc07ccb001a07301e01cf
|
18
20
|
##
|
19
21
|
|
20
22
|
|
@@ -2600,36 +2602,6 @@ vLtoURMMA/cVi4RguYv/Uo7njLwcAjA8+RHUjE7AwWHCFUyqqx0LMV87HOIAl0Qx5v5zli/altP+
|
|
2600
2602
|
CAezNIm8BZ/3Hobui3A=
|
2601
2603
|
-----END CERTIFICATE-----
|
2602
2604
|
|
2603
|
-
GLOBALTRUST 2020
|
2604
|
-
================
|
2605
|
-
-----BEGIN CERTIFICATE-----
|
2606
|
-
MIIFgjCCA2qgAwIBAgILWku9WvtPilv6ZeUwDQYJKoZIhvcNAQELBQAwTTELMAkGA1UEBhMCQVQx
|
2607
|
-
IzAhBgNVBAoTGmUtY29tbWVyY2UgbW9uaXRvcmluZyBHbWJIMRkwFwYDVQQDExBHTE9CQUxUUlVT
|
2608
|
-
VCAyMDIwMB4XDTIwMDIxMDAwMDAwMFoXDTQwMDYxMDAwMDAwMFowTTELMAkGA1UEBhMCQVQxIzAh
|
2609
|
-
BgNVBAoTGmUtY29tbWVyY2UgbW9uaXRvcmluZyBHbWJIMRkwFwYDVQQDExBHTE9CQUxUUlVTVCAy
|
2610
|
-
MDIwMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAri5WrRsc7/aVj6B3GyvTY4+ETUWi
|
2611
|
-
D59bRatZe1E0+eyLinjF3WuvvcTfk0Uev5E4C64OFudBc/jbu9G4UeDLgztzOG53ig9ZYybNpyrO
|
2612
|
-
VPu44sB8R85gfD+yc/LAGbaKkoc1DZAoouQVBGM+uq/ufF7MpotQsjj3QWPKzv9pj2gOlTblzLmM
|
2613
|
-
CcpL3TGQlsjMH/1WljTbjhzqLL6FLmPdqqmV0/0plRPwyJiT2S0WR5ARg6I6IqIoV6Lr/sCMKKCm
|
2614
|
-
fecqQjuCgGOlYx8ZzHyyZqjC0203b+J+BlHZRYQfEs4kUmSFC0iAToexIiIwquuuvuAC4EDosEKA
|
2615
|
-
A1GqtH6qRNdD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3+vA/MRYfg0UFodUJ25W5HCEuGwyEn6CMUO+1918
|
2628
|
-
oa2u1qsgEu8KwxCMSZY13At1XrFP1U80DhEgB3VDRemjEdqso5nCtnkn4rnvyOL2NSl6dPrFf4IF
|
2629
|
-
YqYK6miyeUcGbvJXqBUzxvd4Sj1Ce2t+/vdG6tHrju+IaFvowdlxfv1k7/9nR4hYJS8+hge9+6jl
|
2630
|
-
gqispdNpQ80xiEmEU5LAsTkbOYMBMMTyqfrQA71yN2BWHzZ8vTmR9W0Nv3vXkg==
|
2631
|
-
-----END CERTIFICATE-----
|
2632
|
-
|
2633
2605
|
ANF Secure Server Root CA
|
2634
2606
|
=========================
|
2635
2607
|
-----BEGIN CERTIFICATE-----
|
@@ -3579,3 +3551,116 @@ wPfc5+pbrrLMtTWGS9DiP7bY+A4A7l3j941Y/8+LN+ljX273CXE2whJdV/LItM3z7gLfEdxquVeE
|
|
3579
3551
|
HVlNjM7IDiPCtyaaEBRx/pOyiriA8A4QntOoUAw3gi/q4Iqd4Sw5/7W0cwDk90imc6y/st53BIe0
|
3580
3552
|
o82bNSQ3+pCTE4FCxpgmdTdmQRCsu/WU48IxK63nI1bMNSWSs1A=
|
3581
3553
|
-----END CERTIFICATE-----
|
3554
|
+
|
3555
|
+
FIRMAPROFESIONAL CA ROOT-A WEB
|
3556
|
+
==============================
|
3557
|
+
-----BEGIN CERTIFICATE-----
|
3558
|
+
MIICejCCAgCgAwIBAgIQMZch7a+JQn81QYehZ1ZMbTAKBggqhkjOPQQDAzBuMQswCQYDVQQGEwJF
|
3559
|
+
UzEcMBoGA1UECgwTRmlybWFwcm9mZXNpb25hbCBTQTEYMBYGA1UEYQwPVkFURVMtQTYyNjM0MDY4
|
3560
|
+
MScwJQYDVQQDDB5GSVJNQVBST0ZFU0lPTkFMIENBIFJPT1QtQSBXRUIwHhcNMjIwNDA2MDkwMTM2
|
3561
|
+
WhcNNDcwMzMxMDkwMTM2WjBuMQswCQYDVQQGEwJFUzEcMBoGA1UECgwTRmlybWFwcm9mZXNpb25h
|
3562
|
+
bCBTQTEYMBYGA1UEYQwPVkFURVMtQTYyNjM0MDY4MScwJQYDVQQDDB5GSVJNQVBST0ZFU0lPTkFM
|
3563
|
+
IENBIFJPT1QtQSBXRUIwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAARHU+osEaR3xyrq89Zfe9MEkVz6
|
3564
|
+
iMYiuYMQYneEMy3pA4jU4DP37XcsSmDq5G+tbbT4TIqk5B/K6k84Si6CcyvHZpsKjECcfIr28jlg
|
3565
|
+
st7L7Ljkb+qbXbdTkBgyVcUgt5SjYzBhMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUk+FD
|
3566
|
+
Y1w8ndYn81LsF7Kpryz3dvgwHQYDVR0OBBYEFJPhQ2NcPJ3WJ/NS7Beyqa8s93b4MA4GA1UdDwEB
|
3567
|
+
/wQEAwIBBjAKBggqhkjOPQQDAwNoADBlAjAdfKR7w4l1M+E7qUW/Runpod3JIha3RxEL2Jq68cgL
|
3568
|
+
cFBTApFwhVmpHqTm6iMxoAACMQD94vizrxa5HnPEluPBMBnYfubDl94cT7iJLzPrSA8Z94dGXSaQ
|
3569
|
+
pYXFuXqUPoeovQA=
|
3570
|
+
-----END CERTIFICATE-----
|
3571
|
+
|
3572
|
+
TWCA CYBER Root CA
|
3573
|
+
==================
|
3574
|
+
-----BEGIN CERTIFICATE-----
|
3575
|
+
MIIFjTCCA3WgAwIBAgIQQAE0jMIAAAAAAAAAATzyxjANBgkqhkiG9w0BAQwFADBQMQswCQYDVQQG
|
3576
|
+
EwJUVzESMBAGA1UEChMJVEFJV0FOLUNBMRAwDgYDVQQLEwdSb290IENBMRswGQYDVQQDExJUV0NB
|
3577
|
+
IENZQkVSIFJvb3QgQ0EwHhcNMjIxMTIyMDY1NDI5WhcNNDcxMTIyMTU1OTU5WjBQMQswCQYDVQQG
|
3578
|
+
EwJUVzESMBAGA1UEChMJVEFJV0FOLUNBMRAwDgYDVQQLEwdSb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esRiDrWIzLjHhg6hShbNcAu3p4ULs3a2D6f/CIsLJc+o1IN1KriWiLb73y0ttGlTITVX1olN
|
3592
|
+
c79pj3CjYcya2x6a4CD4bLubIp1dhDGaLIrdaqHXKGnK/nZVekZn68xDiBaiA9a5F/gZbG0jAn/x
|
3593
|
+
X9AKKSM70aoK7akXJlQKTcKlTfjF/biBzysseKNnTKkHmvPfXvt89YnNdJdhEGoHK4Fa0o635yDR
|
3594
|
+
IG4kqIQnoVesqlVYL9zZyvpoBJ7tRCT5dEA7IzOrg1oYJkK2bVS1FmAwbLGg+LhBoF1JSdJlBTrq
|
3595
|
+
/p1hvIbZv97Tujqxf36SNI7JAG7cmL3c7IAFrQI932XtCwP39xaEBDG6k5TY8hL4iuO/Qq+n1M0R
|
3596
|
+
FxbIQh0UqEL20kCGoE8jypZFVmAGzbdVAaYBlGX+bgUJurSkquLvWL69J1bY73NxW0Qz8ppy6rBe
|
3597
|
+
Pm6pUlvscG21h483XjyMnM7k8M4MZ0HMzvaAq07MTFb1wWFZk7Q+ptq4NxKfKjLji7gh7MMrZQzv
|
3598
|
+
It6IKTtM1/r+t+FHvpw+PoP7UV31aPcuIYXcv/Fa4nzXxeSDwWrruoBa3lwtcHb4yOWHh8qgnaHl
|
3599
|
+
IhInD0Q9HWzq1MKLL295q39QpsQZp6F6t5b5wR9iWqJDB0BeJsas7a5wFsWqynKKTbDPAYsDP27X
|
3600
|
+
-----END CERTIFICATE-----
|
3601
|
+
|
3602
|
+
SecureSign Root CA12
|
3603
|
+
====================
|
3604
|
+
-----BEGIN CERTIFICATE-----
|
3605
|
+
MIIDcjCCAlqgAwIBAgIUZvnHwa/swlG07VOX5uaCwysckBYwDQYJKoZIhvcNAQELBQAwUTELMAkG
|
3606
|
+
A1UEBhMCSlAxIzAhBgNVBAoTGkN5YmVydHJ1c3QgSmFwYW4gQ28uLCBMdGQuMR0wGwYDVQQDExRT
|
3607
|
+
ZWN1cmVTaWduIFJvb3QgQ0ExMjAeFw0yMDA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|
+
aaI5gdka9at/yOPiZwud9AzqVN/Ssq+xIvEg37xEHA==
|
3621
|
+
-----END CERTIFICATE-----
|
3622
|
+
|
3623
|
+
SecureSign Root CA14
|
3624
|
+
====================
|
3625
|
+
-----BEGIN CERTIFICATE-----
|
3626
|
+
MIIFcjCCA1qgAwIBAgIUZNtaDCBO6Ncpd8hQJ6JaJ90t8sswDQYJKoZIhvcNAQEMBQAwUTELMAkG
|
3627
|
+
A1UEBhMCSlAxIzAhBgNVBAoTGkN5YmVydHJ1c3QgSmFwYW4gQ28uLCBMdGQuMR0wGwYDVQQDExRT
|
3628
|
+
ZWN1cmVTaWduIFJvb3QgQ0ExNDAeFw0yMDA0MDgwNzA2MTlaFw00NTA0MDgwNzA2MTlaMFExCzAJ
|
3629
|
+
BgNVBAYTAkpQMSMwIQYDVQQKExpDeWJlcnRydXN0IEphcGFuIENvLiwgTHRkLjEdMBsGA1UEAxMU
|
3630
|
+
U2VjdXJlU2lnbiBSb290IENBMTQwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDF0nqh
|
3631
|
+
1oq/FjHQmNE6lPxauG4iwWL3pwon71D2LrGeaBLwbCRjOfHw3xDG3rdSINVSW0KZnvOgvlIfX8xn
|
3632
|
+
bacuUKLBl422+JX1sLrcneC+y9/3OPJH9aaakpUqYllQC6KxNedlsmGy6pJxaeQp8E+BgQQ8sqVb
|
3633
|
+
1MWoWWd7VRxJq3qdwudzTe/NCcLEVxLbAQ4jeQkHO6Lo/IrPj8BGJJw4J+CDnRugv3gVEOuGTgpa
|
3634
|
+
/d/aLIJ+7sr2KeH6caH3iGicnPCNvg9JkdjqOvn90Ghx2+m1K06Ckm9mH+Dw3EzsytHqunQG+bOE
|
3635
|
+
kJTRX45zGRBdAuVwpcAQ0BB8b8VYSbSwbprafZX1zNoCr7gsfXmPvkPx+SgojQlD+Ajda8iLLCSx
|
3636
|
+
jVIHvXiby8posqTdDEx5YMaZ0ZPxMBoH064iwurO8YQJzOAUb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+
pygau1LgePhsumywbrmHXumZNTfxPWQrqaA0k89jL9WB365jJ6UeTo3cKXhZ+PmhIIynJkBugnLN
|
3650
|
+
eLLIjzwec+fBH7/PzqUqm9tEZDKgu39cJRNItX+S
|
3651
|
+
-----END CERTIFICATE-----
|
3652
|
+
|
3653
|
+
SecureSign Root CA15
|
3654
|
+
====================
|
3655
|
+
-----BEGIN CERTIFICATE-----
|
3656
|
+
MIICIzCCAamgAwIBAgIUFhXHw9hJp75pDIqI7fBw+d23PocwCgYIKoZIzj0EAwMwUTELMAkGA1UE
|
3657
|
+
BhMCSlAxIzAhBgNVBAoTGkN5YmVydHJ1c3QgSmFwYW4gQ28uLCBMdGQuMR0wGwYDVQQDExRTZWN1
|
3658
|
+
cmVTaWduIFJvb3QgQ0ExNTAeFw0yMDA0MDgwODMyNTZaFw00NTA0MDgwODMyNTZaMFExCzAJBgNV
|
3659
|
+
BAYTAkpQMSMwIQYDVQQKExpDeWJlcnRydXN0IEphcGFuIENvLiwgTHRkLjEdMBsGA1UEAxMUU2Vj
|
3660
|
+
dXJlU2lnbiBSb290IENBMTUwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQLUHSNZDKZmbPSYAi4Io5G
|
3661
|
+
dCx4wCtELW1fHcmuS1Iggz24FG1Th2CeX2yF2wYUleDHKP+dX+Sq8bOLbe1PL0vJSpSRZHX+AezB
|
3662
|
+
2Ot6lHhWGENfa4HL9rzatAy2KZMIaY+jQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQD
|
3663
|
+
AgEGMB0GA1UdDgQWBBTrQciu/NWeUUj1vYv0hyCTQSvT9DAKBggqhkjOPQQDAwNoADBlAjEA2S6J
|
3664
|
+
fl5OpBEHvVnCB96rMjhTKkZEBhd6zlHp4P9mLQlO4E/0BdGF9jVg3PVys0Z9AjBEmEYagoUeYWmJ
|
3665
|
+
SwdLZrWeqrqgHkHZAXQ6bkU6iYAZezKYVWOr62Nuk22rGwlgMU4=
|
3666
|
+
-----END CERTIFICATE-----
|
data/lib/excon/connection.rb
CHANGED
data/lib/excon/constants.rb
CHANGED
@@ -1,16 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
module Excon
|
3
|
-
|
4
3
|
CR_NL = "\r\n"
|
5
4
|
|
6
|
-
DEFAULT_CA_FILE = File.expand_path(File.join(File.dirname(__FILE__),
|
5
|
+
DEFAULT_CA_FILE = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'data', 'cacert.pem'))
|
7
6
|
|
8
|
-
DEFAULT_CHUNK_SIZE =
|
7
|
+
DEFAULT_CHUNK_SIZE = 1_048_576 # 1 megabyte
|
9
8
|
|
10
9
|
# avoid overwrite if somebody has redefined
|
11
|
-
unless const_defined?(:CHUNK_SIZE)
|
12
|
-
CHUNK_SIZE = DEFAULT_CHUNK_SIZE
|
13
|
-
end
|
10
|
+
CHUNK_SIZE = DEFAULT_CHUNK_SIZE unless const_defined?(:CHUNK_SIZE)
|
14
11
|
|
15
12
|
DEFAULT_REDIRECT_LIMIT = 10
|
16
13
|
|
@@ -20,13 +17,13 @@ module Excon
|
|
20
17
|
Excon::Error::Timeout,
|
21
18
|
Excon::Error::Socket,
|
22
19
|
Excon::Error::HTTPStatus
|
23
|
-
]
|
20
|
+
].freeze
|
24
21
|
|
25
22
|
FORCE_ENC = CR_NL.respond_to?(:force_encoding)
|
26
23
|
|
27
24
|
HTTP_1_1 = " HTTP/1.1\r\n"
|
28
25
|
|
29
|
-
HTTP_VERBS = %w
|
26
|
+
HTTP_VERBS = %w[connect delete get head options patch post put trace].freeze
|
30
27
|
|
31
28
|
HTTPS = 'https'
|
32
29
|
|
@@ -40,89 +37,89 @@ module Excon
|
|
40
37
|
|
41
38
|
VERSIONS = "#{USER_AGENT} (#{RUBY_PLATFORM}) ruby/#{RUBY_VERSION}"
|
42
39
|
|
43
|
-
VALID_REQUEST_KEYS = [
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
]
|
70
|
-
|
71
|
-
VALID_CONNECTION_KEYS = VALID_REQUEST_KEYS + [
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
40
|
+
VALID_REQUEST_KEYS = %i[
|
41
|
+
allow_unstubbed_requests
|
42
|
+
body
|
43
|
+
chunk_size
|
44
|
+
debug_request
|
45
|
+
debug_response
|
46
|
+
dns_timeouts
|
47
|
+
headers
|
48
|
+
instrumentor
|
49
|
+
logger
|
50
|
+
method
|
51
|
+
middlewares
|
52
|
+
password
|
53
|
+
path
|
54
|
+
persistent
|
55
|
+
pipeline
|
56
|
+
query
|
57
|
+
read_timeout
|
58
|
+
request_block
|
59
|
+
resolv_resolver
|
60
|
+
response_block
|
61
|
+
stubs
|
62
|
+
timeout
|
63
|
+
user
|
64
|
+
versions
|
65
|
+
write_timeout
|
66
|
+
].freeze
|
67
|
+
|
68
|
+
VALID_CONNECTION_KEYS = VALID_REQUEST_KEYS + %i[
|
69
|
+
ciphers
|
70
|
+
client_key
|
71
|
+
client_key_data
|
72
|
+
client_key_pass
|
73
|
+
client_cert
|
74
|
+
client_cert_data
|
75
|
+
client_chain
|
76
|
+
client_chain_data
|
77
|
+
certificate
|
78
|
+
certificate_path
|
79
|
+
disable_proxy
|
80
|
+
private_key
|
81
|
+
private_key_path
|
82
|
+
connect_timeout
|
83
|
+
family
|
84
|
+
keepalive
|
85
|
+
host
|
86
|
+
hostname
|
87
|
+
omit_default_port
|
88
|
+
nonblock
|
89
|
+
reuseaddr
|
90
|
+
port
|
91
|
+
proxy
|
92
|
+
scheme
|
93
|
+
socket
|
94
|
+
ssl_ca_file
|
95
|
+
ssl_ca_path
|
96
|
+
ssl_cert_store
|
97
|
+
ssl_verify_callback
|
98
|
+
ssl_verify_peer
|
99
|
+
ssl_verify_peer_host
|
100
|
+
ssl_verify_hostname
|
101
|
+
ssl_version
|
102
|
+
ssl_min_version
|
103
|
+
ssl_max_version
|
104
|
+
ssl_security_level
|
105
|
+
ssl_proxy_headers
|
106
|
+
ssl_uri_schemes
|
107
|
+
tcp_nodelay
|
108
|
+
thread_safe_sockets
|
109
|
+
uri_parser
|
113
110
|
]
|
114
111
|
|
115
112
|
DEPRECATED_VALID_REQUEST_KEYS = {
|
116
|
-
:
|
117
|
-
:
|
118
|
-
:
|
119
|
-
:
|
120
|
-
:
|
121
|
-
:
|
122
|
-
:
|
123
|
-
:
|
124
|
-
:
|
125
|
-
}
|
113
|
+
captures: 'Mock',
|
114
|
+
expects: 'Expects',
|
115
|
+
idempotent: 'Idempotent',
|
116
|
+
instrumentor_name: 'Instrumentor',
|
117
|
+
mock: 'Mock',
|
118
|
+
retries_remaining: 'Idempotent', # referenced in Instrumentor, but only relevant with Idempotent
|
119
|
+
retry_errors: 'Idempotent',
|
120
|
+
retry_interval: 'Idempotent',
|
121
|
+
retry_limit: 'Idempotent' # referenced in Instrumentor, but only relevant with Idempotent
|
122
|
+
}.freeze
|
126
123
|
|
127
124
|
unless ::IO.const_defined?(:WaitReadable)
|
128
125
|
class ::IO
|
@@ -135,47 +132,46 @@ module Excon
|
|
135
132
|
module WaitWritable; end
|
136
133
|
end
|
137
134
|
end
|
135
|
+
|
138
136
|
# these come last as they rely on the above
|
139
137
|
DEFAULTS = {
|
140
|
-
:
|
138
|
+
chunk_size: CHUNK_SIZE || DEFAULT_CHUNK_SIZE,
|
141
139
|
# see https://wiki.mozilla.org/Security/Server_Side_TLS#Intermediate_compatibility_.28default.29
|
142
140
|
# list provided then had DES related things sorted to the end
|
143
|
-
:
|
144
|
-
:
|
145
|
-
:
|
146
|
-
:
|
147
|
-
:
|
148
|
-
|
149
|
-
:headers => {
|
141
|
+
ciphers: 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:DES-CBC3-SHA:!DSS',
|
142
|
+
connect_timeout: 60,
|
143
|
+
debug_request: false,
|
144
|
+
debug_response: false,
|
145
|
+
dns_timeouts: nil, # nil allows Resolv::DNS default timeout value (see https://ruby-doc.org/3.2.2/stdlibs/resolv/Resolv/DNS.html#method-i-timeouts-3D)
|
146
|
+
headers: {
|
150
147
|
'User-Agent' => USER_AGENT,
|
151
|
-
'Accept'
|
148
|
+
'Accept' => '*/*'
|
152
149
|
},
|
153
|
-
:
|
154
|
-
:
|
155
|
-
:
|
150
|
+
idempotent: false,
|
151
|
+
instrumentor_name: 'excon',
|
152
|
+
middlewares: [
|
156
153
|
Excon::Middleware::ResponseParser,
|
157
154
|
Excon::Middleware::Expects,
|
158
155
|
Excon::Middleware::Idempotent,
|
159
156
|
Excon::Middleware::Instrumentor,
|
160
157
|
Excon::Middleware::Mock
|
161
158
|
],
|
162
|
-
:
|
163
|
-
:
|
164
|
-
:
|
165
|
-
:
|
166
|
-
:
|
167
|
-
:
|
168
|
-
:
|
169
|
-
:
|
170
|
-
:
|
171
|
-
:
|
172
|
-
:
|
173
|
-
:
|
174
|
-
:
|
175
|
-
:
|
176
|
-
:
|
177
|
-
:
|
178
|
-
:
|
159
|
+
mock: false,
|
160
|
+
nonblock: true,
|
161
|
+
omit_default_port: false,
|
162
|
+
persistent: false,
|
163
|
+
read_timeout: 60,
|
164
|
+
resolv_resolver: nil,
|
165
|
+
retry_errors: DEFAULT_RETRY_ERRORS,
|
166
|
+
retry_limit: DEFAULT_RETRY_LIMIT,
|
167
|
+
ssl_verify_peer: true,
|
168
|
+
ssl_uri_schemes: [HTTPS],
|
169
|
+
stubs: :global,
|
170
|
+
tcp_nodelay: false,
|
171
|
+
thread_safe_sockets: true,
|
172
|
+
timeout: nil,
|
173
|
+
uri_parser: URI,
|
174
|
+
versions: VERSIONS,
|
175
|
+
write_timeout: 60
|
179
176
|
}
|
180
|
-
|
181
177
|
end
|
data/lib/excon/version.rb
CHANGED
data/lib/excon.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
$:.unshift(File.dirname(__FILE__)) unless
|
3
4
|
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
4
5
|
|
5
6
|
require 'cgi'
|
6
7
|
require 'forwardable'
|
8
|
+
require 'ipaddr'
|
7
9
|
require 'openssl'
|
8
10
|
require 'rbconfig'
|
9
11
|
require 'socket'
|
@@ -44,7 +46,6 @@ require 'excon/unix_socket'
|
|
44
46
|
# Define defaults first so they will be available to other files
|
45
47
|
module Excon
|
46
48
|
class << self
|
47
|
-
|
48
49
|
# @return [Hash] defaults for Excon connections
|
49
50
|
def defaults
|
50
51
|
@defaults ||= DEFAULTS
|
@@ -52,19 +53,15 @@ module Excon
|
|
52
53
|
|
53
54
|
# Change defaults for Excon connections
|
54
55
|
# @return [Hash] defaults for Excon connections
|
55
|
-
|
56
|
-
@defaults = new_defaults
|
57
|
-
end
|
56
|
+
attr_writer :defaults
|
58
57
|
|
59
58
|
def display_warning(warning)
|
60
59
|
# Show warning if $VERBOSE or ENV['EXCON_DEBUG'] is set
|
61
|
-
|
62
|
-
$stderr.puts "[excon][WARNING] #{warning}\n#{ caller.join("\n") }"
|
63
|
-
end
|
60
|
+
($VERBOSE || ENV['EXCON_DEBUG']) && Warning.warn("[excon][WARNING] #{warning}\n#{caller.join("\n")}")
|
64
61
|
|
65
|
-
|
66
|
-
|
67
|
-
|
62
|
+
return unless @raise_on_warnings
|
63
|
+
|
64
|
+
raise(Error::Warning, warning)
|
68
65
|
end
|
69
66
|
|
70
67
|
def set_raise_on_warnings!(should_raise)
|
@@ -119,32 +116,25 @@ module Excon
|
|
119
116
|
def new(url, params = {})
|
120
117
|
uri_parser = params[:uri_parser] || defaults[:uri_parser]
|
121
118
|
uri = uri_parser.parse(url)
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
unless uri.scheme
|
126
|
-
raise ArgumentError.new("Invalid URI: #{uri}")
|
127
|
-
end
|
119
|
+
params[:path] && uri_parser.parse(params[:path])
|
120
|
+
raise(ArgumentError, "Invalid URI: #{uri}") unless uri.scheme
|
121
|
+
|
128
122
|
params = {
|
129
|
-
:
|
130
|
-
:
|
131
|
-
:
|
132
|
-
:
|
133
|
-
:
|
134
|
-
:
|
123
|
+
host: uri.host,
|
124
|
+
hostname: uri.hostname,
|
125
|
+
path: uri.path,
|
126
|
+
port: uri.port,
|
127
|
+
query: uri.query,
|
128
|
+
scheme: uri.scheme
|
135
129
|
}.merge(params)
|
136
|
-
|
137
|
-
|
138
|
-
end
|
139
|
-
if uri.user
|
140
|
-
params[:user] = Utils.unescape_uri(uri.user)
|
141
|
-
end
|
130
|
+
uri.password && params[:password] = Utils.unescape_uri(uri.password)
|
131
|
+
uri.user && params[:user] = Utils.unescape_uri(uri.user)
|
142
132
|
Excon::Connection.new(params)
|
143
133
|
end
|
144
134
|
|
145
135
|
# push an additional stub onto the list to check for mock requests
|
146
136
|
# @param request_params [Hash<Symbol, >] request params to match against, omitted params match all
|
147
|
-
# @param response_params [Hash<Symbol, >] response params to return
|
137
|
+
# @param response_params [Hash<Symbol, >] response params to return or block to call with matched params
|
148
138
|
def stub(request_params = {}, response_params = nil, &block)
|
149
139
|
if (method = request_params.delete(:method))
|
150
140
|
request_params[:method] = method.to_s.downcase.to_sym
|
@@ -152,19 +142,20 @@ module Excon
|
|
152
142
|
if (url = request_params.delete(:url))
|
153
143
|
uri = URI.parse(url)
|
154
144
|
request_params = {
|
155
|
-
:
|
156
|
-
:
|
157
|
-
:
|
158
|
-
:
|
159
|
-
:
|
145
|
+
host: uri.host,
|
146
|
+
path: uri.path,
|
147
|
+
port: uri.port,
|
148
|
+
query: uri.query,
|
149
|
+
scheme: uri.scheme
|
160
150
|
}.merge!(request_params)
|
161
151
|
if uri.user || uri.password
|
162
152
|
request_params[:headers] ||= {}
|
163
|
-
user
|
153
|
+
user = Utils.unescape_form(uri.user.to_s)
|
154
|
+
pass = Utils.unescape_form(uri.password.to_s)
|
164
155
|
request_params[:headers]['Authorization'] ||= 'Basic ' + ["#{user}:#{pass}"].pack('m').delete(Excon::CR_NL)
|
165
156
|
end
|
166
157
|
end
|
167
|
-
if request_params.
|
158
|
+
if request_params.key?(:headers)
|
168
159
|
headers = Excon::Headers.new
|
169
160
|
request_params[:headers].each do |key, value|
|
170
161
|
headers[key] = value
|
@@ -172,15 +163,13 @@ module Excon
|
|
172
163
|
request_params[:headers] = headers
|
173
164
|
end
|
174
165
|
if block_given?
|
175
|
-
if response_params
|
176
|
-
|
177
|
-
|
178
|
-
stub = [request_params, block]
|
179
|
-
end
|
166
|
+
raise(ArgumentError, 'stub requires either response_params OR a block') if response_params
|
167
|
+
|
168
|
+
stub = [request_params, block]
|
180
169
|
elsif response_params
|
181
170
|
stub = [request_params, response_params]
|
182
171
|
else
|
183
|
-
raise(ArgumentError
|
172
|
+
raise(ArgumentError, 'stub requires either response_params OR a block')
|
184
173
|
end
|
185
174
|
stubs.unshift(stub)
|
186
175
|
stub
|
@@ -194,8 +183,8 @@ module Excon
|
|
194
183
|
request_params[:method] = method.to_s.downcase.to_sym
|
195
184
|
end
|
196
185
|
Excon.stubs.each do |stub, response_params|
|
197
|
-
captures = { :
|
198
|
-
headers_match = !stub.
|
186
|
+
captures = { headers: {} }
|
187
|
+
headers_match = !stub.key?(:headers) || stub[:headers].keys.all? do |key|
|
199
188
|
case value = stub[:headers][key]
|
200
189
|
when Regexp
|
201
190
|
case request_params[:headers][key]
|
@@ -249,9 +238,9 @@ module Excon
|
|
249
238
|
# @param request_params [Hash<Symbol, >] request params to match against, omitted params match all
|
250
239
|
# @return [Hash<Symbol, >] response params from deleted stub
|
251
240
|
def unstub(request_params = {})
|
252
|
-
|
253
|
-
|
254
|
-
|
241
|
+
return unless (stub = stub_for(request_params))
|
242
|
+
|
243
|
+
Excon.stubs.delete_at(Excon.stubs.index(stub))
|
255
244
|
end
|
256
245
|
|
257
246
|
# Generic non-persistent HTTP methods
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: excon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.112.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dpiddy (Dan Peterson)
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-
|
13
|
+
date: 2024-10-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|
@@ -251,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
251
251
|
- !ruby/object:Gem::Version
|
252
252
|
version: '0'
|
253
253
|
requirements: []
|
254
|
-
rubygems_version: 3.
|
254
|
+
rubygems_version: 3.5.18
|
255
255
|
signing_key:
|
256
256
|
specification_version: 4
|
257
257
|
summary: speed, persistence, http(s)
|