diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-20 04:23:43 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-20 04:23:43 +0000 |
commit | 66c05ce0ccccdae5a1de8291b462557b2fc582a7 (patch) | |
tree | 1337de932fd52ae0987a688a9a9a43427bfa3c1d | |
parent | aa6b7b0701a683c7457bdd9ff3e5732be19a8f59 (diff) | |
download | ruby-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
-rwxr-xr-x | tool/redmine-backporter.rb | 3 |
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"] |