[Bps-public-commit] r17371 - in Net-Google-Code/trunk: lib/Net/Google/Code

sunnavy at bestpractical.com sunnavy at bestpractical.com
Fri Dec 26 03:24:40 EST 2008


Author: sunnavy
Date: Fri Dec 26 03:24:39 2008
New Revision: 17371

Modified:
   Net-Google-Code/trunk/   (props changed)
   Net-Google-Code/trunk/lib/Net/Google/Code/Ticket.pm

Log:
 r18309 at sunnavys-mb:  sunnavy | 2008-12-26 15:02:59 +0800
 extract reporter


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:39 2008
@@ -30,7 +30,7 @@
     is => 'rw',
 );
 
-our @PROPS = qw(status owner closed cc summary description);
+our @PROPS = qw(status owner closed cc summary reporter description);
 
 for my $prop (@PROPS) {
     no strict 'refs'; ## no critic
@@ -56,6 +56,11 @@
     my ($summary) = $tree->look_down(class => 'h3' );
     $self->state->{summary} = $summary->content_array_ref->[0];
 
+    # extract reporter
+    $self->state->{reporter} = 
+      $summary->look_down( class => "author" )->content_array_ref->[1]
+      ->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