1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* tool/redmine-backporter.rb: fix bugs.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2015-01-20 04:23:43 +00:00
parent aa6b7b0701
commit 66c05ce0cc

View file

@ -11,6 +11,7 @@ require 'pp'
begin begin
require 'readline' require 'readline'
rescue LoadError rescue LoadError
module Readline; end
else else
include Readline include Readline
end end
@ -278,7 +279,7 @@ while true
end end
case l case l
when /\Als(?: +(\d+))?\z/ 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))) uri = URI(REDMINE_BASE+'/projects/ruby-trunk/issues.json?'+URI.encode_www_form(@query.dup.merge('page' => ($1 ? $1.to_i : 1))))
# puts uri # puts uri
res = JSON(uri.read(openuri_options)) res = JSON(uri.read(openuri_options))
@issues = issues = res["issues"] @issues = issues = res["issues"]