ruby-changes:44866
From: shugo <ko1@a...>
Date: Wed, 30 Nov 2016 10:22:11 +0900 (JST)
Subject: [ruby-changes:44866] shugo:r56939 (trunk): Supress warnings.
shugo 2016-11-30 10:22:05 +0900 (Wed, 30 Nov 2016) New Revision: 56939 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56939 Log: Supress warnings. Modified files: trunk/test/readline/test_readline.rb Index: test/readline/test_readline.rb =================================================================== --- test/readline/test_readline.rb (revision 56938) +++ test/readline/test_readline.rb (revision 56939) @@ -486,13 +486,13 @@ class TestReadline < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/readline/test_readline.rb#L486 with_temp_stdio do |stdin, stdout| replace_stdio(stdin.path, stdout.path) do - Readline.completion_proc = -> (text) do + Readline.completion_proc = ->(text) do passed_text = text ['completion'] end Readline.completer_quote_characters = '\'"' Readline.completer_word_break_characters = ' ' - Readline.quoting_detection_proc = -> (text, index) do + Readline.quoting_detection_proc = ->(text, index) do index > 0 && text[index-1] == '\\' end @@ -524,13 +524,13 @@ class TestReadline < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/readline/test_readline.rb#L524 with_temp_stdio do |stdin, stdout| replace_stdio(stdin.path, stdout.path) do - Readline.completion_proc = -> (text) do + Readline.completion_proc = ->(text) do passed_text = text ['completion'] end Readline.completer_quote_characters = '\'"' Readline.completer_word_break_characters = ' ' - Readline.quoting_detection_proc = -> (text, index) do + Readline.quoting_detection_proc = ->(text, index) do escaped = index > 0 && text[index-1] == '\\' escaped_char_indexes << index if escaped escaped -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/