r65618 - in /trunk/libparse-mediawikidump-perl: ./ debian/ debian/source/ lib/Parse/ lib/Parse/MediaWikiDump/

angelabad-guest at users.alioth.debian.org angelabad-guest at users.alioth.debian.org
Thu Dec 9 00:14:29 UTC 2010


Author: angelabad-guest
Date: Thu Dec  9 00:13:31 2010
New Revision: 65618

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=65618
Log:
* New upstream release
* Bump Standards-Version to 3.9.1 (no changes)
* Switch to dpkg-source format 3.0 (quilt)

Added:
    trunk/libparse-mediawikidump-perl/debian/source/
    trunk/libparse-mediawikidump-perl/debian/source/format
Modified:
    trunk/libparse-mediawikidump-perl/Changes
    trunk/libparse-mediawikidump-perl/META.yml
    trunk/libparse-mediawikidump-perl/TODO
    trunk/libparse-mediawikidump-perl/debian/changelog
    trunk/libparse-mediawikidump-perl/debian/control
    trunk/libparse-mediawikidump-perl/debian/copyright
    trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump.pm
    trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/Links.pm
    trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/Pages.pm
    trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/Revisions.pm
    trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/link.pm
    trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/page.pm

Modified: trunk/libparse-mediawikidump-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-mediawikidump-perl/Changes?rev=65618&op=diff
==============================================================================
--- trunk/libparse-mediawikidump-perl/Changes (original)
+++ trunk/libparse-mediawikidump-perl/Changes Thu Dec  9 00:13:31 2010
@@ -1,4 +1,16 @@
 Revision history for Parse-MediaWikiDump
+
+1.0.6	Dec 04, 2010
+	* Fix for bug #58196 - error "not a MediaWiki link dunp file" due 
+	  to absence of 'LOCK TABLES ...' line in link dump file?
+	* Added option to pass input to ::Pages constructor via named parameters so
+	  that MediaWiki::DumpFile::Compat and ::Pages share the same API 
+	* Software is nearly retired, only need more testing on MediaWiki::DumpFile::Compat;
+	  Please begin using MediaWiki::DumpFile::Compat instead of this package and
+	  report problems if you encounter them. 
+
+1.0.5	Apr 21, 2010 
+	* Updated docs pointing people to MediaWiki::DumpFile::Compat
 
 1.0.4	Jan 04, 2010
 	* Fixed bug #53361: Incorrectly assigned usernames 

Modified: trunk/libparse-mediawikidump-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-mediawikidump-perl/META.yml?rev=65618&op=diff
==============================================================================
--- trunk/libparse-mediawikidump-perl/META.yml (original)
+++ trunk/libparse-mediawikidump-perl/META.yml Thu Dec  9 00:13:31 2010
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:               Parse-MediaWikiDump
-version:            1.0.4
+version:            1.0.6
 abstract:           Tools to process MediaWiki dump files
 author:
     - Tyler Riddle <triddle at gmail.com>
@@ -24,7 +24,7 @@
     directory:
         - t
         - inc
-generated_by:       ExtUtils::MakeMaker version 6.54
+generated_by:       ExtUtils::MakeMaker version 6.56
 meta-spec:
     url:      http://module-build.sourceforge.net/META-spec-v1.4.html
     version:  1.4

Modified: trunk/libparse-mediawikidump-perl/TODO
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-mediawikidump-perl/TODO?rev=65618&op=diff
==============================================================================
--- trunk/libparse-mediawikidump-perl/TODO (original)
+++ trunk/libparse-mediawikidump-perl/TODO Thu Dec  9 00:13:31 2010
@@ -1,1 +1,0 @@
-  * Comment the code

Modified: trunk/libparse-mediawikidump-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-mediawikidump-perl/debian/changelog?rev=65618&op=diff
==============================================================================
--- trunk/libparse-mediawikidump-perl/debian/changelog (original)
+++ trunk/libparse-mediawikidump-perl/debian/changelog Thu Dec  9 00:13:31 2010
@@ -1,3 +1,11 @@
+libparse-mediawikidump-perl (1.0.6-1) unstable; urgency=low
+
+  * New upstream release
+  * Bump Standards-Version to 3.9.1 (no changes)
+  * Switch to dpkg-source format 3.0 (quilt)
+
+ -- Angel Abad <angelabad at gmail.com>  Thu, 09 Dec 2010 00:56:22 +0100
+
 libparse-mediawikidump-perl (1.0.4-2) UNRELEASED; urgency=low
 
   * Update my email address.

