summaryrefslogtreecommitdiff
path: root/lib/net/protocol.rb
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-17 18:39:43 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-17 18:39:43 +0000
commit3e51a5b1b5a953e4705adc924355ffdc83b25472 (patch)
treebe35b23555d126828b03f9969c7dca0861fa0017 /lib/net/protocol.rb
parent35e731649da88fda916509eb1cb0a745d772f21c (diff)
o protocol.rb: Protocol#start yields self
o smtp.rb: use Socket.gethostname to get localhost name p pop.rb: use MD5#hexdigest git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/protocol.rb')
-rw-r--r--lib/net/protocol.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb
index 1d909bb..399b2bb 100644
--- a/lib/net/protocol.rb
+++ b/lib/net/protocol.rb
@@ -15,8 +15,6 @@ require 'socket'
module Net
- Version = '1.1.17'
-
=begin
== Net::Protocol
@@ -68,7 +66,7 @@ Object
class Protocol
- Version = ::Net::Version
+ Version = '1.1.18'
class << self
@@ -165,7 +163,7 @@ Object
connect
do_start *args
@active = true
- yield if iterator?
+ yield self if iterator?
ensure
finish if iterator?
end
@@ -591,7 +589,7 @@ Object
do_write_do D_CRLF
wsize = do_write_fin
- @pipe << "wrote #{wsize} bytes text" if pipeon
+ @pipe << "wrote #{wsize} bytes text\n" if pipeon
wsize
end