[Bps-public-commit] r17370 - in Net-Google-Code/trunk: lib/Net/Google/Code
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Fri Dec 26 03:24:21 EST 2008
Author: sunnavy
Date: Fri Dec 26 03:24:20 2008
New Revision: 17370
Modified:
Net-Google-Code/trunk/ (props changed)
Net-Google-Code/trunk/lib/Net/Google/Code/Ticket.pm
Log:
r18308 at sunnavys-mb: sunnavy | 2008-12-26 14:50:33 +0800
extract summary
Modified: Net-Google-Code/trunk/lib/Net/Google/Code/Ticket.pm
==============================================================================
--- Net-Google-Code/trunk/lib/Net/Google/Code/Ticket.pm (original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/Ticket.pm Fri Dec 26 03:24:20 2008
@@ -51,6 +51,11 @@
my $tree = HTML::TreeBuilder->new;
$tree->parse_content($content);
$tree->elementify;
+
+ # extract summary
+ my ($summary) = $tree->look_down(class => 'h3' );
+ $self->state->{summary} = $summary->content_array_ref->[0];
+
my ($meta) = $tree->look_down( id => 'issuemeta' );
my @meta = $meta->find_by_tag_name('tr');
for my $meta (@meta) {
More information about the Bps-public-commit
mailing list