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

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue May 12 02:39:08 EDT 2009


Author: sunnavy
Date: Tue May 12 02:39:08 2009
New Revision: 19626

Modified:
   Net-Google-Code/trunk/lib/Net/Google/Code.pm
   Net-Google-Code/trunk/lib/Net/Google/Code/Download.pm
   Net-Google-Code/trunk/lib/Net/Google/Code/Issue.pm
   Net-Google-Code/trunk/lib/Net/Google/Code/Issue/Attachment.pm
   Net-Google-Code/trunk/lib/Net/Google/Code/Issue/Comment.pm
   Net-Google-Code/trunk/lib/Net/Google/Code/Wiki.pm
   Net-Google-Code/trunk/lib/Net/Google/Code/Wiki/Comment.pm

Log:
pod updates

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	Tue May 12 02:39:08 2009
@@ -45,24 +45,12 @@
     is  => 'rw',
 );
 
-=head2 load
-
-load project's home page, and parse its metadata
-
-=cut
-
 sub load {
     my $self = shift;
     my $content = $self->fetch( $self->base_url );
     return $self->parse( $content );
 }
 
-=head2 parse
-
-acturally do the parse job, for load();
-
-=cut
-
 sub parse {
     my $self    = shift;
     my $content = shift;
@@ -121,11 +109,6 @@
     );
 }
 
-=head2 load_downloads
-
-load all the downloads
-
-=cut
 
 sub load_downloads {
 	my $self = shift;
@@ -162,12 +145,6 @@
     );
 }
 
