http-request 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,7 @@ module HttpRequest
22
22
  http.read_timeout = timeout
23
23
  http.start
24
24
 
25
- if Socket.const_defined?(:TCP_NODELAY)
25
+ if socket && socket.respond_to?(:io) && Socket.const_defined?(:TCP_NODELAY)
26
26
  socket.io.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, true)
27
27
  end
28
28
  end
@@ -1,3 +1,3 @@
1
1
  module HttpRequest
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http-request
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-30 00:00:00.000000000 Z
12
+ date: 2012-08-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: addressable