ruby-changes:15431
From: keiju <ko1@a...>
Date: Tue, 13 Apr 2010 14:01:27 +0900 (JST)
Subject: [ruby-changes:15431] Ruby:r27327 (trunk): * lib/irb/completion.rb (CompletionProc): fix
keiju 2010-04-13 14:01:10 +0900 (Tue, 13 Apr 2010) New Revision: 27327 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27327 Log: * lib/irb/completion.rb (CompletionProc): fix [ruby-dev:40953] [Bug #3126]. Thanks Kazuhiro NISHIYAMA. Modified files: trunk/ChangeLog trunk/lib/irb/completion.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 27326) +++ ChangeLog (revision 27327) @@ -1,3 +1,8 @@ +Tue Apr 13 13:57:36 2010 Keiju Ishitsuka <keiju@r...> + + * lib/irb/completion.rb (CompletionProc): fix [ruby-dev:40953] + [Bug #3126]. Thanks Kazuhiro NISHIYAMA. + Tue Apr 13 09:32:12 2010 NARUSE, Yui <naruse@r...> * transcode.c (transcode_loop): insert output the value when Index: lib/irb/completion.rb =================================================================== --- lib/irb/completion.rb (revision 27326) +++ lib/irb/completion.rb (revision 27327) @@ -81,10 +81,10 @@ candidates.grep(/^#{receiver}/).collect{|e| "::" + e} # when /^(((::)?[A-Z][^:.\(]*)+)::?([^:.]*)$/ - when /^([A-Z].*)::([^:.]+)*$/ + when /^([A-Z].*)::([^:.]*)$/ # Constant or class methods receiver = $1 - message = Regexp.quote($4) + message = Regexp.quote($2) begin candidates = eval("#{receiver}.constants.collect{|m| m.to_s}", bind) candidates |= eval("#{receiver}.methods.collect{|m| m.to_s}", bind) @@ -134,7 +134,7 @@ when /^([^."].*)\.([^.]*)$/ # variable receiver = $1 - message = Regexp.quote($3) + message = Regexp.quote($2) gv = eval("global_variables", bind).collect{|m| m.to_s} lv = eval("local_variables", bind).collect{|m| m.to_s} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/