Permalink
Browse files

update git/dzil stuff

  • Loading branch information...
1 parent 1368086 commit 7674926a3bf4f740d7720aa10eb6ebd4fe114765 Mike.lifeguard committed Aug 13, 2011
Showing with 104 additions and 30 deletions.
  1. +2 −0 .gitignore
  2. +57 −0 Build.PL
  3. +8 −3 Makefile.PL
  4. +32 −1 README
  5. +3 −26 dist.ini
  6. +2 −0 perlcritic.rc
View
@@ -0,0 +1,2 @@
+.build
+MediaWiki-Bot*
View
@@ -0,0 +1,57 @@
+
+use strict;
+use warnings;
+
+use Module::Build 0.3601;
+
+
+my %module_build_args = (
+ 'build_requires' => {
+ 'File::Find' => '0',
+ 'File::Temp' => '0',
+ 'Module::Build' => '0.3601',
+ 'Test::More' => '0.96',
+ 'Test::Warn' => '0',
+ 'utf8' => '0'
+ },
+ 'configure_requires' => {
+ 'ExtUtils::MakeMaker' => '6.30',
+ 'Module::Build' => '0.3601'
+ },
+ 'dist_abstract' => 'a high-level bot framework for interacting with MediaWiki wikis',
+ 'dist_author' => [
+ 'Dan Collins <dcollins@cpan.org>',
+ 'Mike.lifeguard <lifeguard@cpan.org>',
+ 'Alex Rowe <alex.d.rowe@gmail.com>',
+ 'Oleg Alexandrov <oleg.alexandrov@gmail.com>',
+ 'jmax.code <jmax.code@gmail.com>',
+ 'Stefan Petrea <stefan.petrea@gmail.com>',
+ 'kc2aei <kc2aei@gmail.com>',
+ 'bosborne@alum.mit.edu',
+ 'Brian Obio <brianobio@gmail.com>',
+ 'patch and bug report contributors'
+ ],
+ 'dist_name' => 'MediaWiki-Bot',
+ 'dist_version' => '0.001',
+ 'license' => 'gpl',
+ 'module_name' => 'MediaWiki::Bot',
+ 'recommends' => {},
+ 'recursive_test_files' => 1,
+ 'requires' => {
+ 'Carp' => '0',
+ 'Digest::MD5' => '2.39',
+ 'Encode' => '0',
+ 'File::Basename' => '0',
+ 'HTML::Entities' => '3.28',
+ 'LWP::Protocol::https' => '0.57',
+ 'MediaWiki::API' => '0.36',
+ 'Module::Pluggable' => '0',
+ 'perl' => '5.008'
+ },
+ 'script_files' => []
+);
+
+
+my $build = Module::Build->new(%module_build_args);
+
+$build->create_build_script;
View
@@ -12,12 +12,16 @@ my %WriteMakefileArgs = (
'ABSTRACT' => 'a high-level bot framework for interacting with MediaWiki wikis',
'AUTHOR' => 'Dan Collins <dcollins@cpan.org>, Mike.lifeguard <lifeguard@cpan.org>, Alex Rowe <alex.d.rowe@gmail.com>, Oleg Alexandrov <oleg.alexandrov@gmail.com>, jmax.code <jmax.code@gmail.com>, Stefan Petrea <stefan.petrea@gmail.com>, kc2aei <kc2aei@gmail.com>, bosborne@alum.mit.edu, Brian Obio <brianobio@gmail.com>, patch and bug report contributors',
'BUILD_REQUIRES' => {
+ 'File::Find' => '0',
+ 'File::Temp' => '0',
+ 'Module::Build' => '0.3601',
'Test::More' => '0.96',
'Test::Warn' => '0',
'utf8' => '0'
},
'CONFIGURE_REQUIRES' => {
- 'ExtUtils::MakeMaker' => '6.30'
+ 'ExtUtils::MakeMaker' => '6.30',
+ 'Module::Build' => '0.3601'
},
'DISTNAME' => 'MediaWiki-Bot',
'EXE_FILES' => [],
@@ -27,12 +31,13 @@ my %WriteMakefileArgs = (
'Carp' => '0',
'Digest::MD5' => '2.39',
'Encode' => '0',
+ 'File::Basename' => '0',
'HTML::Entities' => '3.28',
'LWP::Protocol::https' => '0.57',
- 'MediaWiki::API' => '0.35',
+ 'MediaWiki::API' => '0.36',
'Module::Pluggable' => '0'
},
- 'VERSION' => '3.4.0',
+ 'VERSION' => '0.001',
'test' => {
'TESTS' => 't/*.t'
}
View
@@ -3,7 +3,7 @@ NAME
MediaWiki wikis
VERSION
- version 3.4.0
+ version 0.001
SYNOPSIS
use MediaWiki::Bot;
@@ -901,6 +901,13 @@ METHODS
can be an arrayref of namespace numbers. $options can be specified as in
"linksearch".
+ upload
+ $bot->upload({ data => $file_contents, summary => 'uploading file' });
+ $bot->upload({ file => $file_name, title => 'Target filename.png' });
+
+ Upload a file to the wiki. Specify the file by either giving the
+ filename, which will be read in, or by giving the data directly.
+
Options hashref
This is passed through to the lower-level interface MediaWiki::API, and
is fully documented there.
@@ -947,6 +954,30 @@ ERROR HANDLING
error data is stored in "$bot->{error}->{code}" and
"$bot->{error}->{details}".
+AVAILABILITY
+ The project homepage is <https://metacpan.org/module/MediaWiki::Bot>.
+
+ The latest version of this module is available from the Comprehensive
+ Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a
+ CPAN site near you, or see <http://search.cpan.org/dist/MediaWiki-Bot/>.
+
+ The development version lives at
+ <http://github.com/mikelifeguard/MediaWiki-Bot> and may be cloned from
+ <git://github.com/mikelifeguard/MediaWiki-Bot.git>. Instead of sending
+ patches, please fork this project using the standard git and github
+ infrastructure.
+
+SOURCE
+ The development version is on github at
+ <http://github.com/mikelifeguard/MediaWiki-Bot> and may be cloned from
+ <git://github.com/mikelifeguard/MediaWiki-Bot.git>
+
+BUGS AND LIMITATIONS
+ No bugs have been reported.
+
+ Please report any bugs or feature requests through the web interface at
+ <https://github.com/mikelifeguard/MediaWiki-Bot/issues>.
+
AUTHORS
* Dan Collins <dcollins@cpan.org>
View
@@ -13,31 +13,8 @@ author = bosborne@alum.mit.edu
author = Brian Obio <brianobio@gmail.com> ; Should we include people with no commits?
author = patch and bug report contributors
-[@Filter]
--bundle = @Basic
--remove = Readme
--remove = ExtraTests
-[Bugtracker]
-web = http://code.google.com/p/perlwikipedia/issues/list
-[PodWeaver]
-[ReadmeFromPod]
-[CopyReadmeFromBuild]
-[PruneFiles]
-filenames = Makefile.PL
-[CopyMakefilePLFromBuild]
-[Git::NextVersion]
-[NextRelease]
-format = %-9v %{yyyy-MM-dd}d
-[OurPkgVersion]
-[AutoPrereqs]
[Prereqs]
LWP::Protocol::https = 0.57 ; Needed for secure login/edits/etc
-[MinimumPerl]
-[InstallGuide]
-[Git::Commit]
-allow_dirty = Makefile.PL
-allow_dirty = README
-allow_dirty = Changes
-[Git::Tag]
-[@TestingMania]
-disable = HasVersionTests, CompileTests, PodCoverageTests
+
+[@Author::DOHERTY]
+critic_config = perlcritic.rc
View
@@ -0,0 +1,2 @@
+# until we start using exceptions
+exclude = ProhibitExplicitReturnUndef

0 comments on commit 7674926

Please sign in to comment.