[前][次][番号順一覧][スレッド一覧]

ruby-changes:37264

From: usa <ko1@a...>
Date: Tue, 20 Jan 2015 12:30:52 +0900 (JST)
Subject: [ruby-changes:37264] usa:r49345 (trunk): * tool/redmine-backporter.rb (readline): fallback to normal gets on

usa	2015-01-20 12:30:30 +0900 (Tue, 20 Jan 2015)

  New Revision: 49345

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49345

  Log:
    * tool/redmine-backporter.rb (readline): fallback to normal gets on
      Windows because IO.console.getch is not always do as expected.

  Modified files:
    trunk/ChangeLog
    trunk/tool/redmine-backporter.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 49344)
+++ ChangeLog	(revision 49345)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Jan 20 12:28:37 2015  NAKAMURA Usaku  <usa@r...>
+
+	* tool/redmine-backporter.rb (readline): fallback to normal gets on
+	  Windows because IO.console.getch is not always do as expected.
+
 Tue Jan 20 11:31:07 2015  NAKAMURA Usaku  <usa@r...>
 
 	* tool/redmine-backporter.rb: update usage.
Index: tool/redmine-backporter.rb
===================================================================
--- tool/redmine-backporter.rb	(revision 49344)
+++ tool/redmine-backporter.rb	(revision 49345)
@@ -201,6 +201,7 @@ def readline(prompt = '') https://github.com/ruby/ruby/blob/trunk/tool/redmine-backporter.rb#L201
   cls = "\r" + (" " * lx) + "\r" + prompt
   console.print prompt
   console.flush
+  return gets.chomp if /mswin|mingw/ =~ RUBY_PLATFORM
   line = ''
   while 1
     case c = console.getch

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]