ruby-changes:20870
From: yugui <ko1@a...>
Date: Thu, 11 Aug 2011 09:39:16 +0900 (JST)
Subject: [ruby-changes:20870] yugui:r32919 (ruby_1_9_2): merges r32295 from trunk into ruby_1_9_2.
yugui 2011-08-11 09:38:36 +0900 (Thu, 11 Aug 2011) New Revision: 32919 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32919 Log: merges r32295 from trunk into ruby_1_9_2. -- * lib/irb/completion.rb: complate correctry string literal. fix [Bug #1145]. Modified files: branches/ruby_1_9_2/ChangeLog branches/ruby_1_9_2/lib/irb/completion.rb branches/ruby_1_9_2/version.h Index: ruby_1_9_2/ChangeLog =================================================================== --- ruby_1_9_2/ChangeLog (revision 32918) +++ ruby_1_9_2/ChangeLog (revision 32919) @@ -1,3 +1,8 @@ +Thu Jun 30 00:03:20 2011 Keiju Ishitsuka <keiju@i...> + + * lib/irb/completion.rb: complate correctry string literal. fix + [Bug #1145]. + Wed Jun 29 23:17:57 2011 WATANABE Hirofumi <eban@r...> * ext/openssl/ossl.h (OPENSSL_SYS_WIN32): support for mingw(msys). Index: ruby_1_9_2/lib/irb/completion.rb =================================================================== --- ruby_1_9_2/lib/irb/completion.rb (revision 32918) +++ ruby_1_9_2/lib/irb/completion.rb (revision 32919) @@ -39,6 +39,14 @@ # puts "input: #{input}" case input + when /^((["'`]).*\2)\.([^.]*)$/ + # String + receiver = $1 + message = $3 + + candidates = String.instance_methods.collect{|m| m.to_s} + select_message(receiver, message, candidates) + when /^(\/[^\/]*\/)\.([^.]*)$/ # Regexp receiver = $1 @@ -201,7 +209,8 @@ end if Readline.respond_to?("basic_word_break_characters=") - Readline.basic_word_break_characters= " \t\n\"\\'`><=;|&{(" +# Readline.basic_word_break_characters= " \t\n\"\\'`><=;|&{(" + Readline.basic_word_break_characters= " \t\n`><=;|&{(" end Readline.completion_append_character = nil Readline.completion_proc = IRB::InputCompletor::CompletionProc Index: ruby_1_9_2/version.h =================================================================== --- ruby_1_9_2/version.h (revision 32918) +++ ruby_1_9_2/version.h (revision 32919) @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.2" -#define RUBY_PATCHLEVEL 304 +#define RUBY_PATCHLEVEL 305 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/