diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-02 02:05:35 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-02 02:05:35 +0000 |
commit | f473140e62d438e845c9d1d9b62985f970a9a27a (patch) | |
tree | 6ce020088bef8ad798c1c8e0077549b4ef169369 | |
parent | 28f8fc7f880ff06c296f7399b4e09a1db48e19fa (diff) | |
download | ruby-f473140e62d438e845c9d1d9b62985f970a9a27a.tar.gz |
* lib/net/http.rb: set old class aliases for backward compatibility. [ruby-talk:74863]
* lib/net/protocol.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/net/http.rb | 8 | ||||
-rw-r--r-- | lib/net/protocol.rb | 6 |
3 files changed, 20 insertions, 1 deletions
@@ -1,3 +1,10 @@ +Wed Jul 2 11:10:47 2003 Minero Aoki <aamine@loveruby.net> + + * lib/net/http.rb: set old class aliases for backward + compatibility. [ruby-talk:74863] + + * lib/net/protocol.rb: ditto. + Wed Jul 2 01:32:40 2003 WATANABE Hirofumi <eban@ruby-lang.org> * lib/net/pop.rb (Net::POP3#start): typofix. diff --git a/lib/net/http.rb b/lib/net/http.rb index 65424bd61b..e037f4b360 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1738,9 +1738,15 @@ module Net end - # for backward compatibility + class HTTP + ProxyMod = ProxyDelta + end + module NetPrivate + HTTPRequest = ::Net::HTTPRequest + end + HTTPInformationCode = HTTPInformation HTTPSuccessCode = HTTPSuccess HTTPRedirectionCode = HTTPRedirection diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index b58eec9475..b3ac5e5093 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -449,4 +449,10 @@ module Net end + + # For backward compatibility + module NetPrivate + Socket = ::Net::InternetMessageIO + end + end # module Net |