From 66c05ce0ccccdae5a1de8291b462557b2fc582a7 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 20 Jan 2015 04:23:43 +0000 Subject: [PATCH] * tool/redmine-backporter.rb: fix bugs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/redmine-backporter.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb index 5ebc4dffdf..a23eb10415 100755 --- a/tool/redmine-backporter.rb +++ b/tool/redmine-backporter.rb @@ -11,6 +11,7 @@ require 'pp' begin require 'readline' rescue LoadError + module Readline; end else include Readline end @@ -278,7 +279,7 @@ while true end case l 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 res = JSON(uri.read(openuri_options)) @issues = issues = res["issues"]