summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-29 09:48:30 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-29 09:48:30 +0000
commit77635a1b7b1c12fc4740198ff385014e2334eba4 (patch)
tree1d6cfdb5ff8d99b2cc37a64c1764b3705b575aed
parent108d3160c6e0dbeff31a0051ca468dfebf33a8a1 (diff)
downloadruby-77635a1b7b1c12fc4740198ff385014e2334eba4.tar.gz
ruby-77635a1b7b1c12fc4740198ff385014e2334eba4.tar.xz
ruby-77635a1b7b1c12fc4740198ff385014e2334eba4.zip
* lib/net/smtp.rb: unify coding style.
* lib/net/http.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--lib/net/http.rb2
-rw-r--r--lib/net/smtp.rb6
3 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 717322f2a..86eac1c50 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue Jul 29 18:55:22 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/smtp.rb: unify coding style.
+
+ * lib/net/http.rb: ditto.
+
Tue Jul 29 17:27:59 2003 NAKAMURA Usaku <usa@ruby-lang.org>
* ruby.h (LLONG_MIN): fix typo.
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 3681deaf1..fbfa1f6aa 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -1144,7 +1144,7 @@ module Net
def range_length
r = self.content_range
- r and r.end - r.begin
+ r and (r.end - r.begin)
end
def basic_auth( account, password )
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index 3991eb18b..1f36f4ba1 100644
--- a/lib/net/smtp.rb
+++ b/lib/net/smtp.rb
@@ -488,12 +488,12 @@ module Net
private
def send0( from_addr, to_addrs )
- raise IOError, "closed session" unless @socket
+ raise IOError, 'closed session' unless @socket
raise ArgumentError, 'mail destination does not given' if to_addrs.empty?
raise SecurityError, 'tainted from_addr' if from_addr.tainted?
- to_addrs.each{|to|
+ to_addrs.each do |to|
raise SecurityError, 'tainted to_addr' if to.tainted?
- }
+ end
mailfrom from_addr
to_addrs.each do |to|