excon 0.58.0 → 0.59.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of excon might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/changelog.txt +13 -0
- data/excon.gemspec +2 -2
- data/lib/excon/connection.rb +8 -2
- data/lib/excon/constants.rb +1 -1
- data/lib/excon/error.rb +1 -1
- data/tests/basic_tests.rb +2 -0
- data/tests/data/127.0.0.1.cert.crt +18 -18
- data/tests/data/127.0.0.1.cert.key +25 -25
- data/tests/data/excon.cert.crt +18 -18
- data/tests/data/excon.cert.key +25 -25
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 065cf41c3e9a068ab732dd8a27ba83bf5764c314
|
4
|
+
data.tar.gz: 7349548aa287fbbfdcecce8143c242698121d7e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96dd3aba549eb66d4998ecd7cc8cb46240c3c0a84ae97bbf1a11373081747692ad3c693e2e0171843db78f52fe69bd74e92a0b571a16cf8c4401f98977394b03
|
7
|
+
data.tar.gz: 321c041190ded594a6e399dcb3ec273987c6551e1591b653920a763fa989b7323b3bb0158b50d2e29768f2285417d9425e03c9f988526cef998ae44c41996afe
|
data/Gemfile.lock
CHANGED
data/changelog.txt
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
0.59.0 2017-09-05
|
2
|
+
=================
|
3
|
+
|
4
|
+
fix backtick vs quote in error message
|
5
|
+
fix socket pooling to be per-connection instead of per thread
|
6
|
+
fix tests to ignore proxy env settings
|
7
|
+
|
8
|
+
0.58.0 08/01/2017
|
9
|
+
=================
|
10
|
+
|
11
|
+
remove unused error
|
12
|
+
add retry_interval and related settings for backoff
|
13
|
+
|
1
14
|
0.57.1 06/30/2017
|
2
15
|
=================
|
3
16
|
|
data/excon.gemspec
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'excon'
|
16
|
-
s.version = '0.
|
17
|
-
s.date = '2017-
|
16
|
+
s.version = '0.59.0'
|
17
|
+
s.date = '2017-09-05'
|
18
18
|
s.rubyforge_project = 'excon'
|
19
19
|
|
20
20
|
## Make sure your summary is short. The description may be as long
|
data/lib/excon/connection.rb
CHANGED
@@ -408,10 +408,16 @@ module Excon
|
|
408
408
|
end
|
409
409
|
|
410
410
|
def sockets
|
411
|
+
@_excon_sockets ||= {}
|
412
|
+
|
411
413
|
if @data[:thread_safe_sockets]
|
412
|
-
|
414
|
+
# In a multi-threaded world, if the same connection is used by multiple
|
415
|
+
# threads at the same time to connect to the same destination, they may
|
416
|
+
# stomp on each other's sockets. This ensures every thread gets their
|
417
|
+
# own socket cache, within the context of a single connection.
|
418
|
+
@_excon_sockets[Thread.current.object_id] ||= {}
|
413
419
|
else
|
414
|
-
@_excon_sockets
|
420
|
+
@_excon_sockets
|
415
421
|
end
|
416
422
|
end
|
417
423
|
|
data/lib/excon/constants.rb
CHANGED
data/lib/excon/error.rb
CHANGED
@@ -31,7 +31,7 @@ Unable to verify certificate. This may be an issue with the remote host or with
|
|
31
31
|
`Excon.defaults[:ssl_ca_path] = path_to_certs`
|
32
32
|
`ENV['SSL_CERT_DIR'] = path_to_certs`
|
33
33
|
`Excon.defaults[:ssl_ca_file] = path_to_file`
|
34
|
-
`ENV['SSL_CERT_FILE'] = path_to_file
|
34
|
+
`ENV['SSL_CERT_FILE'] = path_to_file`
|
35
35
|
`Excon.defaults[:ssl_verify_callback] = callback`
|
36
36
|
(see OpenSSL::SSL::SSLContext#verify_callback)
|
37
37
|
or:
|
data/tests/basic_tests.rb
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
-----BEGIN CERTIFICATE-----
|
2
|
-
|
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0aN+Q2KNd4p0SHmlNGAZk9BiiRvPJJqenZ2D51MbJdH5O3N9FhLnwIK6eVaU
|
9
|
+
R/a3lf5hdkyGYi39zpGx47VG/6q9is1t+WXBWaaLdU0omDhlH281kq+HaV3akG6k
|
10
|
+
Kh70xFGXU9Ya7qwR+PA+WkGJO6z88qwESRpGZfSSBklpM0+qIbYOP7Zb9PMCAwEA
|
11
|
+
AaOBgTB/MB0GA1UdDgQWBBTMRFBCu23CeR4YBGR9+2h2b6xqODBQBgNVHSMESTBH
|
12
|
+
gBTMRFBCu23CeR4YBGR9+2h2b6xqOKEkpCIwIDEOMAwGA1UEAxMFZXhjb24xDjAM
|
13
|
+
BgNVBAoTBWV4Y29uggkAxoOTXRX9iq4wDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0B
|
14
|
+
AQsFAAOCAQEAWU6Q11wZFK6GhYK85IkW90FHug8/13DRJ3Q041ttQEpR48DW1lgj
|
15
|
+
5861hzKkYfyudJhk97WEnx2pzsZSogbiGv/jMT1otKk8RqQG/sQy/bqoTVZEg7I2
|
16
|
+
FyPCMV4fPFCm2dL7NTh51q0xeb9QFkxNFQ7YGtAvPSxs+GM/8gLxs4pSPMLSCNxX
|
17
|
+
0r6Lvook0ur+WXalGLu8110bCa4k+00SlZg0qZISlfrZyF5ofybylMjyy/qArgUy
|
18
|
+
8eltHfWbPhJEqf1yDPz2xCYGGCSplJMpvAhvSf4GSM55B27AoPlYlaS5wEaJf8Ft
|
19
|
+
g72ESuzICOQ617jOTeasIkkkoINIdnW1oA==
|
20
20
|
-----END CERTIFICATE-----
|
data/tests/data/excon.cert.key
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
-----BEGIN RSA PRIVATE KEY-----
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19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ggJsCgYEA0Wce
|
16
|
+
7poL7Xiyu1G1vr8vEbYtqelqHP28SzXkwrTqyOV8MPlw0/OhMDWmPLdE9mxSDwdD
|
17
|
+
QAlPvvCWXhHEM/St5tN72mzuyodHjNsVnlPAckj6ADTTAmUO0fixHjivZ/6v+PEo
|
18
|
+
SbjzmsbEExjyLKdScW8ALq3nfCdC9+Z3aTFShokCgYBbmz9gNtT9u94c+J11RPsR
|
19
|
+
xObvQrl3wXkXO5qsMbr5TN6wUBvos3J8F8DH2lTL9dF8ztGdnNtNB4feftwqJT7P
|
20
|
+
zXjCrlXJ0V/IAt2l5yt613B8CD3HZXI+lpNlQD82IvMJxb659YSIe9LFi7z0Guvd
|
21
|
+
pIkFGkaFaqPpAvaLeC5k1QKBgGTqrZ2P3++yG3DrEAu9V5HRmnAobVtLbVNRxc2Q
|
22
|
+
IxZugkuX6yg6YZQ6RsM8D6Ay09kqRt61nhkHGXB8X3IqmSSFB0tc9DfmujTH4MNM
|
23
|
+
2ZI6WUGAM7ETwvCuSa2m4+HafDQdBK2C1OPiptwNSaj7el/wfsYASW8r/Lo795Ba
|
24
|
+
lMsBAoGBAO8fKeu1cSrgNBG5Bafa5P2uPK1X9GASA1zgG6ay3FGH9m/vt36/DcRq
|
25
|
+
LQQP1WJUH8AR9/jlUgpS134Ww0AFVVh/ZHZTFnVkS8mn6wzFehxt49uVVcJncRzB
|
26
|
+
Vnes1S/Zky0RgvfR4rWy9NCYkIkqYAQPacfElxpGItV7V2INKFol
|
27
27
|
-----END RSA PRIVATE KEY-----
|
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.59.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: 2017-
|
13
|
+
date: 2017-09-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|
@@ -328,7 +328,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
328
328
|
version: '0'
|
329
329
|
requirements: []
|
330
330
|
rubyforge_project: excon
|
331
|
-
rubygems_version: 2.6.
|
331
|
+
rubygems_version: 2.6.13
|
332
332
|
signing_key:
|
333
333
|
specification_version: 2
|
334
334
|
summary: speed, persistence, http(s)
|