Permalink
Browse files

Dzilify

  • Loading branch information...
rafl committed Jul 19, 2010
1 parent bed9459 commit fe21cfe00ceb8b944a89c7dd773da913617341fa
Showing with 43 additions and 116 deletions.
  1. +0 −10 MANIFEST.SKIP
  2. +0 −37 Makefile.PL
  3. +28 −0 dist.ini
  4. +6 −60 lib/MooseX/Method/Signatures.pm
  5. +1 −1 lib/MooseX/Method/Signatures/Meta/Method.pm
  6. +2 −2 lib/MooseX/Method/Signatures/Types.pm
  7. +1 −1 t/basic.t
  8. +1 −1 t/errors.t
  9. +4 −4 t/signatures.t
View
@@ -1,10 +0,0 @@
-^\.
-\.bak$
-\.swp$
-^Makefile$
-^Makefile.old$
-^MooseX-Method-Signatures-
-^cover_db\b
-blib\b
-^issues\b
-^Debian_CPANTS\.txt$
View
@@ -1,37 +0,0 @@
-use strict;
-use warnings;
-use inc::Module::Install 0.77;
-
-name 'MooseX-Method-Signatures';
-all_from 'lib/MooseX/Method/Signatures.pm';
-
-requires 'aliased';
-requires 'B::Hooks::EndOfScope' => '0.07';
-requires 'Context::Preserve';
-requires 'Parse::Method::Signatures' => '1.003011';
-requires 'Devel::Declare' => '0.005011';
-requires 'Moose::Util::TypeConstraints';
-requires 'Moose' => '0.89';
-requires 'MooseX::LazyRequire' => '0.04';
-requires 'MooseX::Meta::TypeConstraint::ForceCoercion';
-requires 'MooseX::Types' => '0.19';
-requires 'MooseX::Types::Moose';
-requires 'MooseX::Types::Structured' => '0.20';
-requires 'namespace::autoclean';
-requires 'Sub::Name';
-requires 'Task::Weaken';
-requires 'Text::Balanced';
-
-test_requires 'Test::Exception';
-test_requires 'Test::More' => 0.89;
-
-repository 'git://github.com/rafl/moosex-method-signatures.git';
-bugtracker 'http://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Method-Signatures';
-
-extra_tests();
-
-if ($Module::Install::AUTHOR) {
- system('pod2text lib/MooseX/Method/Signatures.pm > README');
-}
-
-WriteAll;
View
@@ -0,0 +1,28 @@
+name = MooseX-Method-Signatures
+version = 0.34
+author = Florian Ragwitz <rafl@debian.org>
+author = Ash Berlin <ash@cpan.org>
+author = Cory Watson <gphat@cpan.org>
+author = Daniel Ruoso <daniel@ruoso.com>
+author = Dave Rolsky <autarch@urth.org>
+author = Hakim Cassimally <hakim.cassimally@gmail.com>
+author = Jonathan Scott Duff <duff@pobox.com>
+author = Justin Hunter <justin.d.hunter@gmail.com>
+author = Kent Fredric <kentfredric@gmail.com>
+author = Maik Hentsche <maik.hentsche@amd.com>
+author = Matt Kraai <kraai@ftbfs.org>
+author = Rhesa Rozendaal <rhesa@cpan.org>
+author = Ricardo SIGNES <rjbs@cpan.org>
+author = Steffen Schwigon <ss5@renormalist.net>
+author = Yanick Champoux <yanick@babyl.dyndns.org>
+author = Nicholas Perez <nperez@cpan.org>
+license = Perl_5
+copyright_holder = Florian Ragwitz
+
+[@FLORA]
+dist = MooseX-Method-Signatures
+repository_at = github
+disable_pod_coverage_tests = 1
+
+[Prereq]
+Task::Weaken = 0
@@ -2,13 +2,14 @@ use strict;
use warnings;
package MooseX::Method::Signatures;
+# ABSTRACT: Method declarations with type constraints and no source filter
-use Moose;
-use Devel::Declare ();
-use B::Hooks::EndOfScope;
+use Moose 0.89;
+use Devel::Declare 0.005011 ();
+use B::Hooks::EndOfScope 0.07;
use Moose::Meta::Class;
-use MooseX::LazyRequire;
-use MooseX::Types::Moose qw/Str Bool CodeRef/;
+use MooseX::LazyRequire 0.04;
+use MooseX::Types::Moose 0.19 qw/Str Bool CodeRef/;
use Text::Balanced qw/extract_quotelike/;
use MooseX::Method::Signatures::Meta::Method;
use MooseX::Method::Signatures::Types qw/PrototypeInjections/;
@@ -19,8 +20,6 @@ use aliased 'Devel::Declare::Context::Simple', 'ContextSimple';
use namespace::autoclean;
-our $VERSION = '0.34';
-
has package => (
is => 'ro',
isa => Str,
@@ -343,11 +342,6 @@ __PACKAGE__->meta->make_immutable;
1;
-__END__
-=head1 NAME
-
-MooseX::Method::Signatures - Method declarations with type constraints and no source filter
-
=head1 SYNOPSIS
package Foo;
@@ -614,52 +608,4 @@ L<Parse::Method::Signatures>
L<Moose>
-=head1 AUTHOR
-
-Florian Ragwitz E<lt>rafl@debian.orgE<gt>
-
-With contributions from:
-
-=over 4
-
-=item Ash Berlin E<lt>ash@cpan.orgE<gt>
-
-=item Cory Watson E<lt>gphat@cpan.orgE<gt>
-
-=item Daniel Ruoso E<lt>daniel@ruoso.comE<gt>
-
-=item Hakim Cassimally E<lt>hakim.cassimally@gmail.comE<gt>
-
-=item Jonathan Scott Duff E<lt>duff@pobox.comE<gt>
-
-=item Justin Hunter E<lt>justin.d.hunter@gmail.comE<gt>
-
-=item Kent Fredric E<lt>kentfredric@gmail.comE<gt>
-
-=item Maik Hentsche E<lt>maik.hentsche@amd.comE<gt>
-
-=item Matt Kraai E<lt>kraai@ftbfs.orgE<gt>
-
-=item Rhesa Rozendaal E<lt>rhesa@cpan.orgE<gt>
-
-=item Ricardo SIGNES E<lt>rjbs@cpan.orgE<gt>
-
-=item Steffen Schwigon E<lt>ss5@renormalist.netE<gt>
-
-=item Yanick Champoux E<lt>yanick@babyl.dyndns.orgE<gt>
-
-=item Nicholas Perez E<lt>nperez@cpan.orgE<gt>
-
-=back
-
-=head1 COPYRIGHT AND LICENSE
-
-Copyright (c) 2008, 2009 Florian Ragwitz
-
-Code based on the tests for L<Devel::Declare>.
-
-Documentation based on L<MooseX::Method> and L<Method::Signatures>.
-
-Licensed under the same terms as Perl itself.
-
=cut
@@ -3,7 +3,7 @@ package MooseX::Method::Signatures::Meta::Method;
use Moose;
use Carp qw/cluck/;
use Context::Preserve;
-use Parse::Method::Signatures;
+use Parse::Method::Signatures 1.003011;
use Parse::Method::Signatures::TypeConstraint;
use Scalar::Util qw/weaken/;
use Moose::Util qw/does_role/;
@@ -1,8 +1,8 @@
package MooseX::Method::Signatures::Types;
-use MooseX::Types -declare => [qw/ Injections PrototypeInjections Params /];
+use MooseX::Types 0.19 -declare => [qw/ Injections PrototypeInjections Params /];
use MooseX::Types::Moose qw/Str ArrayRef/;
-use MooseX::Types::Structured qw/Dict/;
+use MooseX::Types::Structured 0.20 qw/Dict/;
use Parse::Method::Signatures::Types qw/Param/;
subtype Injections,
View
@@ -1,6 +1,6 @@
use strict;
use warnings;
-use Test::More;
+use Test::More 0.89;
use Test::Exception;
use FindBin;
View
@@ -8,7 +8,7 @@ use lib "$FindBin::Bin/lib";
eval "use InvalidCase01;";
ok($@, "Got an error");
-like($@,
+like($@,
qr/^Global symbol "\$op" requires explicit package name at .*?\bInvalidCase01.pm line 8\b/,
"Sane error message for syntax error");
View
@@ -159,12 +159,12 @@ for my $test (@signatures) {
__DATA__
{
- package %s;
- use Moose;
+ package %s;
+ use Moose;
use MooseX::Method::Signatures;
use Moose::Util::TypeConstraints;
- method alpha ( %s ){
- return %s;
+ method alpha ( %s ){
+ return %s;
};
}

0 comments on commit fe21cfe

Please sign in to comment.