Modified: trunk/libparse-mediawikidump-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-mediawikidump-perl/debian/control?rev=65618&op=diff
==============================================================================
--- trunk/libparse-mediawikidump-perl/debian/control (original)
+++ trunk/libparse-mediawikidump-perl/debian/control Thu Dec  9 00:13:31 2010
@@ -10,7 +10,7 @@
 Uploaders: Xavier Oswald <xoswald at debian.org>,
  gregor herrmann <gregoa at debian.org>, Ansgar Burchardt <ansgar at debian.org>,
  Jonathan Yu <jawnsy at cpan.org>, Angel Abad <angelabad at gmail.com> 
-Standards-Version: 3.8.3
+Standards-Version: 3.9.1
 Homepage: http://search.cpan.org/dist/Parse-MediaWikiDump/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libparse-mediawikidump-perl
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libparse-mediawikidump-perl

Modified: trunk/libparse-mediawikidump-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-mediawikidump-perl/debian/copyright?rev=65618&op=diff
==============================================================================
--- trunk/libparse-mediawikidump-perl/debian/copyright (original)
+++ trunk/libparse-mediawikidump-perl/debian/copyright Thu Dec  9 00:13:31 2010
@@ -1,29 +1,29 @@
-Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=59
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
 Maintainer: Tyler Riddle <triddle at gmail.com>
 Source: http://search.cpan.org/dist/Parse-MediaWikiDump/
 Name: Parse-MediaWikiDump
 
 Files: *
 Copyright: 2005, Tyler Riddle <triddle at gmail.com>
