httpray 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85f7ee216d286ddb7923f073086321aaad64ed36
4
- data.tar.gz: c8a0b734b3565a1bf8a9391ce0bee417c1e015c5
3
+ metadata.gz: f464389c567500901615cae142f6f3b40e95ab93
4
+ data.tar.gz: fac66733f09e91e05f1b018171d1524a39c293c6
5
5
  SHA512:
6
- metadata.gz: d1f1f90d6d72dceeba9ed80b7ba01247e0043ee5933737d0f9cc17aa9f24f15393ebdd882be7c13d2afee162256eb319b0f4f562e16486b9c659ff524c276082
7
- data.tar.gz: b84071e158ce7b043b56b77573159cd954a43983f9dfc94b56385b7acd9780303e8bca198e4c13ff281dca047dd7a6af7f1d69f834755b089dc9d4675d2b2ef7
6
+ metadata.gz: caf4b2ea7f975a1bddd7ff92ed2e497b07609f95716deb340d331de6453d2e87960170c9e3492578a3399e7427f83fc2b2240efb2422e433d7848d15c88b4cf8
7
+ data.tar.gz: c0dc46cb5ae5662eef18308a951f374198c9a1acd9c7979e451e1194d76e9a5e41cd3861a0796316a865ba8bc2b62880c15b257b78345d55c9818b799e9aa228
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- httpray (1.1.1)
4
+ httpray (1.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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 IO::WaitReadable, IO::WaitWritable
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)
@@ -1,3 +1,3 @@
1
1
  module HTTPray
2
- VERSION = "1.1.2".freeze
2
+ VERSION = "1.1.3".freeze
3
3
  end
@@ -3,7 +3,7 @@ require 'lib/httpray'
3
3
  require 'benchmark'
4
4
  require 'net/http'
5
5
 
6
- class HTTPrayTest < MiniTest::Test
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.2
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: 2017-07-18 00:00:00.000000000 Z
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: