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

sunnavy at bestpractical.com sunnavy at bestpractical.com
Mon Jan 5 22:22:19 EST 2009


Author: sunnavy
Date: Mon Jan  5 22:22:18 2009
New Revision: 17564

Added:
   Net-Google-Code/trunk/lib/Net/Google/Code/Issue.pm
      - copied, changed from r17559, /Net-Google-Code/trunk/lib/Net/Google/Code/Ticket.pm
   Net-Google-Code/trunk/lib/Net/Google/Code/IssueAttachment.pm
      - copied, changed from r17527, /Net-Google-Code/trunk/lib/Net/Google/Code/TicketAttachment.pm
   Net-Google-Code/trunk/lib/Net/Google/Code/IssueComment.pm
      - copied, changed from r17563, /Net-Google-Code/trunk/lib/Net/Google/Code/TicketComment.pm
   Net-Google-Code/trunk/lib/Net/Google/Code/IssuePropChange.pm
      - copied, changed from r17527, /Net-Google-Code/trunk/lib/Net/Google/Code/TicketPropChange.pm
Removed:
   Net-Google-Code/trunk/lib/Net/Google/Code/Ticket.pm
   Net-Google-Code/trunk/lib/Net/Google/Code/TicketAttachment.pm
   Net-Google-Code/trunk/lib/Net/Google/Code/TicketComment.pm
   Net-Google-Code/trunk/lib/Net/Google/Code/TicketPropChange.pm
Modified:
   Net-Google-Code/trunk/   (props changed)
   Net-Google-Code/trunk/MANIFEST
   Net-Google-Code/trunk/lib/Net/Google/Code.pm
   Net-Google-Code/trunk/lib/Net/Google/Code/Search.pm
   Net-Google-Code/trunk/t/02.ticket.t
   Net-Google-Code/trunk/t/03.comment.t
   Net-Google-Code/trunk/t/04.attachment.t

Log:
 r18556 at sunnavys-mb:  sunnavy | 2009-01-06 10:54:58 +0800
 Ticket -> Issue


Modified: Net-Google-Code/trunk/MANIFEST
==============================================================================
--- Net-Google-Code/trunk/MANIFEST	(original)
+++ Net-Google-Code/trunk/MANIFEST	Mon Jan  5 22:22:18 2009
@@ -14,10 +14,10 @@
 lib/Net/Google/Code/Connection.pm
 lib/Net/Google/Code/Mechanize.pm
 lib/Net/Google/Code/Search.pm
-lib/Net/Google/Code/Ticket.pm
-lib/Net/Google/Code/TicketAttachment.pm
-lib/Net/Google/Code/TicketComment.pm
-lib/Net/Google/Code/TicketPropChange.pm
+lib/Net/Google/Code/Issue.pm
+lib/Net/Google/Code/IssueAttachment.pm
+lib/Net/Google/Code/IssueComment.pm
+lib/Net/Google/Code/IssuePropChange.pm
 Makefile.PL
 MANIFEST
 META.yml

Modified: Net-Google-Code/trunk/lib/Net/Google/Code.pm
==============================================================================
--- Net-Google-Code/trunk/lib/Net/Google/Code.pm	(original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code.pm	Mon Jan  5 22:22:18 2009
@@ -33,8 +33,8 @@
     use Net::Google::Code::Connection;
     my $connection = Net::Google::Code::Connection( project => 'foo' );
 
-    use Net::Google::Code::Ticket;
-    my $ticket = Net::Google::Code::Ticket->new( connection => $connection );
+    use Net::Google::Code::Issue;
+    my $ticket = Net::Google::Code::Issue->new( connection => $connection );
     $ticket->load( 42 );
 
     use Net::Google::Code::Search;

Copied: Net-Google-Code/trunk/lib/Net/Google/Code/Issue.pm (from r17559, /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/Issue.pm	Mon Jan  5 22:22:18 2009
@@ -1,7 +1,7 @@
-package Net::Google::Code::Ticket;
+package Net::Google::Code::Issue;
 use Moose;
 use Params::Validate qw(:all);
-use Net::Google::Code::TicketComment;
+use Net::Google::Code::IssueComment;
 
 has connection => (
     isa => 'Net::Google::Code::Connection',
@@ -37,7 +37,7 @@
 
 for my $prop (@PROPS) {
     no strict 'refs'; ## no critic
-    *{ "Net::Google::Code::Ticket::" . $prop } = sub { shift->state->{$prop} };
+    *{ "Net::Google::Code::Issue::" . $prop } = sub { shift->state->{$prop} };
 }
 
 sub load {
@@ -77,12 +77,12 @@
     my $attachments = $description->look_down(class => 'attachments');
     if ( $attachments ) {
         my @items = $attachments->find_by_tag_name( 'tr' );
-        require Net::Google::Code::TicketAttachment;
+        require Net::Google::Code::IssueAttachment;
         while ( scalar @items ) {
             my $tr1 = shift @items;
             my $tr2 = shift @items;
             my $a =
-              Net::Google::Code::TicketAttachment->new(
+              Net::Google::Code::IssueAttachment->new(
                 connection => $self->connection );
 
             if ( $a->parse( $tr1, $tr2 ) ) {
@@ -138,7 +138,7 @@
     pop @comments;    # last one is for adding comment
     for my $comment (@comments) {
         my $object =
-          Net::Google::Code::TicketComment->new(
+          Net::Google::Code::IssueComment->new(
             connection => $self->connection );
         $object->parse($comment);
         push @{$self->comments}, $object;
@@ -154,7 +154,7 @@
 
 =head1 NAME
 
-Net::Google::Code::Ticket - 
+Net::Google::Code::Issue - 
 
 
 =head1 DESCRIPTION

Copied: Net-Google-Code/trunk/lib/Net/Google/Code/IssueAttachment.pm (from r17527, /Net-Google-Code/trunk/lib/Net/Google/Code/TicketAttachment.pm)
==============================================================================
--- /Net-Google-Code/trunk/lib/Net/Google/Code/TicketAttachment.pm	(original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/IssueAttachment.pm	Mon Jan  5 22:22:18 2009
@@ -1,4 +1,4 @@
-package Net::Google::Code::TicketAttachment;
+package Net::Google::Code::IssueAttachment;
 use Moose;
 
 has connection => (
@@ -61,7 +61,7 @@
 
 =head1 NAME
 
-Net::Google::Code::TicketAttachment
+Net::Google::Code::IssueAttachment
 
 =head1 DESCRIPTION
 

Copied: Net-Google-Code/trunk/lib/Net/Google/Code/IssueComment.pm (from r17563, /Net-Google-Code/trunk/lib/Net/Google/Code/TicketComment.pm)
==============================================================================
--- /Net-Google-Code/trunk/lib/Net/Google/Code/TicketComment.pm	(original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/IssueComment.pm	Mon Jan  5 22:22:18 2009
@@ -1,4 +1,4 @@
-package Net::Google::Code::TicketComment;
+package Net::Google::Code::IssueComment;
 use Moose;
 
 has connection => (
@@ -13,7 +13,7 @@
 has content   => ( isa => 'Str',     is => 'rw' );
 has sequence  => ( isa => 'Int',     is => 'rw' );
 has attachments => (
-    isa     => 'ArrayRef[Net::Google::Code::TicketAttachment]',
+    isa     => 'ArrayRef[Net::Google::Code::IssueAttachment]',
     is      => 'rw',
     default => sub { [] },
 );
@@ -131,12 +131,12 @@
     my $attachments = $element->look_down( class => 'attachments' );
     if ( $attachments ) {
         my @items = $attachments->find_by_tag_name( 'tr' );
-        require Net::Google::Code::TicketAttachment;
+        require Net::Google::Code::IssueAttachment;
         while ( scalar @items ) {
             my $tr1 = shift @items;
             my $tr2 = shift @items;
             my $a =
-              Net::Google::Code::TicketAttachment->new(
+              Net::Google::Code::IssueAttachment->new(
                 connection => $self->connection );
 
             if ( $a->parse( $tr1, $tr2 ) ) {
@@ -155,7 +155,7 @@
 
 =head1 NAME
 
-Net::Google::Code::TicketComment - 
+Net::Google::Code::IssueComment - 
 
 =head1 DESCRIPTION
 

Copied: Net-Google-Code/trunk/lib/Net/Google/Code/IssuePropChange.pm (from r17527, /Net-Google-Code/trunk/lib/Net/Google/Code/TicketPropChange.pm)
==============================================================================
--- /Net-Google-Code/trunk/lib/Net/Google/Code/TicketPropChange.pm	(original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/IssuePropChange.pm	Mon Jan  5 22:22:18 2009
@@ -1,4 +1,4 @@
-package Net::Google::Code::TicketPropChange;
+package Net::Google::Code::IssuePropChange;
 use Moose;
 
 has property  => ( isa => 'Str', is => 'rw' );
@@ -12,7 +12,7 @@
 
 =head1 NAME
 
-Net::Google::Code::TicketPropChange - 
+Net::Google::Code::IssuePropChange - 
 
 =head1 DESCRIPTION
 

Modified: Net-Google-Code/trunk/lib/Net/Google/Code/Search.pm
==============================================================================
--- Net-Google-Code/trunk/lib/Net/Google/Code/Search.pm	(original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/Search.pm	Mon Jan  5 22:22:18 2009
@@ -1,7 +1,7 @@
 package Net::Google::Code::Search;
 use Moose;
 use Params::Validate qw(:all);
-use Net::Google::Code::Ticket;
+use Net::Google::Code::Issue;
 use Moose::Util::TypeConstraints;
 
 has connection => (

Modified: Net-Google-Code/trunk/t/02.ticket.t
==============================================================================
--- Net-Google-Code/trunk/t/02.ticket.t	(original)
+++ Net-Google-Code/trunk/t/02.ticket.t	Mon Jan  5 22:22:18 2009
@@ -21,10 +21,10 @@
 );
 
 use_ok('Net::Google::Code::Connection');
-use_ok('Net::Google::Code::Ticket');
+use_ok('Net::Google::Code::Issue');
 my $connection = Net::Google::Code::Connection->new( project => 'test' );
-my $ticket = Net::Google::Code::Ticket->new( connection => $connection );
-isa_ok( $ticket, 'Net::Google::Code::Ticket', '$ticket' );
+my $ticket = Net::Google::Code::Issue->new( connection => $connection );
+isa_ok( $ticket, 'Net::Google::Code::Issue', '$ticket' );
 isa_ok( $ticket->connection, 'Net::Google::Code::Connection', '$ticket->connection' );
 $ticket->load(14);
 

Modified: Net-Google-Code/trunk/t/03.comment.t
==============================================================================
--- Net-Google-Code/trunk/t/03.comment.t	(original)
+++ Net-Google-Code/trunk/t/03.comment.t	Mon Jan  5 22:22:18 2009
@@ -3,12 +3,12 @@
 
 use Test::More tests => 11;
 
-use_ok( 'Net::Google::Code::TicketComment' );
+use_ok( 'Net::Google::Code::IssueComment' );
 use_ok( 'Net::Google::Code::Connection' );
 my $connection = Net::Google::Code::Connection->new( project => 'haha' );
 my $comment =
-  Net::Google::Code::TicketComment->new( connection => $connection );
-isa_ok( $comment, 'Net::Google::Code::TicketComment', '$comment' );
+  Net::Google::Code::IssueComment->new( connection => $connection );
+isa_ok( $comment, 'Net::Google::Code::IssueComment', '$comment' );
 
 my $content;
 {

Modified: Net-Google-Code/trunk/t/04.attachment.t
==============================================================================
--- Net-Google-Code/trunk/t/04.attachment.t	(original)
+++ Net-Google-Code/trunk/t/04.attachment.t	Mon Jan  5 22:22:18 2009
@@ -5,13 +5,13 @@
 
 
 
-use_ok( 'Net::Google::Code::TicketAttachment' );
+use_ok( 'Net::Google::Code::IssueAttachment' );
 use_ok( 'Net::Google::Code::Connection' );
 my $connection = Net::Google::Code::Connection->new( project => 'haha' );
 my $attachment =
-  Net::Google::Code::TicketAttachment->new( connection => $connection );
+  Net::Google::Code::IssueAttachment->new( connection => $connection );
 
-isa_ok( $attachment, 'Net::Google::Code::TicketAttachment', '$attachment' );
+isa_ok( $attachment, 'Net::Google::Code::IssueAttachment', '$attachment' );
 
 
 my $content;



More information about the Bps-public-commit mailing list