diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-08-16 19:26:07 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-08-16 19:26:07 +0000 |
commit | 439dc536f182398f49dbf6995f88bec2db82eb7e (patch) | |
tree | 7d6554504218674f08a07f47a322496c0a0d09a7 /lib/net/protocol.rb | |
parent | 29c892f131f77a4c3b230c118962d00a0e5a443f (diff) | |
download | ruby-439dc536f182398f49dbf6995f88bec2db82eb7e.tar.gz ruby-439dc536f182398f49dbf6995f88bec2db82eb7e.tar.xz ruby-439dc536f182398f49dbf6995f88bec2db82eb7e.zip |
aamine
* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.27.
* lib/net/protocol.rb: writing methods returns written byte size.
* lib/net/smtp.rb: send_mail accepts many destinations.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/protocol.rb')
-rw-r--r-- | lib/net/protocol.rb | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index b351c268b..16d6cac74 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -1,11 +1,12 @@ =begin -= net/protocol.rb version 1.1.27 += net/protocol.rb version 1.1.28 written by Minero Aoki <aamine@dp.u-netsurf.ne.jp> -This library is distributed under the terms of the Ruby license. -You can freely distribute/modify this library. +This program is free software. +You can distribute/modify this program under +the terms of the Ruby Distribute License. == Net::Protocol @@ -64,7 +65,7 @@ module Net class Protocol - Version = '1.1.27' + Version = '1.1.28' class << self @@ -75,7 +76,7 @@ module Net if iterator? then instance.start( *args ) { yield instance } else - instance.start *args + instance.start( *args ) instance end end @@ -164,7 +165,7 @@ module Net begin connect - do_start *args + do_start( *args ) @active = true yield self if iterator? ensure @@ -639,10 +640,13 @@ module Net def wpend_in( src ) line = nil + pre = @writtensize each_crlf_line( src ) do |line| do_write '.' if line[0] == ?. do_write line end + + @writtensize - pre end def use_each_crlf_line |