diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-12-13 19:15:21 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-12-13 19:15:21 +0000 |
commit | 39c0252e048e56aa4a8f0429b95ac236b0f7856c (patch) | |
tree | 1ee74610e4f490aac904718929b215ae14619598 /lib/net/smtp.rb | |
parent | d8c75ddad376abf83a4d6dd9d4c8eb1736db497c (diff) | |
download | ruby-39c0252e048e56aa4a8f0429b95ac236b0f7856c.tar.gz |
aamine
* lib/net/pop.rb: new method Net::POP3.APOP
* lib/net/http.rb: set default Content-Type to x-www-form-urlencoded (causes warning)
* lib/net/protocol.rb: remove Net::NetPrivate module.
* lib/net/smtp.rb: ditto.
* lib/net/pop.rb: ditto.
* lib/net/http.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/smtp.rb')
-rw-r--r-- | lib/net/smtp.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index dfb27660fd..b7b0f6bccc 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -1,6 +1,6 @@ =begin -= net/smtp.rb version 1.2.3 += net/smtp.rb Copyright (c) 1999-2001 Yukihiro Matsumoto @@ -13,6 +13,8 @@ Ruby Distribute License or GNU General Public License. NOTE: You can find Japanese version of this document in the doc/net directory of the standard ruby interpreter package. +$Id$ + == What is This Module? This module provides your program the functions to send internet @@ -217,7 +219,7 @@ module Net class SMTP < Protocol protocol_param :port, '25' - protocol_param :command_type, '::Net::NetPrivate::SMTPCommand' + protocol_param :command_type, '::Net::SMTPCommand' def initialize( addr, port = nil ) @@ -294,9 +296,6 @@ module Net - module NetPrivate - - class SMTPCommand < Command def initialize( sock ) @@ -424,6 +423,9 @@ module Net end - end # module Net::NetPrivate + # for backward compatibility + module NetPrivate + SMTPCommand = ::Net::SMTPCommand + end end # module Net |