Browse files

Hacked up M::I::PrePAN

  • Loading branch information...
1 parent cdf8daa commit d705bfc809aed82996877fc3fd84c15203b626e3 @kentaro committed Nov 9, 2011
Showing with 74 additions and 106 deletions.
  1. +0 −32 Build.PL
  2. +17 −1 MANIFEST
  3. +3 −68 MANIFEST.SKIP
  4. +19 −0 Makefile.PL
  5. +26 −5 lib/Module/Install/PrePAN.pm
  6. +9 −0 t/01_basic.t
View
32 Build.PL
@@ -1,32 +0,0 @@
-use strict;
-use warnings;
-use Module::Build;
-
-my $build = Module::Build->new(
- license => 'perl',
- dynamic_config => 0,
-
- build_requires => {
- 'Test::More' => '0.98',
- 'Test::Requires' => 0,
- },
- configure_requires => { 'Module::Build' => '0.38' },
- requires => {
- # 'Exporter' => '0',
- 'parent' => '0',
- # 'Plack' => '0.9949',
- },
-
- no_index => { 'directory' => [ 'inc' ] },
- name => 'Module-Install-PrePAN',
- module_name => 'Module::Install::PrePAN',
-
- # script_files => [''],
-
- test_files => (-d '.git' || $ENV{RELEASE_TESTING}) ? 't/ xt/' : 't/',
- recursive_test_files => 1,
-
- create_readme => 1,
- create_license => 1,
-);
-$build->create_build_script();
View
18 MANIFEST
@@ -1,8 +1,24 @@
-Build.PL
+.gitignore
Changes
+inc/Module/Install.pm
+inc/Module/Install/Base.pm
+inc/Module/Install/Can.pm
+inc/Module/Install/Fetch.pm
+inc/Module/Install/Makefile.pm
+inc/Module/Install/Metadata.pm
+inc/Module/Install/PrePAN.pm
+inc/Module/Install/ReadmeFromPod.pm
+inc/Module/Install/Repository.pm
+inc/Module/Install/Win32.pm
+inc/Module/Install/WriteAll.pm
lib/Module/Install/PrePAN.pm
+Makefile.PL
MANIFEST This list of files
+META.yml
+README
+README.pod
t/00_compile.t
+t/01_basic.t
xt/01_podspell.t
xt/02_perlcritic.t
xt/03_pod.t
View
71 MANIFEST.SKIP
@@ -1,62 +1,3 @@
-
-#!start included /Users/antipop/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1/ExtUtils/MANIFEST.SKIP
-# Avoid version control files.
-\bRCS\b
-\bCVS\b
-\bSCCS\b
-,v$
-\B\.svn\b
-\B\.git\b
-\B\.gitignore\b
-\b_darcs\b
-\B\.cvsignore$
-
-# Avoid VMS specific MakeMaker generated files
-\bDescrip.MMS$
-\bDESCRIP.MMS$
-\bdescrip.mms$
-
-# Avoid Makemaker generated and utility files.
-\bMANIFEST\.bak
-\bMakefile$
-\bblib/
-\bMakeMaker-\d
-\bpm_to_blib\.ts$
-\bpm_to_blib$
-\bblibdirs\.ts$ # 6.18 through 6.25 generated this
-
-# Avoid Module::Build generated and utility files.
-\bBuild$
-\b_build/
-\bBuild.bat$
-\bBuild.COM$
-\bBUILD.COM$
-\bbuild.com$
-
-# Avoid temp and backup files.
-~$
-\.old$
-\#$
-\b\.#
-\.bak$
-\.tmp$
-\.#
-\.rej$
-
-# Avoid OS-specific files/dirs
-# Mac OSX metadata
-\B\.DS_Store
-# Mac OSX SMB mount metadata files
-\B\._
-
-# Avoid Devel::Cover and Devel::CoverX::Covered files.
-\bcover_db\b
-\bcovered\b
-
-# Avoid MYMETA files
-^MYMETA\.
-#!end included /Users/antipop/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1/ExtUtils/MANIFEST.SKIP
-
^\.git/
\bRCS\b
\bCVS\b
@@ -68,12 +9,13 @@
^blib/
^pm_to_blib
^MakeMaker-\d
-^[^/]+\.gz$
+\.gz$
\.cvsignore
^t/perlcritic
^tools/
\.svn/
^[^/]+\.yaml$
+^[^/]+\.pl$
^\.shipit$
\.sw[po]$
^Build$
@@ -82,12 +24,5 @@
cover_db
nytprof
perltidy.ERR$
-^README.pod$
-^README.mkdn$
^tags$
-^Module-Install-PrePAN-
-^MYMETA\.
-\b_build
-^MANIFEST\.SKIP
-\b\.gitignore
-\.bak$
+MYMETA
View
19 Makefile.PL
@@ -0,0 +1,19 @@
+sub author_tests {}
+sub readme_from {}
+sub auto_set_repository {}
+
+use lib 'lib';
+use inc::Module::Install;
+
+name 'Module-Install-PrePAN';
+all_from 'lib/Module/Install/PrePAN.pm';
+readme_from 'lib/Module/Install/PrePAN.pm';
+
+prepan_url 'http://prepan.org/module/3Yz7PYrBJG';
+auto_set_repository;
+
+tests 't/*.t';
+test_requires 'Test::More' => 0.96; # done_testing, subtest
+author_tests('xt');
+
+WriteAll;
View
31 lib/Module/Install/PrePAN.pm
@@ -1,34 +1,55 @@
package Module::Install::PrePAN;
+use 5.008001;
use strict;
use warnings;
-use 5.008008;
+use Carp ();
+
our $VERSION = '0.01';
+use base qw(Module::Install::Base);
+
+sub prepan_url {
+ my ($self, $url) = @_;
+ Carp::croak 'missing parameter: $url' if !defined $url;
+ $self->resources(PrePAN => $url);
+}
+!!1;
-1;
__END__
=encoding utf8
=head1 NAME
-Module::Install::PrePAN -
+Module::Install::PrePAN - Designate a URL of PrePAN page of a module
=head1 SYNOPSIS
- use Module::Install::PrePAN;
+ # Makefile.PL
+ prepan_url 'http://prepan.org/module/3Yz7PYrBJG';
=head1 DESCRIPTION
-Module::Install::PrePAN is
+Module::Install::PrePAN is a Module::Install extension to designate a
+URL of PrePan page where you requested reviews for your module.
=head1 AUTHOR
Kentaro Kuribayashi E<lt>kentarok@gmail.comE<gt>
=head1 SEE ALSO
+=over 4
+
+=item * L<Module::Install>
+
+=item * PrePAN
+
+L<http://prepan.org/>
+
+=back
+
=head1 LICENSE
Copyright (C) Kentaro Kuribayashi
View
9 t/01_basic.t
@@ -0,0 +1,9 @@
+use strict;
+use warnings;
+use Test::More;
+
+subtest 'pass' => sub {
+ pass;
+};
+
+done_testing;

0 comments on commit d705bfc

Please sign in to comment.