From 6146218377d43b37fb79c6ad3a2c30b1699d792f Mon Sep 17 00:00:00 2001 From: Mark Loeser Date: Mon, 9 Jun 2008 21:31:18 -0400 Subject: Now follow maintainingproject tag --- gentoo-data.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gentoo-data.rb') diff --git a/gentoo-data.rb b/gentoo-data.rb index c9be68e..08757bd 100644 --- a/gentoo-data.rb +++ b/gentoo-data.rb @@ -121,6 +121,18 @@ class GentooPlugin < Plugin emails << ', ' << maintainer.get_elements('email')[0].text.split('@')[0] end end + for project in herd.get_elements("maintainingproject") + res = @bot.httputil.get("http://www.gentoo.org/#{project.text}?passthru=1") + proj_xml = REXML::Document.new(res) + for dev in proj_xml.get_elements("/project/dev") + if emails.nil? + emails = '' + emails = dev.text + else + emails << ', ' << dev.text + end + end + end m.reply "(#{params[:herd]}) #{emails}" end end -- cgit v1.2.3-65-gdbad