* 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
This commit is contained in:
aamine 2001-12-13 19:15:21 +00:00
parent d8c75ddad3
commit 39c0252e04
8 changed files with 156 additions and 133 deletions

View file

@ -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