From: Karen Etheridge Date: Fri, 23 Jun 2017 17:30:41 +0000 (-0700) Subject: dzilified this dist X-Git-Tag: v1.005~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Authentication-Store-Htpasswd.git;a=commitdiff_plain;h=d2924b3fa6240ed2e9eee8846679871b2bdd574e dzilified this dist - add META.json - remove use of Module::Install (5.26 compatibility, among other things) - move kwalitee, pod tests from t/ to xt/ --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7a91c1e --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +/.ackrc +/.build/ +!/.gitignore +/.latest +/Catalyst-Authentication-Store-Htpasswd-*/ +/Catalyst-Authentication-Store-Htpasswd-*.tar.gz diff --git a/.shipit b/.shipit deleted file mode 100644 index f528ef8..0000000 --- a/.shipit +++ /dev/null @@ -1,3 +0,0 @@ -steps = FindVersion, ChangeVersion, CheckChangeLog, DistTest, Commit, Tag, MakeDist, UploadCPAN -svk.tagpattern = //mirror/Catalyst-Authentication-Store-Htpasswd/1.000/tags/%v -CheckChangeLog.files = Changes diff --git a/Changes b/Changes index 544a53b..093ff25 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,9 @@ +Release history for Catalyst-Authentication-Store-Htpasswd + +{{$NEXT}} + - modernized the tooling, for 5.26 compatibility and to remove pod, + kwalitee tests from the user-facing test suite + 1.004 2016-05-11 12:49:02Z - Fix pod error for Hyperlinks - Fix pod nit from RT#51733 diff --git a/MANIFEST b/MANIFEST deleted file mode 100644 index 7621a27..0000000 --- a/MANIFEST +++ /dev/null @@ -1,28 +0,0 @@ -README -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/Win32.pm -inc/Module/Install/WriteAll.pm -lib/Catalyst/Authentication/Store/Htpasswd.pm -lib/Catalyst/Authentication/Store/Htpasswd/User.pm -Makefile.PL -MANIFEST This list of files -META.yml -t/00-load.t -t/backend.t -t/backend_md5.t -t/kwalitee.t -t/lib/script/testapp_server.pl -t/lib/script/testapp_test.pl -t/lib/TestApp.pm -t/lib/TestApp/Controller/Root.pm -t/lib/TestApp/htpasswd -t/live-test.t -t/pod-coverage.t -t/pod.t -Todo diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP deleted file mode 100644 index 1d10927..0000000 --- a/MANIFEST.SKIP +++ /dev/null @@ -1,37 +0,0 @@ -# Avoid version control files. -\bRCS\b -\bCVS\b -,v$ -\B\.svn\b - -# Avoid Makemaker generated and utility files. -\bMakefile$ -\bblib -\bMakeMaker-\d -\bpm_to_blib$ -\bblibdirs$ -^MANIFEST\.SKIP$ - -# Avoid Module::Build generated and utility files. -\bBuild$ -\b_build - -# Avoid temp and backup files. -~$ -\.tmp$ -\.old$ -\.bak$ -\#$ -\b\.# - -# Don't ship the test db -^t/var - -# Don't ship the last dist we built :) -\.tar\.gz$ - -# skip OS X finder file -\.DS_Store - -# Don't distribute the shipit config. -.shipit diff --git a/Makefile.PL b/Makefile.PL deleted file mode 100644 index 8fe806a..0000000 --- a/Makefile.PL +++ /dev/null @@ -1,16 +0,0 @@ -use strict; -use inc::Module::Install 0.87; - -name 'Catalyst-Authentication-Store-Htpasswd'; -all_from 'lib/Catalyst/Authentication/Store/Htpasswd.pm'; - -requires 'Catalyst::Plugin::Authentication' => '0.10006'; -requires 'Authen::Htpasswd' => '0.13'; -requires 'Class::Accessor::Fast'; -requires 'Crypt::PasswdMD5'; -build_requires 'Test::WWW::Mechanize::Catalyst'; -build_requires 'Test::use::ok'; - -resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Authentication-Store-Htpasswd/1.000/trunk/'; - -WriteAll; diff --git a/README b/README deleted file mode 100644 index 9cceafe..0000000 --- a/README +++ /dev/null @@ -1,73 +0,0 @@ -NAME - Catalyst::Authentication::Store::Htpasswd - Authen::Htpasswd based user - storage/authentication. - -SYNOPSIS - use Catalyst qw/ - Authentication - /; - - __PACKAGE__->config( - authentication => { - default_realm => 'test', - realms => { - test => { - credential => { - class => 'Password', - password_field => 'password', - password_type => 'self_check', - }, - store => { - class => 'Htpasswd', - file => 'htpasswd', - }, - }, - }, - }, - ); - - sub login : Global { - my ( $self, $c ) = @_; - - $c->authenticate({ username => $c->req->param("login"), password => $c->req->param("password") }); - } - -DESCRIPTION - This plugin uses "Authen::Htpasswd" to let your application use - ".htpasswd" files for it's authentication storage. - -METHODS - new - Simple constructor, dies if the htpassword file can't be found - - find_user - Looks up the user, and returns a - Catalyst::Authentication::Store::Htpasswd::User object. - - user_supports - Delegates to - Catalyst::Authentication::Store::Htpasswd::User-user_supports|Catalyst:: - Authentication::Store::Htpasswd::User#user_supports> - - from_session - Delegates the user lookup to " find_user " - -CONFIGURATION - file - The path to the htpasswd file, this is taken from the application root. - -AUTHORS - Yuval Kogman "nothingmuch@woobling.org" - - David Kamholz "dkamholz@cpan.org" - - Tomas Doran "bobtfish@bobtfish.net" - -SEE ALSO - Authen::Htpasswd. - -COPYRIGHT & LICENSE - Copyright (c) 2005-2008 the aforementioned authors. All rights - reserved. This program is free software; you can redistribute - it and/or modify it under the same terms as Perl itself. - diff --git a/dist.ini b/dist.ini new file mode 100644 index 0000000..5ea650d --- /dev/null +++ b/dist.ini @@ -0,0 +1,26 @@ +name = Catalyst-Authentication-Store-Htpasswd +author = יובל קוג'מן (Yuval Kogman) +license = Perl_5 +copyright_holder = יובל קוג'מן (Yuval Kogman) +copyright_year = 2005 + +[@Author::ETHER] +:version = 0.094 +authority = cpan:NUFFIN +server = catagits +Test::MinimumVersion.max_target_perl = 5.008003 +StaticInstall.dry_run = 0 ; we can safely set this here +-remove = Test::EOL ; TODO +-remove = Test::NoTabs ; TODO +-remove = Test::CleanNamespaces ; TODO +-remove = Test::PodSpelling ; TODO + +[Prereqs] +Catalyst::Plugin::Authentication = 0.10006 + +[Prereqs / TestRequires] +Crypt::PasswdMD5 = 0 ; TODO make optional - wrap with Test::Needs + +[MetaResources] +x_IRC = irc://irc.perl.org/#catalyst +x_MailingList = http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst diff --git a/lib/Catalyst/Authentication/Store/Htpasswd.pm b/lib/Catalyst/Authentication/Store/Htpasswd.pm index a086457..b07f522 100644 --- a/lib/Catalyst/Authentication/Store/Htpasswd.pm +++ b/lib/Catalyst/Authentication/Store/Htpasswd.pm @@ -1,11 +1,13 @@ #!/usr/bin/perl package Catalyst::Authentication::Store::Htpasswd; +# ABSTRACT: Authen::Htpasswd based user storage/authentication + use base qw/Class::Accessor::Fast/; use strict; use warnings; -use Authen::Htpasswd; +use Authen::Htpasswd 0.13; use Catalyst::Authentication::Store::Htpasswd::User; use Scalar::Util qw/blessed/; @@ -55,11 +57,6 @@ __END__ =pod -=head1 NAME - -Catalyst::Authentication::Store::Htpasswd - Authen::Htpasswd based -user storage/authentication. - =head1 SYNOPSIS use Catalyst qw/ @@ -149,24 +146,8 @@ Example: # Later in your code $c->authenticate({ email_address => $c->req->param("email"), password => $c->req->param("password") }); -=head1 AUTHORS - -Yuval Kogman C<> - -David Kamholz C<> - -Tomas Doran C<> - =head1 SEE ALSO L. -=head1 COPYRIGHT & LICENSE - - Copyright (c) 2005-2008 the aforementioned authors. All rights - reserved. This program is free software; you can redistribute - it and/or modify it under the same terms as Perl itself. - =cut - - diff --git a/lib/Catalyst/Authentication/Store/Htpasswd/User.pm b/lib/Catalyst/Authentication/Store/Htpasswd/User.pm index 01693d7..96655bc 100644 --- a/lib/Catalyst/Authentication/Store/Htpasswd/User.pm +++ b/lib/Catalyst/Authentication/Store/Htpasswd/User.pm @@ -1,6 +1,8 @@ #!/usr/bin/perl package Catalyst::Authentication::Store::Htpasswd::User; +# ABSTRACT: A user object representing an entry in an htpasswd file. + use base qw/Catalyst::Authentication::User Class::Accessor::Fast/; use strict; @@ -66,11 +68,6 @@ __END__ =pod -=head1 NAME - -Catalyst::Authentication::Store::Htpasswd::User - A user object -representing an entry in an htpasswd file. - =head1 DESCRIPTION This object wraps an L object. An instance of it will be returned @@ -111,20 +108,4 @@ Returns data about which featurs this user module supports. Returns the underlieing L object for this user -=head1 AUTHORS - -Yuval Kogman C - -David Kamholz C - -Tomas Doran C - -=head1 COPYRIGHT & LICENSE - - Copyright (c) 2005 the aforementioned authors. All rights - reserved. This program is free software; you can redistribute - it and/or modify it under the same terms as Perl itself. - =cut - - diff --git a/t/kwalitee.t b/t/kwalitee.t deleted file mode 100755 index c0653a1..0000000 --- a/t/kwalitee.t +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env perl -use Test::More; - -eval { require Test::Kwalitee; Test::Kwalitee->import() }; - -plan( skip_all => 'Test::Kwalitee not installed; skipping' ) if $@; diff --git a/t/pod-coverage.t b/t/pod-coverage.t deleted file mode 100644 index 703f91d..0000000 --- a/t/pod-coverage.t +++ /dev/null @@ -1,6 +0,0 @@ -#!perl -T - -use Test::More; -eval "use Test::Pod::Coverage 1.04"; -plan skip_all => "Test::Pod::Coverage 1.04 required for testing POD coverage" if $@; -all_pod_coverage_ok(); diff --git a/t/pod.t b/t/pod.t deleted file mode 100644 index 976d7cd..0000000 --- a/t/pod.t +++ /dev/null @@ -1,6 +0,0 @@ -#!perl -T - -use Test::More; -eval "use Test::Pod 1.14"; -plan skip_all => "Test::Pod 1.14 required for testing POD" if $@; -all_pod_files_ok();