-=head2 load_wikis
-
-load all the wikis
-
-=cut
-
 sub load_wikis {
 	my $self = shift;
 	
@@ -232,10 +209,26 @@
 
 Currently, it focuses on the basic read functionality for that is provided.
 
-=head1 ATTRIBUTES
+=head1 INTERFACE
 
 =over 4
 
+=item load
+
+load project's home page, and parse its metadata
+
+=item parse
+
+acturally do the parse job, for load();
+
+=item load_downloads
+
+load all the downloads, and store them as an arrayref in $self->downloads
+
+=item load_wikis
+
+load all the wikis, and store them as an arrayref in $self->wikis
+
 =item project
 
 the project name
@@ -248,43 +241,34 @@
 
 the project svn url (without trunk)
 
-=item summary
+=item base_feeds_url
 
-short Summary in 'Project Home'
+the project feeds url
 
-=item description
+=item summary
 
-HTML Description in 'Project Home'
+=item description
 
 =item labels
 
-'Labels' in 'Project Home'
-
 =item owners
 
-ArrayRef. project owners
-
 =item members
 
-ArrayRef. project members
-
-=back
-
-=head1 METHODS
-
-=over 4
-
 =item issue
 
-read L<Net::Google::Code::Issue> for the API detail
+return a new L<Net::Google::Code::Issue> object, arguments will be passed to
+L<Net::Google::Code::Issue>'s new method.
 
 =item download
 
-read L<Net::Google::Code::Download> for the API detail
+return a new L<Net::Google::Code::Download> object, arguments will be passed to
+L<Net::Google::Code::Download>'s new method.
 
 =item wiki
 
-read L<Net::Google::Code::Wiki> for the API detail
+return a new L<Net::Google::Code::Wiki> object, arguments will be passed to
+L<Net::Google::Code::Wiki>'s new method.
 
 =back
 

Modified: Net-Google-Code/trunk/lib/Net/Google/Code/Download.pm
==============================================================================
--- Net-Google-Code/trunk/lib/Net/Google/Code/Download.pm	(original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/Download.pm	Tue May 12 02:39:08 2009
@@ -138,25 +138,29 @@
 
 =head1 INTERFACE
 
-=head2 load
+=over 4
 
-=head2 parse
+=item load
 
-=head2 name
+=item parse
 
-=head2 size
+=item name
 
-=head2 download_url
+=item size
 
-=head2 count
+=item download_url
 
-=head2 labels
+=item count
 
-=head2 checksum
+=item labels
 
-=head2 uploaded_by
+=item checksum
 
-=head2 uploaded
+=item uploaded_by
+
+=item uploaded
+
+=back
 
 =head1 AUTHOR
 

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 12 02:39:08 2009
@@ -161,25 +161,29 @@
 
 =head1 INTERFACE
 
-=head2 load
+=over 4
 
-=head2 parse
+=item load
 
-=head2 id
+=item parse
 
-=head2 status
+=item id
 
-=head2 owner 
+=item status
 
-=head2 reporter
+=item owner 
 
-=head2 closed
+=item reporter
 
-=head2 cc
+=item closed
 
-=head2 summary
+=item cc
 
-=head2 description
+=item summary
+
+=item description
+
+=back
 
 =head1 AUTHOR
 

Modified: Net-Google-Code/trunk/lib/Net/Google/Code/Issue/Attachment.pm
==============================================================================
--- Net-Google-Code/trunk/lib/Net/Google/Code/Issue/Attachment.pm	(original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/Issue/Attachment.pm	Tue May 12 02:39:08 2009
@@ -6,21 +6,11 @@
 has url     => ( isa => 'Str', is => 'rw' );
 has size    => ( isa => 'Str', is => 'rw' );
 
-=head2 parse
-there're 2 trs that represent an attachment like the following:
-
- <tr><td rowspan="2" width="24"><a href="http://chromium.googlecode.com/issues/attachment?aid=-1323983749556004507&name=proxy_settings.png" target="new"><img width="16" height="16" src="/hosting/images/generic.gif" border="0" ></a></td>
- <td><b>proxy_settings.png</b></td></tr>
- <tr><td>14.3 KB
-  
- <a href="http://chromium.googlecode.com/issues/attachment?aid=-1323983749556004507&name=proxy_settings.png">Download</a></td></tr>
-
-=cut
-
 sub parse {
     my $self = shift;
     my $tr1  = shift;
     my $tr2  = shift;
+
     my $b    = $tr1->find_by_tag_name('b');    # name lives here
     if ($b) {
         my $name = $b->content_array_ref->[0];
@@ -64,13 +54,29 @@
 
 =head1 INTERFACE
 
-=head2 name
+=over 4
+
+=item parse( tr1, tr2 )
+
+there're 2 trs that represent an attachment like the following:
+
+ <tr><td rowspan="2" width="24"><a href="http://chromium.googlecode.com/issues/attachment?aid=-1323983749556004507&name=proxy_settings.png" target="new"><img width="16" height="16" src="/hosting/images/generic.gif" border="0" ></a></td>
+ <td><b>proxy_settings.png</b></td></tr>
+ <tr><td>14.3 KB
+  
+ <a href="http://chromium.googlecode.com/issues/attachment?aid=-1323983749556004507&name=proxy_settings.png">Download</a></td></tr>
+
+=cut
+
+=item name
+
+=item content
 
-=head2 content
+=item size
 
-=head2 size
+=item url
 
-=head2 url
+=back
 
 =head1 AUTHOR
 

Modified: Net-Google-Code/trunk/lib/Net/Google/Code/Issue/Comment.pm
==============================================================================
--- Net-Google-Code/trunk/lib/Net/Google/Code/Issue/Comment.pm	(original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/Issue/Comment.pm	Tue May 12 02:39:08 2009
@@ -13,52 +13,6 @@
     default => sub { [] },
 );
 
-=head2 parse
-
-parse format like the following:
-
- <td class="vt issuecomment">
- 
- 
- 
- <span class="author">Comment <a name="c18"
- href="#c18">18</a>
- by
- <a href="/u/jsykari/">jsykari</a></span>,
- <span class="date" title="Wed Sep  3 04:44:39 2008">Sep 03, 2008</span>
-<pre>
-<b>haha</b>
-
-</pre>
- 
- <div class="attachments">
- 
- <table cellspacing="0" cellpadding="2" border="0">
- <tr><td rowspan="2" width="24"><a href="http://chromium.googlecode.com/issues/attachment?aid=-1323983749556004507&name=proxy_settings.png" target="new"><img width="16" height="16" src="/hosting/images/generic.gif" border="0" ></a></td>
- <td><b>proxy_settings.png</b></td></tr>
- <tr><td>14.3 KB
-  
- <a href="http://chromium.googlecode.com/issues/attachment?aid=-1323983749556004507&name=proxy_settings.png">Download</a></td></tr>
- </table>
- 
- </div>
-
- <div class="updates">
- <div class="round4"></div>
- <div class="round2"></div>
- <div class="round1"></div>
- <div class="box-inner">
- <b>Cc:</b> thatan... at google.com<br><b>Status:</b> Available<br><b>Labels:</b> Mstone-X<br>
- </div>
- <div class="round1"></div>
- <div class="round2"></div>
- <div class="round4"></div>
- </div>
- 
- </td>
-
-=cut
-
 sub parse {
     my $self    = shift;
     my $element = shift;
@@ -158,7 +112,53 @@
 
 =head1 INTERFACE
 
-=head2 parse
+=over 4
+
+=item parse( element )
+
+parse format like the following:
+
+ <td class="vt issuecomment">
+ 
+ 
+ 
+ <span class="author">Comment <a name="c18"
+ href="#c18">18</a>
+ by
+ <a href="/u/jsykari/">jsykari</a></span>,
+ <span class="date" title="Wed Sep  3 04:44:39 2008">Sep 03, 2008</span>
+<pre>
+<b>haha</b>
+
+</pre>
+ 
+ <div class="attachments">
+ 
+ <table cellspacing="0" cellpadding="2" border="0">
+ <tr><td rowspan="2" width="24"><a href="http://chromium.googlecode.com/issues/attachment?aid=-1323983749556004507&name=proxy_settings.png" target="new"><img width="16" height="16" src="/hosting/images/generic.gif" border="0" ></a></td>
+ <td><b>proxy_settings.png</b></td></tr>
+ <tr><td>14.3 KB
+  
+ <a href="http://chromium.googlecode.com/issues/attachment?aid=-1323983749556004507&name=proxy_settings.png">Download</a></td></tr>
+ </table>
+ 
+ </div>
+
+ <div class="updates">
+ <div class="round4"></div>
+ <div class="round2"></div>
+ <div class="round1"></div>
+ <div class="box-inner">
+ <b>Cc:</b> thatan... at google.com<br><b>Status:</b> Available<br><b>Labels:</b> Mstone-X<br>
+ </div>
+ <div class="round1"></div>
+ <div class="round2"></div>
+ <div class="round4"></div>
+ </div>
+ 
+ </td>
+
+=back
 
 =head1 AUTHOR
 

Modified: Net-Google-Code/trunk/lib/Net/Google/Code/Wiki.pm
==============================================================================
--- Net-Google-Code/trunk/lib/Net/Google/Code/Wiki.pm	(original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/Wiki.pm	Tue May 12 02:39:08 2009
@@ -23,18 +23,22 @@
     isa => 'Str',
     is  => 'rw',
 );
+
 has 'updated_by' => (
     isa => 'Str',
     is  => 'rw',
 );
+
 has 'labels' => (
     isa => 'ArrayRef[Str]',
     is  => 'rw',
 );
+
 has 'summary' => (
     isa => 'Str',
     is  => 'rw',
 );
+
 has 'comments' => (
     isa => 'ArrayRef[Net::Google::Code::Wiki::Comment]',
     is  => 'rw',
@@ -121,34 +125,38 @@
         project => 'net-google-code',
         name    => 'TestPage',
     );
-
+    $wiki->load;
     $wiki_entry->source;
 
 =head1 INTERFACE
 
-=head2 load
+=over 4
+
+=item load
+
+=item parse
 
-=head2 parse
+=item load_source
 
-=head2 load_source
+=item parse_source
 
-=head2 parse_source
+=item name
 
-=head2 name
+=item source
 
-=head2 source
+=item summary
 
-=head2 summary
+=item labels
 
-=head2 labels
+=item content
 
-=head2 content
+=item updated_by
 
-=head2 updated_by
+=item updated
 
-=head2 updated
+=item comments
 
-=head2 comments
+=back
 
 =head1 AUTHOR
 

Modified: Net-Google-Code/trunk/lib/Net/Google/Code/Wiki/Comment.pm
==============================================================================
--- Net-Google-Code/trunk/lib/Net/Google/Code/Wiki/Comment.pm	(original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/Wiki/Comment.pm	Tue May 12 02:39:08 2009
@@ -46,7 +46,11 @@
 
 =head1 INTERFACE
 
-=head2 parse
+=over 4
+
+=item parse( element )
+
+=back
 
 =head1 AUTHOR
 



More information about the Bps-public-commit mailing list