mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/protocol.rb: reintroduce Protocol.protocol_param.
* lib/net/http.rb: ditto. * lib/net/pop.rb: ditto. * lib/net/smtp.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e3056c8803
commit
e221d6826a
5 changed files with 24 additions and 3 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
Sat May 3 00:22:00 2003 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/net/protocol.rb: reintroduce Protocol.protocol_param.
|
||||
|
||||
* lib/net/http.rb: ditto.
|
||||
|
||||
* lib/net/pop.rb: ditto.
|
||||
|
||||
* lib/net/smtp.rb: ditto.
|
||||
|
||||
Fri May 2 23:29:53 2003 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/net/protocol.rb: remove Protocol class.
|
||||
|
|
|
@ -562,7 +562,7 @@ module Net
|
|||
class HTTPHeaderSyntaxError < StandardError; end
|
||||
|
||||
|
||||
class HTTP
|
||||
class HTTP < Protocol
|
||||
|
||||
Revision = %q$Revision$.split[1]
|
||||
|
||||
|
|
|
@ -401,7 +401,7 @@ module Net
|
|||
class POPBadResponse < StandardError; end
|
||||
|
||||
|
||||
class POP3
|
||||
class POP3 < Protocol
|
||||
|
||||
Revision = %q$Revision$.split[1]
|
||||
|
||||
|
|
|
@ -24,6 +24,17 @@ require 'timeout'
|
|||
|
||||
module Net
|
||||
|
||||
class Protocol
|
||||
private
|
||||
def Protocol.protocol_param( name, val )
|
||||
module_eval(<<-End, __FILE__, __LINE__ + 1)
|
||||
def #{name}
|
||||
#{val}
|
||||
end
|
||||
End
|
||||
end
|
||||
end
|
||||
|
||||
class ProtocolError < StandardError; end
|
||||
class ProtoSyntaxError < ProtocolError; end
|
||||
class ProtoFatalError < ProtocolError; end
|
||||
|
|
|
@ -233,7 +233,7 @@ require 'digest/md5'
|
|||
|
||||
module Net
|
||||
|
||||
class SMTP
|
||||
class SMTP < Protocol
|
||||
|
||||
Revision = %q$Revision$.split[1]
|
||||
|
||||
|
|
Loading…
Reference in a new issue