httpray 1.1.2 → 1.1.3
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/httpray.rb +3 -1
- data/lib/httpray/version.rb +1 -1
- data/test/httpray_test.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f464389c567500901615cae142f6f3b40e95ab93
|
4
|
+
data.tar.gz: fac66733f09e91e05f1b018171d1524a39c293c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caf4b2ea7f975a1bddd7ff92ed2e497b07609f95716deb340d331de6453d2e87960170c9e3492578a3399e7427f83fc2b2240efb2422e433d7848d15c88b4cf8
|
7
|
+
data.tar.gz: c0dc46cb5ae5662eef18308a951f374198c9a1acd9c7979e451e1194d76e9a5e41cd3861a0796316a865ba8bc2b62880c15b257b78345d55c9818b799e9aa228
|
data/Gemfile.lock
CHANGED
data/lib/httpray.rb
CHANGED
@@ -86,7 +86,9 @@ module HTTPray
|
|
86
86
|
begin
|
87
87
|
raise Timeout if Time.now > expire_time
|
88
88
|
socket.connect_nonblock(socket_address)
|
89
|
-
rescue
|
89
|
+
rescue Errno::EISCONN
|
90
|
+
nil #continue
|
91
|
+
rescue IO::WaitReadable, IO::WaitWritable, Errno::EADDRNOTAVAIL
|
90
92
|
select_timeout = expire_time - Time.now
|
91
93
|
select_timeout = 0 if select_timeout < 0
|
92
94
|
IO.select([socket], [socket], [socket], select_timeout)
|
data/lib/httpray/version.rb
CHANGED
data/test/httpray_test.rb
CHANGED
@@ -3,7 +3,7 @@ require 'lib/httpray'
|
|
3
3
|
require 'benchmark'
|
4
4
|
require 'net/http'
|
5
5
|
|
6
|
-
class HTTPrayTest < MiniTest::
|
6
|
+
class HTTPrayTest < MiniTest::Unit::TestCase
|
7
7
|
def test_request_timesout_with_short_timeout
|
8
8
|
assert_raises HTTPray::Timeout do
|
9
9
|
HTTPray.request("GET", "httppppp://httpbin.org/status/200", {}, nil, 0)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httpray
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- G Gordon Worley III
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Fire-and-forget HTTP requests for Ruby
|
14
14
|
email:
|