-License-Alias: Perl
 License: GPL-1+ or Artistic
 
 Files: debian/*
-Copyright: 2006, 2007, Roland Mas <lolando at debian.org>
- 2008, 2009, Ansgar Burchardt <ansgar at debian.org>
- 2008, 2009, gregor herrmann <gregoa at debian.org>
+Copyright: 2006-2007, Roland Mas <lolando at debian.org>
+ 2008-2009, Ansgar Burchardt <ansgar at 43-1.org>
+ 2008-2009, gregor herrmann <gregoa at debian.org>
  2008, Xavier Oswald <x.oswald at free.fr>
  2009, Jonathan Yu <jawnsy at cpan.org>
  2009, Xavier Oswald <xoswald at debian.org>
- 2010, Angel Abad <angelabad at gmail.com>
-License: Artistic or GPL-1+
+ 2010-2009, Angel Abad <angelabad at gmail.com>
+ 2010, Ansgar Burchardt <ansgar at debian.org>
+License: GPL-1+ or Artistic
 
 License: Artistic
  This program is free software; you can redistribute it and/or modify
  it under the terms of the Artistic License, which comes with Perl.
  .
- On Debian GNU/Linux systems, the complete text of the Artistic License
- can be found in `/usr/share/common-licenses/Artistic'
+ On Debian systems, the complete text of the Artistic License can be
+ found in `/usr/share/common-licenses/Artistic'.
 
 License: GPL-1+
  This program is free software; you can redistribute it and/or modify
@@ -31,5 +31,5 @@
  the Free Software Foundation; either version 1, or (at your option)
  any later version.
  .
- On Debian GNU/Linux systems, the complete text of the GNU General
- Public License can be found in `/usr/share/common-licenses/GPL'
+ On Debian systems, the complete text of version 1 of the General Public
+ License can be found in `/usr/share/common-licenses/GPL-1'.

Added: trunk/libparse-mediawikidump-perl/debian/source/format
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-mediawikidump-perl/debian/source/format?rev=65618&op=file
==============================================================================
--- trunk/libparse-mediawikidump-perl/debian/source/format (added)
+++ trunk/libparse-mediawikidump-perl/debian/source/format Thu Dec  9 00:13:31 2010
@@ -1,0 +1,2 @@
+3.0 (quilt)
+

Modified: trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump.pm?rev=65618&op=diff
==============================================================================
--- trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump.pm (original)
+++ trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump.pm Thu Dec  9 00:13:31 2010
@@ -1,5 +1,5 @@
 package Parse::MediaWikiDump;
-our $VERSION = '1.0.4';
+our $VERSION = '1.0.6';
 
 use Parse::MediaWikiDump::XML;
 use Parse::MediaWikiDump::Revisions;
@@ -202,9 +202,27 @@
 
 =head1 STATUS
 
-This software module is stable - there will not be any more API changes nor will there
-be additional features added. Bugs will be fixed but further development effort will be
-centered around a replacement for this module: MediaWiki::DumpFile
+This software is being RETIRED - MediaWiki::DumpFile is the official successor to
+Parse::MediaWikiDump and includes a compatibility library called MediaWiki::DumpFile::Compat
+that is 100% API compatible and is a near perfect standin for this module. It is faster
+in all instances where it counts and is actively maintained. Any undocumented deviation
+of MediaWiki::DumpFile::Compat from Parse::MediaWikiDump is considered a bug and will
+be fixed. 
+
+=head2 Migration
+
+Please begin using MediaWiki::DumpFile::Compat immediately as a replacement for this
+module. There will be no more features added to this software suite and bugs may not
+be fixed. Parse::MediaWikiDump::Pages used to check the version of the dump file it is
+parsing and reject versions it does not know about; this behavior has been removed. The
+parser will now continue in this instance and hope for the best. This way this software
+will continue to run into the future with out requiring further adjustment for as long
+as the upstream fileformat remains compatible. 
+
+In the event there is an unfixable bug or the dump file format changes in an incompatible 
+way the Parse::MediaWikiDump module as a whole wil be replaced with a stub that brings in
+MediaWiki::DumpFile::Compat - this may never need to happen but it is the plan for when it
+does. Migrating on your terms instead of being forced to if this happens is suggested. 
 
 =head1 USAGE
 

Modified: trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/Links.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/Links.pm?rev=65618&op=diff
==============================================================================
--- trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/Links.pm (original)
+++ trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/Links.pm Thu Dec  9 00:13:31 2010
@@ -1,6 +1,9 @@
 package Parse::MediaWikiDump::Links;
 
-our $VERSION = '1.0.3';
+#this needs to be fully replaced by MediaWiki::DumpFile::Compat
+#because it uses a much more correct SQL parser
+
+our $VERSION = '1.0.6';
 
 use strict;
 use warnings;
@@ -13,7 +16,8 @@
 	bless($self, $class);
 
 	$self->open($source);
-	$self->init;
+	#fix for bug 58196 
+	#$self->init;
 
 	return $self;
 }
@@ -122,6 +126,15 @@
     print 'from ', $link->from, ' to ', $link->namespace, ':', $link->to, "\n";
   }
 
+=head1 STATUS
+
+This software is being RETIRED - MediaWiki::DumpFile is the official successor to
+Parse::MediaWikiDump and includes a compatibility library called MediaWiki::DumpFile::Compat
+that is 100% API compatible and is a near perfect standin for this module. It is faster
+in all instances where it counts and is actively maintained. Any undocumented deviation
+of MediaWiki::DumpFile::Compat from Parse::MediaWikiDump is considered a bug and will
+be fixed. 
+
 =head1 METHODS
 
 =over 4

Modified: trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/Pages.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/Pages.pm?rev=65618&op=diff
==============================================================================
--- trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/Pages.pm (original)
+++ trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/Pages.pm Thu Dec  9 00:13:31 2010
@@ -106,6 +106,17 @@
     print "title '", $page->title, "' id ", $page->id, "\n";
   }
 
+=head1 STATUS
+
+=head1 STATUS
+
+This software is being RETIRED - MediaWiki::DumpFile is the official successor to
+Parse::MediaWikiDump and includes a compatibility library called MediaWiki::DumpFile::Compat
+that is 100% API compatible and is a near perfect standin for this module. It is faster
+in all instances where it counts and is actively maintained. Any undocumented deviation
+of MediaWiki::DumpFile::Compat from Parse::MediaWikiDump is considered a bug and will
+be fixed. 
+
 =head1 METHODS
 
 =over 4

Modified: trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/Revisions.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/Revisions.pm?rev=65618&op=diff
==============================================================================
--- trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/Revisions.pm (original)
+++ trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/Revisions.pm Thu Dec  9 00:13:31 2010
@@ -22,8 +22,23 @@
 
 #public methods
 sub new {
-	my ($class, $source) = @_;
+	my ($class, @args) = @_;
 	my $self = {};
+	my $source;
+	
+	if (scalar(@args) == 0) {
+		die "you must specify an argument to new()";
+	} elsif (scalar(@args) == 1) {
+		$source = $args[0];
+	} else {
+		my %conf = @args;
+		
+		if (! defined($conf{input})) {
+			die "input is a required parameter to new()";
+		}
+		
+		$source = $conf{input};
+	}
 	
 	bless($self, $class);
 
@@ -261,10 +276,12 @@
 sub handle_mediawiki_node {
 	my ($engine, $a, $element, $attrs) = @_;
 	my $version = $attrs->{version};
-	
-	if ($version ne '0.3' && $version ne '0.4') {
-			die "Only version 0.3 and 0.4 dump files are supported";
-	}
+
+	#checking versions of the dump file removed in 1.0.6 
+	#see the migration notes for why	
+#	if ($version ne '0.3' && $version ne '0.4') {
+#			die "Only version 0.3 and 0.4 dump files are supported";
+#	}
 	
 	$a->{version} = $version;
 }
@@ -308,6 +325,15 @@
   while(defined($page = $revisions->next)) {
     print "title '", $page->title, "' id ", $page->id, "\n";
   }
+
+=head1 STATUS
+
+This software is being RETIRED - MediaWiki::DumpFile is the official successor to
+Parse::MediaWikiDump and includes a compatibility library called MediaWiki::DumpFile::Compat
+that is 100% API compatible and is a near perfect standin for this module. It is faster
+in all instances where it counts and is actively maintained. Any undocumented deviation
+of MediaWiki::DumpFile::Compat from Parse::MediaWikiDump is considered a bug and will
+be fixed. 
 
 =head1 METHODS
 

Modified: trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/link.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/link.pm?rev=65618&op=diff
==============================================================================
--- trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/link.pm (original)
+++ trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/link.pm Thu Dec  9 00:13:31 2010
@@ -36,6 +36,15 @@
 
 This object is used to access the data associated with each individual link between articles in a MediaWiki instance. 
 
+=head1 STATUS
+
+This software is being RETIRED - MediaWiki::DumpFile is the official successor to
+Parse::MediaWikiDump and includes a compatibility library called MediaWiki::DumpFile::Compat
+that is 100% API compatible and is a near perfect standin for this module. It is faster
+in all instances where it counts and is actively maintained. Any undocumented deviation
+of MediaWiki::DumpFile::Compat from Parse::MediaWikiDump is considered a bug and will
+be fixed. 
+
 =head1 METHODS
 
 =over 4

Modified: trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/page.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/page.pm?rev=65618&op=diff
==============================================================================
--- trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/page.pm (original)
+++ trunk/libparse-mediawikidump-perl/lib/Parse/MediaWikiDump/page.pm Thu Dec  9 00:13:31 2010
@@ -149,6 +149,15 @@
     print "title '", $page->title, "' id ", $page->id, "\n";
   }
 
+=head1 STATUS
+
+This software is being RETIRED - MediaWiki::DumpFile is the official successor to
+Parse::MediaWikiDump and includes a compatibility library called MediaWiki::DumpFile::Compat
+that is 100% API compatible and is a near perfect standin for this module. It is faster
+in all instances where it counts and is actively maintained. Any undocumented deviation
+of MediaWiki::DumpFile::Compat from Parse::MediaWikiDump is considered a bug and will
+be fixed. 
+
 =head1 METHODS
 
 =over 4




More information about the Pkg-perl-cvs-commits mailing list