http 0.8.10 → 0.8.11

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: fca22402af79f980dc7e1b701e4d422daaf7fea8
4
- data.tar.gz: 329410d55bbbedbb774496ed0c8f8c177c9d2f12
3
+ metadata.gz: ccf72f7e0ec682293d3f7b779753ac63ec02df76
4
+ data.tar.gz: bb91b282c3603b0e5d3f5f068149ea331483aab0
5
5
  SHA512:
6
- metadata.gz: 769d422631b9551000a9e647736eeafdbf511f3bd5ed40e9efac847e5be69a72f77ef7cc87b6c83811599437f7ae6a1b39349730e6096a314abe433b146b744d
7
- data.tar.gz: faefd914628653751aa3168442a0ade2032b809add4a2e9594c5494bb05160a5edf69f5b559668f5ea4077e0f6a74b3d33ca6669eab1c15e6069279773dee271
6
+ metadata.gz: 62b0ed844e8152f5b6fa3d46897993a22a3fdff4661e80761a7482efaae4ad7a8d7d1739e6b823fe1c20c2de1dfe7579399860ea616b9ad463382fa89f54d901
7
+ data.tar.gz: 0c6bb166ab12fce3ffa7a871e9c26e19701609db68409617af217f59d4d3b13e61e4bace493bd21a2486608e08911cdbfc87a4d23bd6fb083ef1a5502a88e733
data/CHANGES.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.8.11 (2015-05-22)
2
+
3
+ * SNI support for HTTPS connections. See #229. (@tarcieri)
4
+ * Use "http.rb" in the User-Agent string. See #227. (@tarcieri)
5
+
6
+
1
7
  ## 0.8.10 (2015-05-14)
2
8
 
3
9
  * Fix cookie headers generation. (@ixti)
@@ -22,7 +22,7 @@ module HTTP
22
22
  class UnsupportedSchemeError < RequestError; end
23
23
 
24
24
  # Default User-Agent header value
25
- USER_AGENT = "RubyHTTPGem/#{HTTP::VERSION}".freeze
25
+ USER_AGENT = "http.rb/#{HTTP::VERSION}".freeze
26
26
 
27
27
  # RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1
28
28
  METHODS = [:options, :get, :head, :post, :put, :delete, :trace, :connect]
@@ -26,6 +26,7 @@ module HTTP
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.hostname = host if @socket.respond_to? :hostname=
29
30
  @socket.sync_close = true if @socket.respond_to? :sync_close=
30
31
 
31
32
  connect_ssl
@@ -1,3 +1,3 @@
1
1
  module HTTP
2
- VERSION = "0.8.10"
2
+ VERSION = "0.8.11"
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.10
4
+ version: 0.8.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-05-14 00:00:00.000000000 Z
14
+ date: 2015-05-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: http_parser.rb
@@ -195,9 +195,45 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  version: '0'
196
196
  requirements: []
197
197
  rubyforge_project:
198
- rubygems_version: 2.2.2
198
+ rubygems_version: 2.4.6
199
199
  signing_key:
200
200
  specification_version: 4
201
201
  summary: HTTP should be easy
202
- test_files: []
202
+ test_files:
203
+ - spec/lib/http/cache/headers_spec.rb
204
+ - spec/lib/http/cache_spec.rb
205
+ - spec/lib/http/client_spec.rb
206
+ - spec/lib/http/content_type_spec.rb
207
+ - spec/lib/http/headers/mixin_spec.rb
208
+ - spec/lib/http/headers_spec.rb
209
+ - spec/lib/http/options/body_spec.rb
210
+ - spec/lib/http/options/form_spec.rb
211
+ - spec/lib/http/options/headers_spec.rb
212
+ - spec/lib/http/options/json_spec.rb
213
+ - spec/lib/http/options/merge_spec.rb
214
+ - spec/lib/http/options/new_spec.rb
215
+ - spec/lib/http/options/proxy_spec.rb
216
+ - spec/lib/http/options_spec.rb
217
+ - spec/lib/http/redirector_spec.rb
218
+ - spec/lib/http/request/caching_spec.rb
219
+ - spec/lib/http/request/writer_spec.rb
220
+ - spec/lib/http/request_spec.rb
221
+ - spec/lib/http/response/body_spec.rb
222
+ - spec/lib/http/response/caching_spec.rb
223
+ - spec/lib/http/response/io_body_spec.rb
224
+ - spec/lib/http/response/status_spec.rb
225
+ - spec/lib/http/response/string_body_spec.rb
226
+ - spec/lib/http/response_spec.rb
227
+ - spec/lib/http_spec.rb
228
+ - spec/spec_helper.rb
229
+ - spec/support/black_hole.rb
230
+ - spec/support/capture_warning.rb
231
+ - spec/support/connection_reuse_shared.rb
232
+ - spec/support/dummy_server.rb
233
+ - spec/support/dummy_server/servlet.rb
234
+ - spec/support/http_handling_shared.rb
235
+ - spec/support/proxy_server.rb
236
+ - spec/support/servers/config.rb
237
+ - spec/support/servers/runner.rb
238
+ - spec/support/ssl_helper.rb
203
239
  has_rdoc: