"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "examples/trac_ticket_status.rb" between
ruport-1.7.1.tar.gz and ruport-1.8.0.tar.gz

About: Ruport (Ruby Reports) is a simple, extensible reporting system built for Rubyists. It provides tools for data acquisition, database interaction, formatting, and parsing/munging.

trac_ticket_status.rb  (ruport-1.7.1):trac_ticket_status.rb  (ruport-1.8.0)
skipping to change at line 44 skipping to change at line 44
title = (r/"title").innerHTML title = (r/"title").innerHTML
next unless title =~ /Ticket.*(created|closed|reopened)/ next unless title =~ /Ticket.*(created|closed|reopened)/
table << { :title => title, table << { :title => title,
:date => Date.parse((r/"pubdate").innerHTML) } :date => Date.parse((r/"pubdate").innerHTML) }
end end
end end
Grouping(table,:by => :date) Grouping(table,:by => :date)
end end
def renderable_data(format) def renderable_data(_format)
summary = feed_data.summary :date, summary = feed_data.summary :date,
:opened => lambda { |g| g.sigma { |r| r.opened } }, :opened => lambda { |g| g.sigma { |r| r.opened } },
:closed => lambda { |g| g.sigma { |r| r.closed } }, :closed => lambda { |g| g.sigma { |r| r.closed } },
:order => [:date,:opened,:closed] :order => [:date,:opened,:closed]
summary.sort_rows_by! { |r| r.date } summary.sort_rows_by! { |r| r.date }
return summary return summary
end end
end end
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)