[前][次][番号順一覧][スレッド一覧]

ruby-changes:66080

From: Kazuki <ko1@a...>
Date: Thu, 6 May 2021 16:13:31 +0900 (JST)
Subject: [ruby-changes:66080] 364044e090 (master): [ruby/net-http] Do not require stringio

https://git.ruby-lang.org/ruby.git/commit/?id=364044e090

From 364044e0909692315bd6c2f0e1d968ede9c2beb8 Mon Sep 17 00:00:00 2001
From: Kazuki Yamaguchi <k@r...>
Date: Thu, 29 Apr 2021 21:35:57 +0900
Subject: [ruby/net-http] Do not require stringio

It is not used in net/http library code since commit 15ccd0118c13
(r36473 in ruby svn trunk, 2012).

require's in test suite are also cleaned up.

https://github.com/ruby/net-http/commit/996d18a43f
---
 lib/net/http.rb                    | 1 -
 test/net/http/test_http_request.rb | 1 -
 2 files changed, 2 deletions(-)

diff --git a/lib/net/http.rb b/lib/net/http.rb
index 862f88d..1fcf135 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -393,7 +393,6 @@ module Net   #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L393
     HTTPVersion = '1.1'
     begin
       require 'zlib'
-      require 'stringio'  #for our purposes (unpacking gzip) lump these together
       HAVE_ZLIB=true
     rescue LoadError
       HAVE_ZLIB=false
diff --git a/test/net/http/test_http_request.rb b/test/net/http/test_http_request.rb
index c1ad99a..239b2d1 100644
--- a/test/net/http/test_http_request.rb
+++ b/test/net/http/test_http_request.rb
@@ -1,7 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/test/net/http/test_http_request.rb#L1
 # frozen_string_literal: false
 require 'net/http'
 require 'test/unit'
-require 'stringio'
 
 class HTTPRequestTest < Test::Unit::TestCase
 
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]