summaryrefslogtreecommitdiff
path: root/tool/redmine-backporter.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-20 03:30:30 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-20 03:30:30 +0000
commit64318f2a71ffd037aef70b3363654c6be8113263 (patch)
tree464e6b72882e5673f243b13a70467a6fa4d38670 /tool/redmine-backporter.rb
parent506cb40667fa5d5786dad18a21df824d9b2f66c6 (diff)
* tool/redmine-backporter.rb (readline): fallback to normal gets on
Windows because IO.console.getch is not always do as expected. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/redmine-backporter.rb')
-rwxr-xr-xtool/redmine-backporter.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb
index bda4abc..c2dc742 100755
--- a/tool/redmine-backporter.rb
+++ b/tool/redmine-backporter.rb
@@ -201,6 +201,7 @@ def readline(prompt = '')
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