Permalink
Browse files

fix for not properly searching 2nd jira url

  • Loading branch information...
1 parent c90f05e commit 539f04575151a4567009ac730cf63bfd778ceb8f @joshwand joshwand committed Jan 12, 2011
Showing with 4 additions and 5 deletions.
  1. +4 −5 plugins/jira.rb
View
@@ -87,14 +87,13 @@ def fetch_jira_url()
searchurls.each do |searchurl|
begin
- @log.info "checking jira for new issues..."
+ @log.info "checking jira for new issues... #{searchurl}"
xmldata = open(searchurl).read
doc = REXML::Document.new(xmldata)
-
raise Exception.new("response had no content") if doc.nil?
- doc.elements.inject('rss/channel/item', []) do |tix, element|
- tix.push(parse_ticket_info(element))
- end
+ doc.elements.inject('rss/channel/item', tix) do |tix, element|
+ tix.push(parse_ticket_info(element))
+ end
rescue Exception => e
@log.error "error connecting to jira: #{e.message}"
# @log.error "#{e.backtrace}"

0 comments on commit 539f045

Please sign in to comment.