excon 0.91.0 → 0.92.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/excon/socket.rb +11 -12
- data/lib/excon/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e94b994dd5e152996acf5bc54698e735225399aee751f8c5dc4a28db3751f898
|
4
|
+
data.tar.gz: e29454b6a62eaf02f913f068462652dd59634c6f913c9a9b4035e85dfc7b3c43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ec4de187348bff1c5dbd90b659da2fe285045a59f06d37fbdcf04817cf0d59c2ff448bed29aa9fea3f33cfa5d0ce728ee881a7114a6732926351a6e7e4df845
|
7
|
+
data.tar.gz: c405469df8b0ac04dc189d94cad6a119516fddc8323fb42b4455e463f841502a80833491ecedc7733ea9867068b4c43106ecb32c2274525b93890b90d85ca323
|
data/lib/excon/socket.rb
CHANGED
@@ -60,19 +60,18 @@ module Excon
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def readline
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
63
|
+
if @nonblock && RUBY_VERSION.to_f > 1.8_7
|
64
|
+
buffer = String.new
|
65
|
+
buffer << (read_nonblock(1) || raise(EOFError)) while buffer[-1] != "\n"
|
66
|
+
buffer
|
67
|
+
else # nonblock/legacy
|
68
|
+
begin
|
69
|
+
Timeout.timeout(@data[:read_timeout]) do
|
70
|
+
@socket.readline
|
71
|
+
end
|
72
|
+
rescue Timeout::Error
|
73
|
+
raise Excon::Errors::Timeout.new('read timeout reached')
|
73
74
|
end
|
74
|
-
rescue Timeout::Error
|
75
|
-
raise Excon::Errors::Timeout.new('read timeout reached')
|
76
75
|
end
|
77
76
|
end
|
78
77
|
|
data/lib/excon/version.rb
CHANGED
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.92.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: 2022-
|
13
|
+
date: 2022-03-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|