aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-20 04:23:43 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-20 04:23:43 +0000
commit66c05ce0ccccdae5a1de8291b462557b2fc582a7 (patch)
tree1337de932fd52ae0987a688a9a9a43427bfa3c1d /tool
parentaa6b7b0701a683c7457bdd9ff3e5732be19a8f59 (diff)
downloadruby-66c05ce0ccccdae5a1de8291b462557b2fc582a7.tar.gz
* tool/redmine-backporter.rb: fix bugs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/redmine-backporter.rb3
1 files changed, 2 insertions, 1 deletions
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"]