Skip to content

Commit 1365c36

Browse files
author
Mike.lifeguard
committed
Released 5.005004
1 parent a500f45 commit 1365c36

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

Build.PL

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ my %module_build_args = (
3333
"patch and bug report contributors"
3434
],
3535
"dist_name" => "MediaWiki-Bot",
36-
"dist_version" => "5.005003",
36+
"dist_version" => "5.005004",
3737
"license" => "gpl",
3838
"module_name" => "MediaWiki::Bot",
3939
"recommends" => {},

Changes

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Changelog for {{$dist->name}}
22

33
{{$NEXT}}
4+
5+
5.005004 2012-10-27
46
* More robust error-checking in some cases (GH#45, James DuPont)
57

68
5.005003 2012-09-14

Makefile.PL

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ my %WriteMakefileArgs = (
4040
"strict" => 0,
4141
"warnings" => 0
4242
},
43-
"VERSION" => "5.005003",
43+
"VERSION" => "5.005004",
4444
"test" => {
4545
"TESTS" => "t/*.t"
4646
}

README

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ NAME
33
MediaWiki wikis
44

55
VERSION
6-
version 5.005003
6+
version 5.005004
77

88
SYNOPSIS
99
use MediaWiki::Bot;
@@ -284,8 +284,8 @@ METHODS
284284
It returns raw data in the original format. You may simply spew it to a
285285
file, or process it directly with a library such as Imager.
286286

287+
use File::Slurp qw(write_file);
287288
my $img_data = $bot->get_image('File::Foo.jpg');
288-
use File::Slurp;
289289
write_file( 'Foo.jpg', {binmode => ':raw'}, \$img_data );
290290

291291
Images are scaled proportionally. (height/width) will remain constant,
@@ -922,12 +922,14 @@ METHODS
922922
}
923923

924924
contributions
925-
my @contribs = $bot->contributions($user, $namespace);
925+
my @contribs = $bot->contributions($user, $namespace, $options);
926926

927927
Returns an array of hashrefs of data for the user's contributions. $ns
928928
can be an arrayref of namespace numbers. $options can be specified as in
929929
"linksearch".
930930

931+
Specify an arrayref of users to get results for multiple users.
932+
931933
upload
932934
$bot->upload({ data => $file_contents, summary => 'uploading file' });
933935
$bot->upload({ file => $file_name, title => 'Target filename.png' });

README.mkdn

+6-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ MediaWiki::Bot - a high-level bot framework for interacting with MediaWiki wikis
44

55
# VERSION
66

7-
version 5.005003
7+
version 5.005004
88

99
# SYNOPSIS
1010

@@ -263,14 +263,14 @@ aliases.
263263
$buffer = $bot->get_image('File::Foo.jpg', {width=>256, height=>256});
264264

265265
Download an image from a wiki. This is derived from a similar function in
266-
MediaWiki::API. This one allows the image to be scaled down by passing a hashref
266+
[MediaWiki::API](http://search.cpan.org/perldoc?MediaWiki::API). This one allows the image to be scaled down by passing a hashref
267267
with height & width parameters.
268268

269269
It returns raw data in the original format. You may simply spew it to a file, or
270270
process it directly with a library such as [Imager](http://search.cpan.org/perldoc?Imager).
271271

272+
use File::Slurp qw(write_file);
272273
my $img_data = $bot->get_image('File::Foo.jpg');
273-
use File::Slurp;
274274
write_file( 'Foo.jpg', {binmode => ':raw'}, \$img_data );
275275

276276
Images are scaled proportionally. (height/width) will remain
@@ -910,11 +910,13 @@ callback if you _check_ that it is a top edit:
910910

911911
## contributions
912912

913-
my @contribs = $bot->contributions($user, $namespace);
913+
my @contribs = $bot->contributions($user, $namespace, $options);
914914

915915
Returns an array of hashrefs of data for the user's contributions. $ns can be an
916916
arrayref of namespace numbers. $options can be specified as in ["linksearch"](#linksearch).
917917

918+
Specify an arrayref of users to get results for multiple users.
919+
918920
## upload
919921

920922
$bot->upload({ data => $file_contents, summary => 'uploading file' });

0 commit comments

Comments
 (0)