[#4754] Now,I am starting ruby. — mamoru@... (Mamoru Matushita)

先日、初めて投稿したつもりだったのですが間違えて

14 messages 1997/10/02

[#4891] mixin - singleton method inheritance, const etc... — shugo@... (Shugo Maeda)

前田です。

13 messages 1997/10/10

[#5000] ruby 1.0-971015 released — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

14 messages 1997/10/15

[#5056] RubyでOODB — hisanori@...

松尾です。

20 messages 1997/10/20
[#5057] Re: RubyでOODB — matz@... (Yukihiro Matsumoto) 1997/10/20

まつもと ゆきひろです

[#5065] Re: RubyでOODB — hisanori@... 1997/10/20

松尾です。

[#5066] Re: RubyでOODB — matz@... (Yukihiro Matsumoto) 1997/10/20

まつもと ゆきひろです

[ruby-list:5115] Re: mime.rb ver 0.5 (Re: mail address class)

From: Shugo Maeda <shugo@...>
Date: 1997-10-23 05:38:49 UTC
List: ruby-list #5115
前田です。


On Thu, 23 Oct 97 14:12:14 +0900

Shugo Maeda <<shugo@po.aianet.ne.jp> wrote:

> 書き直したmime.rbをこのメールに添付します。


すみません、バグってました。

パッチです。


---

前田 修吾

Attachments (1)

mime.rb.diff (506 Bytes, text/x-diff)
--- mime.rb.orig	Thu Oct 23 14:22:30 1997
+++ mime.rb	Thu Oct 23 14:24:33 1997
@@ -109,7 +109,12 @@
     end
     params = {}
     split_tokens(tokens, ";").each do |ary|
-      if ary.length == 2 and ary[0] =~ /=$/
+      if ary.length == 1 and ary[0] =~ /=/
+	tmp = ary[0].split("=")
+	attribute = tmp.shift.downcase
+	value = tmp.join
+	params[attribute] = value
+      elsif ary.length == 2 and ary[0] =~ /=$/
 	attribute = ary[0].chop.downcase
 	value = ary[1]
 	if value[0] == ?" and value[-1] == ?"

In This Thread