1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/net
naruse 439e50789b Use Net::HTTPClientException instead of Net::HTTPServerException
`Net::HTTPServerException` has been deprecated since r63590. [Bug #14688]
And `net/http/responses.rb` uses the deprecated constant, so Ruby warns of the deprecation.

Example:

```bash
$ ruby -r net/http -e ''
/home/pocke/.rbenv/versions/trunk/lib/ruby/2.6.0/net/http/responses.rb:22: warning: constant Net::HTTPServerException is deprecated
```

This change suppresses the warning.
From: Masataka Pocke Kuwabara <kuwabara@pocke.me>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-06-06 12:13:16 +00:00
..
http Use Net::HTTPClientException instead of Net::HTTPServerException 2018-06-06 12:13:16 +00:00
ftp.rb net/ftp: fix FrozenError in BufferedSocket 2018-01-06 09:21:35 +00:00
http.rb Introduce write_timeout to Net::HTTP [Feature #13396] 2018-06-06 08:03:47 +00:00
https.rb
imap.rb net/imap: Fix ArgumentError in send_string_data 2018-05-11 12:39:23 +00:00
pop.rb net/pop: make modified strings mutable 2018-01-30 00:22:22 +00:00
protocol.rb fix r63587 2018-06-06 08:39:36 +00:00
smtp.rb