[Bps-public-commit] r19729 - Net-Google-Code/trunk/lib/Net/Google/Code

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue May 19 22:02:57 EDT 2009


Author: sunnavy
Date: Tue May 19 22:02:56 2009
New Revision: 19729

Modified:
   Net-Google-Code/trunk/lib/Net/Google/Code/Issue.pm

Log:
added merged attr for issue

Modified: Net-Google-Code/trunk/lib/Net/Google/Code/Issue.pm
==============================================================================
--- Net-Google-Code/trunk/lib/Net/Google/Code/Issue.pm	(original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/Issue.pm	Tue May 19 22:02:56 2009
@@ -49,6 +49,11 @@
     is  => 'rw',
 );
 
+has 'merged' => (
+    isa => 'Int',
+    is  => 'rw',
+);
+
 has 'closed' => (
     isa => 'Str',
     is  => 'rw',
@@ -143,6 +148,9 @@
                 $value =~ s/\s+$//;
             }
             if ( $self->can( $key ) ) {
+                if ( $key eq 'merged' && $value =~ /issue\s+(\d+)/ ) {
+                    $value = $1;
+                }
                 $self->$key( $value );
             }
             else {
@@ -341,6 +349,8 @@
 
 =item reported
 
+=item merged
+
 =item closed
 
 =item cc



More information about the Bps-public-commit mailing list