excon 0.75.0 → 0.80.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/data/cacert.pem +252 -504
- data/excon.gemspec +2 -1
- data/lib/excon.rb +5 -5
- data/lib/excon/connection.rb +13 -6
- data/lib/excon/constants.rb +1 -0
- data/lib/excon/headers.rb +4 -3
- data/lib/excon/instrumentors/logging_instrumentor.rb +1 -1
- data/lib/excon/instrumentors/standard_instrumentor.rb +1 -1
- data/lib/excon/middlewares/capture_cookies.rb +1 -1
- data/lib/excon/middlewares/decompress.rb +2 -2
- data/lib/excon/middlewares/expects.rb +1 -1
- data/lib/excon/middlewares/mock.rb +2 -2
- data/lib/excon/middlewares/redirect_follower.rb +1 -1
- data/lib/excon/response.rb +11 -8
- data/lib/excon/socket.rb +15 -24
- data/lib/excon/ssl_socket.rb +13 -12
- data/lib/excon/test/plugin/server/exec.rb +2 -2
- data/lib/excon/test/server.rb +1 -1
- data/lib/excon/unix_socket.rb +1 -0
- data/lib/excon/utils.rb +2 -2
- data/lib/excon/version.rb +1 -1
- metadata +20 -6
@@ -5,12 +5,12 @@ module Excon
|
|
5
5
|
module Exec
|
6
6
|
def start(app_str = app)
|
7
7
|
line = ''
|
8
|
-
open_process(
|
8
|
+
open_process(app_str)
|
9
9
|
until line =~ /\Aready\Z/
|
10
10
|
line = error.gets
|
11
11
|
fatal_time = elapsed_time > timeout
|
12
12
|
if fatal_time
|
13
|
-
msg = "executable #{
|
13
|
+
msg = "executable #{app_str} has taken too long to start"
|
14
14
|
raise msg
|
15
15
|
end
|
16
16
|
end
|
data/lib/excon/test/server.rb
CHANGED
data/lib/excon/unix_socket.rb
CHANGED
data/lib/excon/utils.rb
CHANGED
@@ -50,7 +50,7 @@ module Excon
|
|
50
50
|
if datum.has_key?(:password)
|
51
51
|
datum[:password] = REDACTED
|
52
52
|
end
|
53
|
-
if datum.has_key?(:proxy) && datum[:proxy]
|
53
|
+
if datum.has_key?(:proxy) && datum[:proxy]&.has_key?(:password)
|
54
54
|
datum[:proxy] = datum[:proxy].dup
|
55
55
|
datum[:proxy][:password] = REDACTED
|
56
56
|
end
|
@@ -96,7 +96,7 @@ module Excon
|
|
96
96
|
return [] if str.nil?
|
97
97
|
str = str.dup.strip
|
98
98
|
str = binary_encode(str)
|
99
|
-
str.scan(%r'\G((?:"(?:\\.|[^"])+?"|[^",]
|
99
|
+
str.scan(%r'\G((?:"(?:\\.|[^"])+?"|[^",])+)
|
100
100
|
(?:,\s*|\Z)'xn).flatten
|
101
101
|
end
|
102
102
|
|
data/lib/excon/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: excon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.80.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dpiddy (Dan Peterson)
|
8
8
|
- geemus (Wesley Beary)
|
9
9
|
- nextmat (Matt Sanders)
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-04-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|
@@ -180,6 +180,20 @@ dependencies:
|
|
180
180
|
- - ">="
|
181
181
|
- !ruby/object:Gem::Version
|
182
182
|
version: '0'
|
183
|
+
- !ruby/object:Gem::Dependency
|
184
|
+
name: webrick
|
185
|
+
requirement: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - ">="
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
type: :development
|
191
|
+
prerelease: false
|
192
|
+
version_requirements: !ruby/object:Gem::Requirement
|
193
|
+
requirements:
|
194
|
+
- - ">="
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: '0'
|
183
197
|
description: EXtended http(s) CONnections
|
184
198
|
email: geemus@gmail.com
|
185
199
|
executables: []
|
@@ -235,7 +249,7 @@ metadata:
|
|
235
249
|
documentation_uri: https://github.com/excon/excon/blob/master/README.md
|
236
250
|
source_code_uri: https://github.com/excon/excon
|
237
251
|
wiki_uri: https://github.com/excon/excon/wiki
|
238
|
-
post_install_message:
|
252
|
+
post_install_message:
|
239
253
|
rdoc_options:
|
240
254
|
- "--charset=UTF-8"
|
241
255
|
require_paths:
|
@@ -251,8 +265,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
251
265
|
- !ruby/object:Gem::Version
|
252
266
|
version: '0'
|
253
267
|
requirements: []
|
254
|
-
rubygems_version: 3.
|
255
|
-
signing_key:
|
268
|
+
rubygems_version: 3.1.2
|
269
|
+
signing_key:
|
256
270
|
specification_version: 4
|
257
271
|
summary: speed, persistence, http(s)
|
258
272
|
test_files: []
|