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

ruby-changes:69583

From: Nobuyoshi <ko1@a...>
Date: Thu, 4 Nov 2021 20:53:16 +0900 (JST)
Subject: [ruby-changes:69583] b49dbe025f (master): [ruby/net-http] Fix the typo in a constant name

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

From b49dbe025f27a5024c579d3b690833ae8943d71d Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 3 Nov 2021 19:17:35 +0900
Subject: [ruby/net-http] Fix the typo in a constant name

https://github.com/ruby/net-http/commit/dada6007bf
---
 lib/net/http/backward.rb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/net/http/backward.rb b/lib/net/http/backward.rb
index 9e24eae32c4..315ed58e622 100644
--- a/lib/net/http/backward.rb
+++ b/lib/net/http/backward.rb
@@ -22,5 +22,9 @@ Net::HTTPRetriableCode    = Net::HTTPRedirection https://github.com/ruby/ruby/blob/trunk/lib/net/http/backward.rb#L22
 Net::HTTPClientErrorCode  = Net::HTTPClientError
 Net::HTTPFatalErrorCode   = Net::HTTPClientError
 Net::HTTPServerErrorCode  = Net::HTTPServerError
-Net::HTTPResponceReceiver = Net::HTTPResponse
+Net::HTTPResponseReceiver = Net::HTTPResponse
 
+module Net
+  HTTPResponceReceiver = HTTPResponse # Typo since 2001
+  deprecate_constant :HTTPResponceReceiver
+end
-- 
cgit v1.2.1


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

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