r44469 - in /branches/upstream/libmediawiki-api-perl/current: Changes META.yml Makefile.PL lib/MediaWiki/API.pm

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Sun Sep 20 22:41:17 UTC 2009


Author: jawnsy-guest
Date: Sun Sep 20 22:41:12 2009
New Revision: 44469

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=44469
Log:
[svn-upgrade] Integrating new upstream version, libmediawiki-api-perl (0.28)

Modified:
    branches/upstream/libmediawiki-api-perl/current/Changes
    branches/upstream/libmediawiki-api-perl/current/META.yml
    branches/upstream/libmediawiki-api-perl/current/Makefile.PL
    branches/upstream/libmediawiki-api-perl/current/lib/MediaWiki/API.pm

Modified: branches/upstream/libmediawiki-api-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmediawiki-api-perl/current/Changes?rev=44469&op=diff
==============================================================================
--- branches/upstream/libmediawiki-api-perl/current/Changes (original)
+++ branches/upstream/libmediawiki-api-perl/current/Changes Sun Sep 20 22:41:12 2009
@@ -1,4 +1,7 @@
 Revision history for MediaWiki-API
+
+0.28    2009-09-09
+        The skip_encoding option was ignored for the list function. Thanks to Estelle for reporting the problem.
 
 0.27    2009-05-14
         Updated README installation instructions including some notes for building debian packages and dependencies.

Modified: branches/upstream/libmediawiki-api-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmediawiki-api-perl/current/META.yml?rev=44469&op=diff
==============================================================================
--- branches/upstream/libmediawiki-api-perl/current/META.yml (original)
+++ branches/upstream/libmediawiki-api-perl/current/META.yml Sun Sep 20 22:41:12 2009
@@ -1,10 +1,10 @@
 --- #YAML:1.0
 name:                MediaWiki-API
