From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0BAED1384B4 for ; Mon, 16 Nov 2015 04:23:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6451E21C04B; Mon, 16 Nov 2015 04:23:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CFA6621C04B for ; Mon, 16 Nov 2015 04:23:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 15CFA3406DD for ; Mon, 16 Nov 2015 04:23:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C7E9BA96 for ; Mon, 16 Nov 2015 04:23:30 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1447647738.b82b012c7122e06f805155a62fa6727ad401f390.robbat2@gentoo> Subject: [gentoo-commits] proj/rbot-bugzilla:master commit in: / X-VCS-Repository: proj/rbot-bugzilla X-VCS-Files: bugzilla.rb X-VCS-Directories: / X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: b82b012c7122e06f805155a62fa6727ad401f390 X-VCS-Branch: master Date: Mon, 16 Nov 2015 04:23:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e6e820b5-80fc-4513-922f-1b0becb616ea X-Archives-Hash: 03f28519f3c66a352e01906c7c7f066e commit: b82b012c7122e06f805155a62fa6727ad401f390 Author: Robin H. Johnson gentoo org> AuthorDate: Mon Nov 16 04:22:18 2015 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Mon Nov 16 04:22:18 2015 +0000 URL: https://gitweb.gentoo.org/proj/rbot-bugzilla.git/commit/?id=b82b012c Update for newer Ruby. Signed-off-by: Robin H. Johnson gentoo.org> bugzilla.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bugzilla.rb b/bugzilla.rb index 13f19fe..97743cc 100644 --- a/bugzilla.rb +++ b/bugzilla.rb @@ -435,13 +435,13 @@ class BugzillaPlugin < Plugin def search(urlparams, params = nil) url = buglisturl + '&' + urlparams - searchdata = CSV::Reader.create(@bot.httputil.get(url)).to_a + searchdata = CSV.parse(@bot.httputil.get(url)) return searchdata end def report(urlparams, params = nil) url = "#{reporturl}&#{urlparams}" - reportdata = CSV::Reader.create(@bot.httputil.get(url)).to_a + reportdata = CSV.parse(@bot.httputil.get(url)) if params and params[:total] sum = 0 column = params[:total]