From: | "Matsuu Takuto (matsuu)" <matsuu@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-ruby/refe/files: refe-0.8.0-ruby19.patch |
Date: | Sat, 29 May 2010 16:21:11 |
Message-Id: | 20100529162109.5C5982CF39@corvid.gentoo.org |
1 | matsuu 10/05/29 16:21:09 |
2 | |
3 | Added: refe-0.8.0-ruby19.patch |
4 | Log: |
5 | Convert to ruby-ng. |
6 | (Portage version: 2.1.8.3/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 dev-ruby/refe/files/refe-0.8.0-ruby19.patch |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/refe/files/refe-0.8.0-ruby19.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/refe/files/refe-0.8.0-ruby19.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: refe-0.8.0-ruby19.patch |
15 | =================================================================== |
16 | diff -Naur refe-0.8.0.orig/lib/refe/mygetopt.rb refe-0.8.0/lib/refe/mygetopt.rb |
17 | --- refe-0.8.0.orig/lib/refe/mygetopt.rb 2003-04-02 07:38:41.000000000 +0900 |
18 | +++ refe-0.8.0/lib/refe/mygetopt.rb 2010-05-30 00:54:04.000000000 +0900 |
19 | @@ -11,7 +11,7 @@ |
20 | alias orignew new |
21 | |
22 | def new( usage, descripter ) |
23 | - parser = orignew( * descripter.map {|line| |
24 | + parser = orignew( * descripter.split(/^/).map {|line| |
25 | line.strip! |
26 | next if line.empty? |
27 | display, shortopt, longopt, takearg, doc = line.split(/\s+/, 5) |