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

ruby-changes:66087

From: Nobuyoshi <ko1@a...>
Date: Thu, 6 May 2021 22:04:32 +0900 (JST)
Subject: [ruby-changes:66087] ddc29e2989 (master): net-http no longer requires stringio

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

From ddc29e29890f7f1b29effb84929e6856e45632ee Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 6 May 2021 22:04:14 +0900
Subject: net-http no longer requires stringio

---
 spec/ruby/library/net/http/http/get_spec.rb               | 1 +
 spec/ruby/library/net/http/httpresponse/read_body_spec.rb | 1 +
 spec/ruby/library/net/http/httpresponse/read_new_spec.rb  | 1 +
 spec/ruby/library/net/http/httpresponse/shared/body.rb    | 2 ++
 4 files changed, 5 insertions(+)

diff --git a/spec/ruby/library/net/http/http/get_spec.rb b/spec/ruby/library/net/http/http/get_spec.rb
index 0948006..9f6c45f 100644
--- a/spec/ruby/library/net/http/http/get_spec.rb
+++ b/spec/ruby/library/net/http/http/get_spec.rb
@@ -30,6 +30,7 @@ describe "Net::HTTP.get" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/net/http/http/get_spec.rb#L30
   describe "when reading gzipped contents" do
     def start_threads
       require 'zlib'
+      require 'stringio'
 
       server = nil
       server_thread = Thread.new do
diff --git a/spec/ruby/library/net/http/httpresponse/read_body_spec.rb b/spec/ruby/library/net/http/httpresponse/read_body_spec.rb
index 99d8e5f..ec9b42f 100644
--- a/spec/ruby/library/net/http/httpresponse/read_body_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/read_body_spec.rb
@@ -1,5 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/net/http/httpresponse/read_body_spec.rb#L1
 require_relative '../../../../spec_helper'
 require 'net/http'
+require 'stringio'
 
 describe "Net::HTTPResponse#read_body" do
   before :each do
diff --git a/spec/ruby/library/net/http/httpresponse/read_new_spec.rb b/spec/ruby/library/net/http/httpresponse/read_new_spec.rb
index 73c7ddc..dc2cdc9 100644
--- a/spec/ruby/library/net/http/httpresponse/read_new_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/read_new_spec.rb
@@ -1,5 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/net/http/httpresponse/read_new_spec.rb#L1
 require_relative '../../../../spec_helper'
 require 'net/http'
+require 'stringio'
 
 describe "Net::HTTPResponse.read_new" do
   it "creates a HTTPResponse object based on the response read from the passed socket" do
diff --git a/spec/ruby/library/net/http/httpresponse/shared/body.rb b/spec/ruby/library/net/http/httpresponse/shared/body.rb
index 91d5fe6..618e393 100644
--- a/spec/ruby/library/net/http/httpresponse/shared/body.rb
+++ b/spec/ruby/library/net/http/httpresponse/shared/body.rb
@@ -1,3 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/net/http/httpresponse/shared/body.rb#L1
+require 'stringio'
+
 describe :net_httpresponse_body, shared: true do
   before :each do
     @res = Net::HTTPUnknownResponse.new("1.0", "???", "test response")
-- 
cgit v1.1


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

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