From f55e0c83cbc1deacc44905daa15d4f63bc0c8af3 Mon Sep 17 00:00:00 2001 From: Toby Inkster Date: Mon, 18 Aug 2014 13:13:38 +0100 Subject: Added tag 0.015 for changeset ad5719ba20d3 --- .hgtags | 1 + 1 file changed, 1 insertion(+) diff --git a/.hgtags b/.hgtags index ba59dc3..69f9c53 100644 --- a/.hgtags +++ b/.hgtags @@ -12,3 +12,4 @@ fff6346666ee927e3af355882c896be725d864b1 0.008 b6e335eac1a7af87e3995b1e24c31672f620de97 0.012 38ea1946cb61776f4c9de8885119032b945240a7 0.013 947e7a2fa7f01ea3f239b76798774290adc08810 0.014 +ad5719ba20d30bd463f2a90db642584287f222da 0.015 -- cgit v1.2.3 From 013b5bd1a96b09f6b3b2a5977b65eb02e377140f Mon Sep 17 00:00:00 2001 From: Toby Inkster Date: Mon, 18 Nov 2019 16:18:09 +0000 Subject: get tests passing and stuff --- t/01basic.t | 2 +- t/02inflation.t | 2 +- t/03invalid_tc.t | 21 +++++++++++++-------- t/04arrayofattrs.t | 2 +- xt/01pod.t | 5 ----- xt/02pod_coverage.config | 1 - xt/02pod_coverage.t | 18 ------------------ xt/03meta_uptodate.config | 2 -- xt/03meta_uptodate.t | 5 ----- xt/04eol.t | 2 -- xt/05tabs.t | 2 -- xt/06versions.t | 18 ------------------ xt/07spelling.t | 3 --- 13 files changed, 16 insertions(+), 67 deletions(-) delete mode 100644 xt/01pod.t delete mode 100644 xt/02pod_coverage.config delete mode 100644 xt/02pod_coverage.t delete mode 100644 xt/03meta_uptodate.config delete mode 100644 xt/03meta_uptodate.t delete mode 100644 xt/04eol.t delete mode 100644 xt/05tabs.t delete mode 100644 xt/06versions.t delete mode 100644 xt/07spelling.t diff --git a/t/01basic.t b/t/01basic.t index 3f1c223..e54447d 100644 --- a/t/01basic.t +++ b/t/01basic.t @@ -8,7 +8,7 @@ Toby Inkster Etobyink@cpan.orgE. =head1 COPYRIGHT AND LICENCE -This software is copyright (c) 2012-2013 by Toby Inkster. +This software is copyright (c) 2012-2014, 2019 by Toby Inkster. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff --git a/t/02inflation.t b/t/02inflation.t index 2d4c4cb..cdb7312 100644 --- a/t/02inflation.t +++ b/t/02inflation.t @@ -9,7 +9,7 @@ Toby Inkster Etobyink@cpan.orgE. =head1 COPYRIGHT AND LICENCE -This software is copyright (c) 2012-2013 by Toby Inkster. +This software is copyright (c) 2012-2014, 2019 by Toby Inkster. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff --git a/t/03invalid_tc.t b/t/03invalid_tc.t index e006981..40a3d6d 100644 --- a/t/03invalid_tc.t +++ b/t/03invalid_tc.t @@ -2,13 +2,15 @@ Check that we get error messages about unrecognisable type constraints. +Test skipped on Perl < 5.14 because idek. + =head1 AUTHOR Toby Inkster Etobyink@cpan.orgE. =head1 COPYRIGHT AND LICENCE -This software is copyright (c) 2012-2013 by Toby Inkster. +This software is copyright (c) 2012-2014, 2019 by Toby Inkster. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. @@ -17,21 +19,24 @@ the same terms as the Perl 5 programming language system itself. use strict; use warnings; - use Test::More; +use Test::Requires '5.014000'; +use Test::Fatal; -$@ = undef; -ok !eval q { -# line 1 "embedded" +my $e; +{ package Foo; use Moo; use MooX::late; - has foo => (is => 'ro', isa => 'X Y Z', required => 0); - 1; + $e = ::exception { + has foo => (is => 'ro', isa => 'X Y Z', required => 0); + }; }; +diag($e); + like( - $@, + $e, qr{^Unexpected tail on type expression: Y Z}, 'error message looks ok', ); diff --git a/t/04arrayofattrs.t b/t/04arrayofattrs.t index fc664d6..ce3058e 100644 --- a/t/04arrayofattrs.t +++ b/t/04arrayofattrs.t @@ -13,7 +13,7 @@ Toby Inkster Etobyink@cpan.orgE. =head1 COPYRIGHT AND LICENCE -This software is copyright (c) 2012-2013 by Toby Inkster. +This software is copyright (c) 2012-2014, 2019 by Toby Inkster. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff --git a/xt/01pod.t b/xt/01pod.t deleted file mode 100644 index 92ba3f6..0000000 --- a/xt/01pod.t +++ /dev/null @@ -1,5 +0,0 @@ -use Test::More; -eval "use Test::Pod 1.00"; -plan skip_all => "Test::Pod 1.00 required for testing POD" if $@; -all_pod_files_ok(); - diff --git a/xt/02pod_coverage.config b/xt/02pod_coverage.config deleted file mode 100644 index e916c99..0000000 --- a/xt/02pod_coverage.config +++ /dev/null @@ -1 +0,0 @@ -{"modules":["MooX::late"]} diff --git a/xt/02pod_coverage.t b/xt/02pod_coverage.t deleted file mode 100644 index 4c1c4d4..0000000 --- a/xt/02pod_coverage.t +++ /dev/null @@ -1,18 +0,0 @@ -use XT::Util; -use Test::More; -use Test::Pod::Coverage; - -plan skip_all => __CONFIG__->{skip_all} - if __CONFIG__->{skip_all}; - -if ( __CONFIG__->{modules} ) -{ - my @modules = @{ __CONFIG__->{modules} }; - pod_coverage_ok($_, "$_ is covered") for @modules; - done_testing(scalar @modules); -} -else -{ - all_pod_coverage_ok(); -} - diff --git a/xt/03meta_uptodate.config b/xt/03meta_uptodate.config deleted file mode 100644 index ace31e5..0000000 --- a/xt/03meta_uptodate.config +++ /dev/null @@ -1,2 +0,0 @@ -{"package":"MooX-late"} - diff --git a/xt/03meta_uptodate.t b/xt/03meta_uptodate.t deleted file mode 100644 index 9a370c6..0000000 --- a/xt/03meta_uptodate.t +++ /dev/null @@ -1,5 +0,0 @@ -use XT::Util; -use Test::More tests => 1; -use Test::RDF::DOAP::Version; -doap_version_ok(__CONFIG__->{package}, __CONFIG__->{version_from}); - diff --git a/xt/04eol.t b/xt/04eol.t deleted file mode 100644 index 3877ffa..0000000 --- a/xt/04eol.t +++ /dev/null @@ -1,2 +0,0 @@ -use Test::EOL; -all_perl_files_ok(); diff --git a/xt/05tabs.t b/xt/05tabs.t deleted file mode 100644 index 3421adf..0000000 --- a/xt/05tabs.t +++ /dev/null @@ -1,2 +0,0 @@ -use Test::Tabs; -all_perl_files_ok(); diff --git a/xt/06versions.t b/xt/06versions.t deleted file mode 100644 index 2f95fcc..0000000 --- a/xt/06versions.t +++ /dev/null @@ -1,18 +0,0 @@ -use XT::Util; -use Test::More; -use Test::HasVersion; - -plan skip_all => __CONFIG__->{skip_all} - if __CONFIG__->{skip_all}; - -if ( __CONFIG__->{modules} ) -{ - my @modules = @{ __CONFIG__->{modules} }; - pm_version_ok($_, "$_ is covered") for @modules; - done_testing(scalar @modules); -} -else -{ - all_pm_version_ok(); -} - diff --git a/xt/07spelling.t b/xt/07spelling.t deleted file mode 100644 index c091c73..0000000 --- a/xt/07spelling.t +++ /dev/null @@ -1,3 +0,0 @@ -use Test::Spellunker; -load_dictionary("$ENV{HOME}/perl5/stopwords.txt"); -all_pod_files_spelling_ok(); -- cgit v1.2.3 From c450f54f077d95958d5c9da72c559935d048b5c5 Mon Sep 17 00:00:00 2001 From: Toby Inkster Date: Mon, 18 Nov 2019 16:20:08 +0000 Subject: bump version; changelog --- lib/MooX/late.pm | 6 +++--- meta/changes.pret | 8 +++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/MooX/late.pm b/lib/MooX/late.pm index 856385c..d26ed13 100644 --- a/lib/MooX/late.pm +++ b/lib/MooX/late.pm @@ -4,7 +4,7 @@ use warnings; package MooX::late; our $AUTHORITY = 'cpan:TOBYINK'; -our $VERSION = '0.015'; +our $VERSION = '0.016'; use Moo qw( ); use Carp qw( carp croak ); @@ -14,7 +14,7 @@ use Module::Runtime qw( is_module_name ); BEGIN { package MooX::late::DefinitionContext; our $AUTHORITY = 'cpan:TOBYINK'; - our $VERSION = '0.015'; + our $VERSION = '0.016'; use Moo; use overload ( @@ -433,7 +433,7 @@ Toby Inkster Etobyink@cpan.orgE. =head1 COPYRIGHT AND LICENCE -This software is copyright (c) 2012-2014 by Toby Inkster. +This software is copyright (c) 2012-2014, 2019 by Toby Inkster. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff --git a/meta/changes.pret b/meta/changes.pret index 26c399a..e719439 100644 --- a/meta/changes.pret +++ b/meta/changes.pret @@ -112,7 +112,7 @@ ]. `MooX-late 0.015 cpan:TOBYINK` - issued 2013-08-18; + issued 2014-08-18; changeset [ item "Make the list of stuff this module does more concise."^^Documentation; item "Drop support for `coerce => 1` because Moo 1.006000 supports this natively now."^^Removal; @@ -121,3 +121,9 @@ item "Improve test cases for class type constraints."^^Tests; ]. +`MooX-late 0.016 cpan:TOBYINK` + issued 2019-11-18; + changeset [ + item "Get test suite passing and stuff."^^Tests; + ]. + -- cgit v1.2.3 From 28f6cb94cf77109d0b24e6d84a542339cf8fc165 Mon Sep 17 00:00:00 2001 From: Toby Inkster Date: Mon, 18 Nov 2019 16:21:50 +0000 Subject: perl requirement --- meta/makefile.pret | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/makefile.pret b/meta/makefile.pret index 6015889..54d095c 100644 --- a/meta/makefile.pret +++ b/meta/makefile.pret @@ -6,6 +6,7 @@ :test-requirement [ :on "Test::More 0.96"^^:CpanId ]; :test-requirement [ :on "Test::Requires 0.06"^^:CpanId ]; :test-requirement [ :on "Test::Fatal 0.010"^^:CpanId ]; + :runtime-requirement [ :on "perl 5.008003"^^:CpanId ]; :runtime-requirement [ :on "Moo 1.006000"^^:CpanId ]; :runtime-requirement [ :on "Type::Utils 1.000001"^^:CpanId ]; :runtime-suggestion [ :on "MooX"^^:CpanId ]; -- cgit v1.2.3