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

fayland at bestpractical.com fayland at bestpractical.com
Thu Jan 8 23:01:39 EST 2009


Author: fayland
Date: Thu Jan  8 23:01:39 2009
New Revision: 17653

Modified:
   Net-Google-Code/trunk/lib/Net/Google/Code/Downloads.pm
   Net-Google-Code/trunk/lib/Net/Google/Code/Wiki.pm

Log:
SYNOPSIS updates.

Modified: Net-Google-Code/trunk/lib/Net/Google/Code/Downloads.pm
==============================================================================
--- Net-Google-Code/trunk/lib/Net/Google/Code/Downloads.pm	(original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/Downloads.pm	Thu Jan  8 23:01:39 2009
@@ -122,11 +122,10 @@
 
 =head1 SYNOPSIS
 
-    use Net::Google::Code::Connection;
-    my $connection = Net::Google::Code::Connection( project => 'net-google-code' );
-
-    use Net::Google::Code::Downloads;
-    my $download = Net::Google::Code::Downloads->new( connection => $connection );
+    use Net::Google::Code;
+    
+    my $project = Net::Google::Code->new( project => 'net-google-code' );
+    my $download = $project->downloads;
     
     my @entries = $download->all_entries;
     foreach my $e ( @entries ) {

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	Thu Jan  8 23:01:39 2009
@@ -56,13 +56,16 @@
 
 =head1 SYNOPSIS
 
-    use Net::Google::Code::Connection;
-    my $connection = Net::Google::Code::Connection( project => 'net-google-code' );
-
-    use Net::Google::Code::Wiki;
-    my $wiki = Net::Google::Code::Wiki->new( connection => $connection );
+    use Net::Google::Code;
+    
+    my $project = Net::Google::Code->new( project => 'net-google-code' );
+    my $wiki = $project->wiki;
     
     my @entries = $wiki->all_entries;
+    foreach my $item ( @entries ) {
+        my $entry = $wiki->entry($item);
+        print $entry->source, "\n";
+    }
     
 =head1 DESCRIPTION
 
@@ -72,7 +75,7 @@
 
 =head2 all_entries
 
-get all entries from wiki svn
+get all entries (name ONLY) from wiki svn
 
 =head2 entry
 



More information about the Bps-public-commit mailing list