-version:             0.27
+version:             0.28
 abstract:            Provides a Perl interface to the MediaWiki API (http://www.mediawiki.org/wiki/API)
 license:             GPL-3+
 author:              
-    - Jools Smyth <buzz at exotica.org.uk>
+    - Jools Wills <buzz at exotica.org.uk>
 generated_by:        ExtUtils::MakeMaker version 6.42
 distribution_type:   module
 requires:     

Modified: branches/upstream/libmediawiki-api-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmediawiki-api-perl/current/Makefile.PL?rev=44469&op=diff
==============================================================================
--- branches/upstream/libmediawiki-api-perl/current/Makefile.PL (original)
+++ branches/upstream/libmediawiki-api-perl/current/Makefile.PL Sun Sep 20 22:41:12 2009
@@ -4,7 +4,7 @@
 
 WriteMakefile(
     NAME                => 'MediaWiki::API',
-    AUTHOR              => 'Jools Smyth <buzz at exotica.org.uk>',
+    AUTHOR              => 'Jools Wills <buzz at exotica.org.uk>',
     VERSION_FROM        => 'lib/MediaWiki/API.pm',
     ABSTRACT_FROM       => 'lib/MediaWiki/API.pm',
     LICENSE             => 'GPL-3+',

Modified: branches/upstream/libmediawiki-api-perl/current/lib/MediaWiki/API.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmediawiki-api-perl/current/lib/MediaWiki/API.pm?rev=44469&op=diff
==============================================================================
--- branches/upstream/libmediawiki-api-perl/current/lib/MediaWiki/API.pm (original)
+++ branches/upstream/libmediawiki-api-perl/current/lib/MediaWiki/API.pm Sun Sep 20 22:41:12 2009
@@ -40,11 +40,11 @@
 
 =head1 VERSION
 
-Version 0.27
-
-=cut
-
-our $VERSION  = "0.27";
+Version 0.28
+
+=cut
+
+our $VERSION  = "0.28";
 
 =head1 SYNOPSIS
 
@@ -82,7 +82,7 @@
 
 =head1 FUNCTIONS
 
-=head2 MediaWiki::API->new( { $config_hash } )
+=head2 MediaWiki::API->new( $config_hashref )
 
 Returns a MediaWiki API object. You can pass a config as a hashref when calling new, or set the configuration later. When creating a new object, defaults for max lag and retries are set.
 
@@ -196,9 +196,9 @@
   return $self;
 }
 
-=head2 MediaWiki::API->login( $query_hash )
-
-Logs in to a MediaWiki. Parameters are those used by the MediaWiki API (http://www.mediawiki.org/wiki/API:Login). Returns a hash with some login details, or undef on login failure. Errors are stored in MediaWiki::API->{error}->{code} and MediaWiki::API->{error}->{details}.
+=head2 MediaWiki::API->login( $query_hashref )
+
+Logs in to a MediaWiki. Parameters are those used by the MediaWiki API (http://www.mediawiki.org/wiki/API:Login). Returns a hashref with some login details, or undef on login failure. Errors are stored in MediaWiki::API->{error}->{code} and MediaWiki::API->{error}->{details}.
 
   my $mw = MediaWiki::API->new( { api_url => 'http://en.wikipedia.org/w/api.php' }  );
 
@@ -223,7 +223,7 @@
   return $login;
 }
 
-=head2 MediaWiki::API->api( $query_hash, $options_hash )
+=head2 MediaWiki::API->api( $query_hashref, $options_hashref )
 
 Call the MediaWiki API interface. Parameters are passed as a hashref which are described on the MediaWiki API page (http://www.mediawiki.org/wiki/API). returns a hashref with the results of the call or undef on failure with the error code and details stored in MediaWiki::API->{error}->{code} and MediaWiki::API->{error}->{details}. MediaWiki::API uses the LWP::UserAgent module to send the http requests to the MediaWiki API. After any API call, the response object returned by LWP::UserAgent is available in $mw->{response};
 
@@ -385,7 +385,7 @@
   $self->{config}->{tokens} = undef;
 }
 
-=head2 MediaWiki::API->edit( $query_hash, $options_hash )
+=head2 MediaWiki::API->edit( $query_hashref, $options_hashref )
 
 A helper function for doing edits using the MediaWiki API. Parameters are passed as a hashref which are described on the MediaWiki API editing page (http://www.mediawiki.org/wiki/API:Changing_wiki_content). Note that you need $wgEnableWriteAPI = true in your LocalSettings.php to use these features.
 
@@ -459,7 +459,7 @@
 }
 
 
-=head2 MediaWiki::API->get_page( $params_hash )
+=head2 MediaWiki::API->get_page( $params_hashref )
 
 A helper function for getting the most recent page contents (and other metadata) for a page. It calls the lower level api function with a revisions query to get the most recent revision.
 
@@ -509,11 +509,11 @@
   return { 'pageid'=>$pageid, %{ $rev }, %{ $pageref } };
 }
 
-=head2 MediaWiki::API->list( $query_hash, $options_hash )
+=head2 MediaWiki::API->list( $query_hashref, $options_hashref )
 
 A helper function for getting lists using the MediaWiki API. Parameters are passed as a hashref which are described on the MediaWiki API editing page (http://www.mediawiki.org/wiki/API:Query_-_Lists).
 
-This function will return a reference to an array of hashes or undef on failure. It handles getting lists of data from the MediaWiki api, continuing the request with another connection if needed. The options_hash currently has three parameters:
+This function will return a reference to an array of hashes or undef on failure. It handles getting lists of data from the MediaWiki api, continuing the request with another connection if needed. The options_hashref currently has three parameters:
 
 =over
 
@@ -565,7 +565,7 @@
   my $continue = 0;
   my $count = 0;
   do {
-    return undef unless ( $ref = $self->api( $query ) );
+    return undef unless ( $ref = $self->api( $query, $options ) );
 
     # return (empty) arrayref if there are no results
     return \@results unless ( $ref->{query}->{$list} );
@@ -595,7 +595,7 @@
 
 }
 
-=head2 MediaWiki::API->upload( $params_hash )
+=head2 MediaWiki::API->upload( $params_hashref )
 
 A function to upload files to a MediaWiki. This function does not use the MediaWiki API currently as support for file uploading is not yet implemented. Instead it uploads using the Special:Upload page, and as such an additional configuration value is needed.
 
@@ -645,7 +645,7 @@
 
 }
 
-=head2 MediaWiki::API->download( $params_hash )
+=head2 MediaWiki::API->download( $params_hashref )
 
 A function to download images/files from a MediaWiki. A file url may need to be configured if the api returns a relative URL.
 




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