ruby-changes:37267
From: usa <ko1@a...>
Date: Tue, 20 Jan 2015 12:59:47 +0900 (JST)
Subject: [ruby-changes:37267] usa:r49348 (trunk): * tool/redmine-backporter.rb: now can change the page of `ls`.
usa 2015-01-20 12:59:03 +0900 (Tue, 20 Jan 2015) New Revision: 49348 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49348 Log: * tool/redmine-backporter.rb: now can change the page of `ls`. Modified files: trunk/ChangeLog trunk/tool/redmine-backporter.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 49347) +++ ChangeLog (revision 49348) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Jan 20 12:58:33 2015 NAKAMURA Usaku <usa@r...> + + * tool/redmine-backporter.rb: now can change the page of `ls`. + Tue Jan 20 12:28:37 2015 NAKAMURA Usaku <usa@r...> * tool/redmine-backporter.rb (readline): fallback to normal gets on Index: tool/redmine-backporter.rb =================================================================== --- tool/redmine-backporter.rb (revision 49347) +++ tool/redmine-backporter.rb (revision 49348) @@ -267,8 +267,8 @@ while true https://github.com/ruby/ruby/blob/trunk/tool/redmine-backporter.rb#L267 break end case l - when 'ls' - uri = URI(REDMINE_BASE+'/projects/ruby-trunk/issues.json?'+URI.encode_www_form(@query)) + when /\Als(?: +(\d+))?\z/ + uri = URI(REDMINE_BASE+'/projects/ruby-trunk/issues.json?'+URI.encode_www_form(@query.dup.merge('page' => ($1 ? $1.to_i : 1))) # puts uri res = JSON(uri.read(openuri_options)) @issues = issues = res["issues"] @@ -442,7 +442,7 @@ eom https://github.com/ruby/ruby/blob/trunk/tool/redmine-backporter.rb#L442 when nil, 'quit', 'exit' exit when 'help' - puts 'ls '.color(bold: true) + ' show all required tickets' + puts 'ls [PAGE] '.color(bold: true) + ' show all required tickets' puts 'show TICKET '.color(bold: true) + ' show the detail of the TICKET, and select it' puts 'TICKET '.color(bold: true) + ' show the backport option of the TICKET for merger.rb' puts 'rel REVISION '.color(bold: true) + ' add the selected ticket as related to the REVISION' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/