r42342 - in /branches/upstream/libmoosex-types-perl/current: ./ lib/MooseX/ lib/MooseX/Types/ t/
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Fri Aug 21 19:48:36 UTC 2009
Author: jawnsy-guest
Date: Fri Aug 21 19:48:30 2009
New Revision: 42342
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=42342
Log:
[svn-upgrade] Integrating new upstream version, libmoosex-types-perl (0.17)
Modified:
branches/upstream/libmoosex-types-perl/current/Changes
branches/upstream/libmoosex-types-perl/current/META.yml
branches/upstream/libmoosex-types-perl/current/README
branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types.pm
branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Base.pm
branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/CheckedUtilExports.pm
branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Combine.pm
branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Moose.pm
branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/TypeDecorator.pm
branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/UndefinedType.pm
branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Util.pm
branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Wrapper.pm
branches/upstream/libmoosex-types-perl/current/t/16_introspection.t
Modified: branches/upstream/libmoosex-types-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-types-perl/current/Changes?rev=42342&op=diff
==============================================================================
--- branches/upstream/libmoosex-types-perl/current/Changes (original)
+++ branches/upstream/libmoosex-types-perl/current/Changes Fri Aug 21 19:48:30 2009
@@ -1,4 +1,11 @@
Revision history for MooseX-Types
+
+0.17 Tue Aug 18 02:32:31 EDT 2009
+ - Documentation typo fix (Dave Rolsky).
+ - Stop blowing up in has_available_type_export if the introspected code
+ symbol exists but is not a type export (Florian Ragwitz).
+ - Reorganize author/copyright sections at the request of Debian
+ packagers (Rafael Kitover).
0.16 Mon Jun 29 10:50:41 PDT 2009
- Ship with Module::Install 0.91
@@ -26,7 +33,7 @@
0.10 Fri March 06 17:34:00 EST 2009
- Removed unneeded debugging code from one of the tests, which was
causing installation errors for people that didn't already have
- Data::Dump installed. (jjnapiork)
+ Data::Dump installed. (jjnapiork)
0.09 ...
- Added MooseX::Types::Util::has_available_type_export($p, $n) to
allow introspection of available types for other libraries wanting
Modified: branches/upstream/libmoosex-types-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-types-perl/current/META.yml?rev=42342&op=diff
==============================================================================
--- branches/upstream/libmoosex-types-perl/current/META.yml (original)
+++ branches/upstream/libmoosex-types-perl/current/META.yml Fri Aug 21 19:48:30 2009
@@ -23,7 +23,7 @@
provides:
MooseX::Types:
file: lib/MooseX/Types.pm
- version: 0.16
+ version: 0.17
MooseX::Types::Base:
file: lib/MooseX/Types/Base.pm
MooseX::Types::CheckedUtilExports:
@@ -51,4 +51,4 @@
perl: 5.8.0
resources:
license: http://dev.perl.org/licenses/
-version: 0.16
+version: 0.17
Modified: branches/upstream/libmoosex-types-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-types-perl/current/README?rev=42342&op=diff
==============================================================================
--- branches/upstream/libmoosex-types-perl/current/README (original)
+++ branches/upstream/libmoosex-types-perl/current/README Fri Aug 21 19:48:30 2009
@@ -357,14 +357,22 @@
SEE ALSO
Moose, Moose::Util::TypeConstraints, MooseX::Types::Moose, Sub::Exporter
-AUTHOR AND COPYRIGHT
- Robert 'phaylon' Sedlacek "<rs at 474.at>", with many thanks to the
- "#moose" cabal on "irc.perl.org".
-
- Additional features by John Napiorkowski (jnapiorkowski)
- <jjnapiork at cpan.org>.
-
-LICENSE
+ACKNOWLEDGEMENTS
+ Many thanks to the "#moose" cabal on "irc.perl.org".
+
+AUTHOR
+ Robert "phaylon" Sedlacek <rs at 474.at>
+
+CONTRIBUTORS
+ jnapiorkowski: John Napiorkowski <jjnapiork at cpan.org>
+
+ caelum: Rafael Kitover <rkitover at cpan.org>
+
+ rafl: Florian Ragwitz <rafl at debian.org>
+
+COPYRIGHT & LICENSE
+ Copyright (c) 2007-2009 Robert Sedlacek
+
This program is free software; you can redistribute it and/or modify it
under the same terms as perl itself.
Modified: branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types.pm?rev=42342&op=diff
==============================================================================
--- branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types.pm (original)
+++ branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types.pm Fri Aug 21 19:48:30 2009
@@ -20,7 +20,7 @@
use namespace::clean -except => [qw( meta )];
use 5.008;
-our $VERSION = '0.16';
+our $VERSION = '0.17';
my $UndefMsg = q{Action for type '%s' not yet defined in library '%s'};
=head1 SYNOPSIS
@@ -561,14 +561,25 @@
L<MooseX::Types::Moose>,
L<Sub::Exporter>
-=head1 AUTHOR AND COPYRIGHT
-
-Robert 'phaylon' Sedlacek C<E<lt>rs at 474.atE<gt>>, with many thanks to
-the C<#moose> cabal on C<irc.perl.org>.
-
-Additional features by John Napiorkowski (jnapiorkowski) <jjnapiork at cpan.org>.
-
-=head1 LICENSE
+=head1 ACKNOWLEDGEMENTS
+
+Many thanks to the C<#moose> cabal on C<irc.perl.org>.
+
+=head1 AUTHOR
+
+Robert "phaylon" Sedlacek <rs at 474.at>
+
+=head1 CONTRIBUTORS
+
+jnapiorkowski: John Napiorkowski <jjnapiork at cpan.org>
+
+caelum: Rafael Kitover <rkitover at cpan.org>
+
+rafl: Florian Ragwitz <rafl at debian.org>
+
+=head1 COPYRIGHT & LICENSE
+
+Copyright (c) 2007-2009 Robert Sedlacek
This program is free software; you can redistribute it and/or modify
it under the same terms as perl itself.
Modified: branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Base.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Base.pm?rev=42342&op=diff
==============================================================================
--- branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Base.pm (original)
+++ branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Base.pm Fri Aug 21 19:48:30 2009
@@ -276,10 +276,9 @@
L<MooseX::Types::Moose>
-=head1 AUTHOR AND COPYRIGHT
-
-Robert 'phaylon' Sedlacek C<E<lt>rs at 474.atE<gt>>, with many thanks to
-the C<#moose> cabal on C<irc.perl.org>.
+=head1 AUTHOR
+
+See L<MooseX::Types/AUTHOR>.
=head1 LICENSE
Modified: branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/CheckedUtilExports.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/CheckedUtilExports.pm?rev=42342&op=diff
==============================================================================
--- branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/CheckedUtilExports.pm (original)
+++ branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/CheckedUtilExports.pm Fri Aug 21 19:48:30 2009
@@ -87,6 +87,10 @@
L<MooseX::Types>
+=head1 AUTHOR
+
+See L<MooseX::Types/AUTHOR>.
+
=head1 LICENSE
This program is free software; you can redistribute it and/or modify
Modified: branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Combine.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Combine.pm?rev=42342&op=diff
==============================================================================
--- branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Combine.pm (original)
+++ branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Combine.pm Fri Aug 21 19:48:30 2009
@@ -14,7 +14,7 @@
package CombinedTypeLib;
- use base 'MooseX::Types::Combined';
+ use base 'MooseX::Types::Combine';
__PACKAGE__->provide_types_from(qw/TypeLib1 TypeLib2/);
@@ -73,6 +73,10 @@
L<MooseX::Types>
+=head1 AUTHOR
+
+See L<MooseX::Types/AUTHOR>.
+
=head1 LICENSE
This program is free software; you can redistribute it and/or modify
Modified: branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Moose.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Moose.pm?rev=42342&op=diff
==============================================================================
--- branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Moose.pm (original)
+++ branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Moose.pm Fri Aug 21 19:48:30 2009
@@ -69,10 +69,9 @@
L<Moose>,
L<Moose::Util::TypeConstraints>
-=head1 AUTHOR AND COPYRIGHT
+=head1 AUTHOR
-Robert 'phaylon' Sedlacek C<E<lt>rs at 474.atE<gt>>, with many thanks to
-the C<#moose> cabal on C<irc.perl.org>.
+See L<MooseX::Types/AUTHOR>.
=head1 LICENSE
Modified: branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/TypeDecorator.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/TypeDecorator.pm?rev=42342&op=diff
==============================================================================
--- branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/TypeDecorator.pm (original)
+++ branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/TypeDecorator.pm Fri Aug 21 19:48:30 2009
@@ -204,9 +204,9 @@
}
}
-=head1 AUTHOR AND COPYRIGHT
-
-John Napiorkowski (jnapiorkowski) <jjnapiork at cpan.org>
+=head1 AUTHOR
+
+See L<MooseX::Types/AUTHOR>.
=head1 LICENSE
Modified: branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/UndefinedType.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/UndefinedType.pm?rev=42342&op=diff
==============================================================================
--- branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/UndefinedType.pm (original)
+++ branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/UndefinedType.pm Fri Aug 21 19:48:30 2009
@@ -101,12 +101,9 @@
L<Moose::Meta::TypeConstraint>,
L<Carp::Clan>
-=head1 AUTHOR AND COPYRIGHT
+=head1 AUTHOR
-Robert 'phaylon' Sedlacek C<E<lt>rs at 474.atE<gt>>, with many thanks to
-the C<#moose> cabal on C<irc.perl.org>.
-
-Additional features by John Napiorkowski (jnapiorkowski) <jjnapiork at cpan.org>
+See L<MooseX::Types/AUTHOR>.
=head1 LICENSE
Modified: branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Util.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Util.pm?rev=42342&op=diff
==============================================================================
--- branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Util.pm (original)
+++ branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Util.pm Fri Aug 21 19:48:30 2009
@@ -8,6 +8,7 @@
use warnings;
use strict;
+use Scalar::Util 'blessed';
use base 'Exporter';
@@ -88,7 +89,7 @@
or return undef;
return undef
- unless $sub->isa('MooseX::Types::EXPORTED_TYPE_CONSTRAINT');
+ unless blessed $sub && $sub->isa('MooseX::Types::EXPORTED_TYPE_CONSTRAINT');
return $sub->();
}
@@ -97,10 +98,9 @@
L<MooseX::Types::Moose>, L<Exporter>
-=head1 AUTHOR AND COPYRIGHT
+=head1 AUTHOR
-Robert 'phaylon' Sedlacek C<E<lt>rs at 474.atE<gt>>, with many thanks to
-the C<#moose> cabal on C<irc.perl.org>.
+See L<MooseX::Types/AUTHOR>.
=head1 LICENSE
Modified: branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Wrapper.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Wrapper.pm?rev=42342&op=diff
==============================================================================
--- branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Wrapper.pm (original)
+++ branches/upstream/libmoosex-types-perl/current/lib/MooseX/Types/Wrapper.pm Fri Aug 21 19:48:30 2009
@@ -51,10 +51,9 @@
L<MooseX::Types>
-=head1 AUTHOR AND COPYRIGHT
+=head1 AUTHOR
-Robert 'phaylon' Sedlacek C<E<lt>rs at 474.atE<gt>>, with many thanks to
-the C<#moose> cabal on C<irc.perl.org>.
+See L<MooseX::Types/AUTHOR>.
=head1 LICENSE
Modified: branches/upstream/libmoosex-types-perl/current/t/16_introspection.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-types-perl/current/t/16_introspection.t?rev=42342&op=diff
==============================================================================
--- branches/upstream/libmoosex-types-perl/current/t/16_introspection.t (original)
+++ branches/upstream/libmoosex-types-perl/current/t/16_introspection.t Fri Aug 21 19:48:30 2009
@@ -2,7 +2,7 @@
use strict;
use warnings;
-use Test::More tests => 1;
+use Test::More tests => 2;
use FindBin;
use lib "$FindBin::Bin/lib";
@@ -14,6 +14,16 @@
use IntrospectTypeExports __PACKAGE__, qw( TwentyThree NonEmptyStr MyNonEmptyStr );
use TestLibrary NonEmptyStr => { -as => 'MyNonEmptyStr' };
use IntrospectTypeExports __PACKAGE__, qw( TwentyThree NonEmptyStr MyNonEmptyStr );
+
+ sub NotAType () { 'just a string' }
+
+ BEGIN {
+ eval {
+ IntrospectTypeExports->import(__PACKAGE__, qw( NotAType ));
+ };
+ ::ok(!$@, "introspecting something that's not not a type doesn't blow up");
+ }
+
BEGIN {
no strict 'refs';
delete ${'IntrospectionTest::'}{TwentyThree};
@@ -38,6 +48,8 @@
[$P, NonEmptyStr => undef],
[$P, MyNonEmptyStr => 'TestLibrary::NonEmptyStr'],
+ [$P, NotAType => undef],
+
[$P, TwentyThree => undef],
[$P, NonEmptyStr => undef],
[$P, MyNonEmptyStr => 'TestLibrary::NonEmptyStr'],
More information about the Pkg-perl-cvs-commits
mailing list