From: Karen Etheridge Date: Sat, 14 Sep 2013 20:27:10 +0000 (-0700) Subject: convert to Dist::Zilla X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Types-Common.git;a=commitdiff_plain;h=3ebb788b98575c2a4e0187c61145bf291f23db1b convert to Dist::Zilla --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..50cbae4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/.build/ +!.gitignore +/MooseX-Types-Common-* diff --git a/Changes b/Changes index 11fdde2..1ae50ca 100644 --- a/Changes +++ b/Changes @@ -1,4 +1,7 @@ -Revision history for MooseX-Types-Common +Revision history for {{$dist->name}} + +{{$NEXT}} + - converted to Dist::Zilla 0.001008 2012-06-14 11:29:50 PDT - Upper* and Lower* string types now accept non-alphabetic characters (Karen diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e69de29 diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP deleted file mode 100644 index 5b18801..0000000 --- a/MANIFEST.SKIP +++ /dev/null @@ -1,31 +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\.# -\.DS_Store$ -\.\# - -# No tarballs! -\.gz$ -\.git.* \ No newline at end of file diff --git a/Makefile.PL b/Makefile.PL deleted file mode 100644 index 9edc336..0000000 --- a/Makefile.PL +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/perl -w -use strict; -use inc::Module::Install; - -name 'MooseX-Types-Common'; -license 'perl'; -all_from 'lib/MooseX/Types/Common.pm'; - -# prereqs -requires 'Moose' => '0.39'; -requires 'MooseX::Types' => '0.04'; - -# things the tests need -test_requires 'Test::More' => '0.62'; -test_requires 'Test::Fatal'; - -resources 'IRC' => 'irc://irc.perl.org/#moose'; -resources 'license' => 'http://dev.perl.org/licenses/'; -resources 'repository' => 'git://git.moose.perl.org/MooseX-Types-Common.git'; - -WriteAll; diff --git a/README b/README deleted file mode 100644 index f8ceb71..0000000 --- a/README +++ /dev/null @@ -1,49 +0,0 @@ -NAME - MooseX::Types::Common - A library of commonly used type constraints - -SYNOPSIS - use MooseX::Types::Common::String qw/SimpleStr/; - has short_str => (is => 'rw', isa => SimpleStr); - - ... - #this will fail - $object->short_str("string\nwith\nbreaks"); - - - - use MooseX::Types::Common::Numeric qw/PositiveInt/; - has count => (is => 'rw', isa => PositiveInt); - - ... - #this will fail - $object->count(-33); - -DESCRIPTION - A set of commonly-used type constraints that do not ship with Moose by - default. - -SEE ALSO - * MooseX::Types::Common::String - - * MooseX::Types::Common::Numeric - - * MooseX::Types - - * Moose::Util::TypeConstraints - -AUTHORS - This distribution was extracted from the Reaction code base by Guillermo - Roditi (groditi). - - The original authors of this library are: - - * Matt S. Trout - - * K. J. Cheetham - - * Guillermo Roditi - -LICENSE - This library is free software, you can redistribute it and/or modify it - under the same terms as Perl itself. - diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/dist.ini b/dist.ini new file mode 100644 index 0000000..adeef6d --- /dev/null +++ b/dist.ini @@ -0,0 +1,13 @@ +name = MooseX-Types-Common +author = Matt S Trout - mst (at) shadowcatsystems.co.uk (L) +author = K. James Cheetham +author = Guillermo Roditi +license = Perl_5 +copyright_holder = Matt S Trout - mst (at) shadowcatsystems.co.uk (L) + +[@Author::ETHER] +:version = 0.021 +server = gitmo +Authority.authority = cpan:GRODITI + +[ContributorsFromGit] diff --git a/lib/MooseX/Types/Common.pm b/lib/MooseX/Types/Common.pm index 40a7851..92f894d 100644 --- a/lib/MooseX/Types/Common.pm +++ b/lib/MooseX/Types/Common.pm @@ -1,11 +1,10 @@ package MooseX::Types::Common; +# ABSTRACT: A library of commonly used type constraints use strict; use warnings; use Carp qw/cluck/; -our $VERSION = '0.001008'; - sub import { my $package = shift; return unless @_; @@ -15,10 +14,9 @@ sub import { } 1; +__END__ -=head1 NAME - -MooseX::Types::Common - A library of commonly used type constraints +=pod =head1 SYNOPSIS @@ -30,7 +28,6 @@ MooseX::Types::Common - A library of commonly used type constraints $object->short_str("string\nwith\nbreaks"); - use MooseX::Types::Common::Numeric qw/PositiveInt/; has count => (is => 'rw', isa => PositiveInt); @@ -56,26 +53,9 @@ A set of commonly-used type constraints that do not ship with Moose by default. =back -=head1 AUTHORS +=head1 ORIGIN This distribution was extracted from the L code base by Guillermo Roditi (groditi). -The original authors of this library are: - -=over 4 - -=item * Matt S. Trout - -=item * K. J. Cheetham - -=item * Guillermo Roditi - -=back - -=head1 LICENSE - -This library is free software, you can redistribute it and/or modify -it under the same terms as Perl itself. - =cut diff --git a/lib/MooseX/Types/Common/Numeric.pm b/lib/MooseX/Types/Common/Numeric.pm index c195a68..ae3e57e 100644 --- a/lib/MooseX/Types/Common/Numeric.pm +++ b/lib/MooseX/Types/Common/Numeric.pm @@ -1,10 +1,9 @@ package MooseX::Types::Common::Numeric; +# ABSTRACT: Commonly used numeric types use strict; use warnings; -our $VERSION = '0.001008'; - use MooseX::Types -declare => [ qw(PositiveNum PositiveOrZeroNum PositiveInt PositiveOrZeroInt @@ -125,11 +124,9 @@ subtype SingleDigit, 1; -__END__; - -=head1 NAME +__END__ -MooseX::Types::Common::Numeric - Commonly used numeric types +=pod =head1 SYNOPSIS @@ -175,8 +172,4 @@ default. =back -=head1 AUTHORS - -Please see:: L - =cut diff --git a/lib/MooseX/Types/Common/String.pm b/lib/MooseX/Types/Common/String.pm index 0cee6f9..6d34354 100644 --- a/lib/MooseX/Types/Common/String.pm +++ b/lib/MooseX/Types/Common/String.pm @@ -1,10 +1,9 @@ package MooseX::Types::Common::String; +# ABSTRACT: Commonly used string types use strict; use warnings; -our $VERSION = '0.001008'; - use MooseX::Types -declare => [ qw(SimpleStr NonEmptySimpleStr @@ -157,10 +156,9 @@ coerce UpperCaseSimpleStr, via { uc }; 1; +__END__ -=head1 NAME - -MooseX::Types::Common::String - Commonly used string types +=pod =head1 SYNOPSIS @@ -231,8 +229,4 @@ in it ( e.g credit card number 4111-1111-1111-1111 ). =back -=head1 AUTHORS - -Please see:: L - =cut diff --git a/weaver.ini b/weaver.ini new file mode 100644 index 0000000..7592644 --- /dev/null +++ b/weaver.ini @@ -0,0 +1,10 @@ +[@Default] + +[-Transformer] +transformer = List + +[-StopWords] + +[-Encoding] + +[Contributors]