http 0.8.1 → 0.8.2

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: a1b547d3276525790693e859ac473904b061f64b
4
- data.tar.gz: e00cd095b96cd623c7e57a76c0203cf0c6f36854
3
+ metadata.gz: 6175e5c7921354af3518483759cfa8f17066be03
4
+ data.tar.gz: 6b58746ee974aaa0c3b05504ef315d20da2ed742
5
5
  SHA512:
6
- metadata.gz: 01c71cc5f4123f61b30ba0152def5c55e694846813d0a007f0db30c42e83671a078459e048e84eeef80df5c5d3e930bd8afe6d20dd3822227c145fe03efa004e
7
- data.tar.gz: 2ba200f4d59a4ff5b1f6ad1ea5412b100ed8599a926b4657c970e046439679a0506341372c7ba92eb6a3d18b0f38c9c90bef99e2de7bf071fdd749b6a3a6b086
6
+ metadata.gz: 4a2ee6cd6011bc1cf78c0cdcd4b6a6361485fd2236f384f7ad5db2de9925deee7e4a817d4e2bca57140fb45d22fd7eb5e3fb0cfa0022e89345eaaa62408ced56
7
+ data.tar.gz: 1f1c28bc91ec48cbd95df209ee6e205c0a08fbc245e409644d18bac9f7630fcad7fbbfefdc364778aaf437e8a3c081758de312019e003db6c2655f600efdd62d
data/CHANGES.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.8.2 (2015-04-06)
2
+
3
+ * Fix Celluloid::IO compatibility. See #203. (@ixti)
4
+ * Cleanup obsolete code. (@zanker)
5
+
6
+
1
7
  ## 0.8.1 (2015-04-02)
2
8
 
3
9
  * Add missing `require "resolv"`. See #202. (@ixti)
@@ -20,27 +20,29 @@ module HTTP
20
20
 
21
21
  # Starts a SSL connection on a socket
22
22
  def connect_ssl
23
- socket.connect
23
+ @socket.connect
24
24
  end
25
25
 
26
26
  # Configures the SSL connection and starts the connection
27
27
  def start_tls(host, ssl_socket_class, ssl_context)
28
28
  @socket = ssl_socket_class.new(socket, ssl_context)
29
- socket.sync_close = true
29
+ @socket.sync_close = true if @socket.respond_to? :sync_close=
30
30
 
31
31
  connect_ssl
32
32
 
33
- socket.post_connection_check(host) if ssl_context.verify_mode == OpenSSL::SSL::VERIFY_PEER
33
+ return unless ssl_context.verify_mode == OpenSSL::SSL::VERIFY_PEER
34
+
35
+ @socket.post_connection_check(host)
34
36
  end
35
37
 
36
38
  # Read from the socket
37
39
  def readpartial(size)
38
- socket.readpartial(size)
40
+ @socket.readpartial(size)
39
41
  end
40
42
 
41
43
  # Write to the socket
42
44
  def write(data)
43
- socket << data
45
+ @socket << data
44
46
  end
45
47
 
46
48
  alias_method :<<, :write
@@ -1,10 +1,6 @@
1
- require "resolv"
2
-
3
1
  module HTTP
4
2
  module Timeout
5
3
  class PerOperation < Null
6
- HostResolver = ::Resolv::Hosts.new.tap(&:lazy_initialize)
7
-
8
4
  CONNECT_TIMEOUT = 0.25
9
5
  WRITE_TIMEOUT = 0.25
10
6
  READ_TIMEOUT = 0.25
data/lib/http/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module HTTP
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-04-02 00:00:00.000000000 Z
13
+ date: 2015-04-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: http_parser.rb
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  requirements: []
182
182
  rubyforge_project:
183
- rubygems_version: 2.4.5
183
+ rubygems_version: 2.2.2
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: HTTP should be easy