Hello community, here is the log from the commit of package perl-Modern-Perl for openSUSE:Factory checked in at 2014-02-12 07:05:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Modern-Perl (Old) and /work/SRC/openSUSE:Factory/.perl-Modern-Perl.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Modern-Perl" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Modern-Perl/perl-Modern-Perl.changes 2013-06-06 12:21:21.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Modern-Perl.new/perl-Modern-Perl.changes 2014-02-12 07:05:10.000000000 +0100 @@ -1,0 +2,7 @@ +Sun Feb 9 13:33:36 UTC 2014 - co...@suse.com + +- updated to 1.20140107 + - updated for 2014 release + - added support for 5.18 + +------------------------------------------------------------------- Old: ---- Modern-Perl-1.20121103.tar.gz New: ---- Modern-Perl-1.20140107.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Modern-Perl.spec ++++++ --- /var/tmp/diff_new_pack.kP7n9Q/_old 2014-02-12 07:05:11.000000000 +0100 +++ /var/tmp/diff_new_pack.kP7n9Q/_new 2014-02-12 07:05:11.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-Modern-Perl # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: perl-Modern-Perl -Version: 1.20121103 +Version: 1.20140107 Release: 0 %define cpan_name Modern-Perl Summary: enable all of the features of Modern Perl with one import @@ -31,11 +31,10 @@ BuildRequires: perl-macros BuildRequires: perl(Module::Build) >= 0.3601 BuildRequires: perl(Test::More) >= 0.98 -BuildRequires: perl(autodie) >= 2.10 +BuildRequires: perl(autodie) >= 2.22 BuildRequires: perl(feature) BuildRequires: perl(mro) -#BuildRequires: perl(Modern::Perl) >= 2010 -Requires: perl(autodie) >= 2.10 +Requires: perl(autodie) >= 2.22 Requires: perl(feature) Requires: perl(mro) %{perl_requires} ++++++ Modern-Perl-1.20121103.tar.gz -> Modern-Perl-1.20140107.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.20121103/Build.PL new/Modern-Perl-1.20140107/Build.PL --- old/Modern-Perl-1.20121103/Build.PL 2012-11-03 21:30:27.000000000 +0100 +++ new/Modern-Perl-1.20140107/Build.PL 2014-01-08 00:35:44.000000000 +0100 @@ -7,8 +7,7 @@ my %module_build_args = ( "build_requires" => { - "Module::Build" => "0.3601", - "Test::More" => "0.98" + "Module::Build" => "0.3601" }, "configure_requires" => { "ExtUtils::MakeMaker" => "6.30", @@ -19,7 +18,7 @@ "chromatic" ], "dist_name" => "Modern-Perl", - "dist_version" => "1.20121103", + "dist_version" => "1.20140107", "license" => "perl", "module_name" => "Modern::Perl", "recommends" => {}, @@ -27,17 +26,31 @@ "requires" => { "IO::File" => 0, "IO::Handle" => 0, - "autodie" => "2.10", + "autodie" => "2.22", "feature" => 0, "mro" => 0, "perl" => "5.010", "strict" => 0, "warnings" => 0 }, - "script_files" => [] + "script_files" => [], + "test_requires" => { + "Test::More" => "0.98" + } ); +my %fallback_build_requires = ( + "Module::Build" => "0.3601", + "Test::More" => "0.98" +); + + +unless ( eval { Module::Build->VERSION(0.4004) } ) { + delete $module_build_args{test_requires}; + $module_build_args{build_requires} = \%fallback_build_requires; +} + my $build = Module::Build->new(%module_build_args); $build->create_build_script; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.20121103/Changes new/Modern-Perl-1.20140107/Changes --- old/Modern-Perl-1.20121103/Changes 2012-11-03 21:30:27.000000000 +0100 +++ new/Modern-Perl-1.20140107/Changes 2014-01-08 00:35:44.000000000 +0100 @@ -1,5 +1,9 @@ Revision history for Modern::Perl +1.20140107 2014-01-07 15:35:42 America/Los_Angeles + - updated for 2014 release + - added support for 5.18 + 1.20121103 2012-11-03 13:30:26 America/Los_Angeles - fixed VERSION( undef ) (Peter Vereshagin, RT #80304) - fixed POD encoding error (Norbert E. Grüner, RT #80468) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.20121103/LICENSE new/Modern-Perl-1.20140107/LICENSE --- old/Modern-Perl-1.20121103/LICENSE 2012-11-03 21:30:27.000000000 +0100 +++ new/Modern-Perl-1.20140107/LICENSE 2014-01-08 00:35:44.000000000 +0100 @@ -1,4 +1,4 @@ -This software is copyright (c) 2012 by chroma...@wgz.org. +This software is copyright (c) 2014 by chroma...@wgz.org. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. @@ -12,7 +12,7 @@ --- The GNU General Public License, Version 1, February 1989 --- -This software is Copyright (c) 2012 by chroma...@wgz.org. +This software is Copyright (c) 2014 by chroma...@wgz.org. This is free software, licensed under: @@ -272,7 +272,7 @@ --- The Artistic License 1.0 --- -This software is Copyright (c) 2012 by chroma...@wgz.org. +This software is Copyright (c) 2014 by chroma...@wgz.org. This is free software, licensed under: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.20121103/META.yml new/Modern-Perl-1.20140107/META.yml --- old/Modern-Perl-1.20121103/META.yml 2012-11-03 21:30:27.000000000 +0100 +++ new/Modern-Perl-1.20140107/META.yml 2014-01-08 00:35:44.000000000 +0100 @@ -9,7 +9,7 @@ ExtUtils::MakeMaker: 6.30 Module::Build: 0.3601 dynamic_config: 0 -generated_by: 'Dist::Zilla version 4.300028, CPAN::Meta::Converter version 2.120921' +generated_by: 'Dist::Zilla version 5.006, CPAN::Meta::Converter version 2.133380' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -18,7 +18,7 @@ requires: IO::File: 0 IO::Handle: 0 - autodie: 2.10 + autodie: 2.22 feature: 0 mro: 0 perl: 5.010 @@ -27,4 +27,4 @@ resources: homepage: https://github.com/chromatic/Modern-Perl repository: https://github.com/chromatic/Modern-Perl.git -version: 1.20121103 +version: 1.20140107 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.20121103/Makefile.PL new/Modern-Perl-1.20140107/Makefile.PL --- old/Modern-Perl-1.20121103/Makefile.PL 2012-11-03 21:30:27.000000000 +0100 +++ new/Modern-Perl-1.20140107/Makefile.PL 2014-01-08 00:35:44.000000000 +0100 @@ -12,8 +12,7 @@ "ABSTRACT" => "enable all of the features of Modern Perl with one import", "AUTHOR" => "chromatic", "BUILD_REQUIRES" => { - "Module::Build" => "0.3601", - "Test::More" => "0.98" + "Module::Build" => "0.3601" }, "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => "6.30", @@ -26,30 +25,39 @@ "PREREQ_PM" => { "IO::File" => 0, "IO::Handle" => 0, - "autodie" => "2.10", + "autodie" => "2.22", "feature" => 0, "mro" => 0, "strict" => 0, "warnings" => 0 }, - "VERSION" => "1.20121103", + "TEST_REQUIRES" => { + "Test::More" => "0.98" + }, + "VERSION" => "1.20140107", "test" => { "TESTS" => "t/*.t" } ); -unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) { - my $br = delete $WriteMakefileArgs{BUILD_REQUIRES}; - my $pp = $WriteMakefileArgs{PREREQ_PM}; - for my $mod ( keys %$br ) { - if ( exists $pp->{$mod} ) { - $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod}; - } - else { - $pp->{$mod} = $br->{$mod}; - } - } +my %FallbackPrereqs = ( + "IO::File" => 0, + "IO::Handle" => 0, + "Module::Build" => "0.3601", + "Test::More" => "0.98", + "autodie" => "2.22", + "feature" => 0, + "mro" => 0, + "strict" => 0, + "warnings" => 0 +); + + +unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { + delete $WriteMakefileArgs{TEST_REQUIRES}; + delete $WriteMakefileArgs{BUILD_REQUIRES}; + $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs; } delete $WriteMakefileArgs{CONFIGURE_REQUIRES} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.20121103/dist.ini new/Modern-Perl-1.20140107/dist.ini --- old/Modern-Perl-1.20121103/dist.ini 2012-11-03 21:30:27.000000000 +0100 +++ new/Modern-Perl-1.20140107/dist.ini 2014-01-08 00:35:44.000000000 +0100 @@ -2,7 +2,7 @@ author = chromatic license = Perl_5 copyright_holder = chroma...@wgz.org -copyright_year = 2012 +copyright_year = 2014 [AutoVersion] format = {{ cldr('1.yyyyMMdd') }} @@ -11,7 +11,7 @@ [Prereqs] perl = 5.010 -autodie = 2.10 +autodie = 2.22 [@Filter] -bundle = @Basic diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.20121103/lib/Modern/Perl.pm new/Modern-Perl-1.20140107/lib/Modern/Perl.pm --- old/Modern-Perl-1.20121103/lib/Modern/Perl.pm 2012-11-03 21:30:27.000000000 +0100 +++ new/Modern-Perl-1.20140107/lib/Modern/Perl.pm 2014-01-08 00:35:44.000000000 +0100 @@ -1,6 +1,6 @@ package Modern::Perl; { - $Modern::Perl::VERSION = '1.20121103'; + $Modern::Perl::VERSION = '1.20140107'; } # ABSTRACT: enable all of the features of Modern Perl with one import @@ -27,7 +27,7 @@ return $VERSION if $version < 2009; $wanted_date = $version if (caller(1))[3] =~ /::BEGIN/; - return 2012; + return 2014; } sub import @@ -38,8 +38,8 @@ my $feature_tag = validate_date( $date ); undef $wanted_date; - warnings->import(); - strict->import(); + warnings->import; + strict->import; feature->import( $feature_tag ); mro::set_mro( scalar caller(), 'c3' ); } @@ -58,6 +58,7 @@ 2011 => ':5.12', 2012 => ':5.14', 2013 => ':5.16', + 2014 => ':5.18', ); sub validate_date @@ -84,13 +85,15 @@ =pod +=encoding UTF-8 + =head1 NAME Modern::Perl - enable all of the features of Modern Perl with one import =head1 VERSION -version 1.20121103 +version 1.20140107 =head1 SYNOPSIS @@ -133,19 +136,20 @@ use Modern::Perl '2012'; -... enables 5.14 features, and: +... enables 5.14 features: use Modern::Perl '2013'; -... enables 5.16 features. Obviously you cannot use newer features on earlier -versions. Perl will throw the appropriate exception if you try. +... enables 5.16 features, and: -In the near future--sometime around September 2012--this module may drop -support for 5.10 and will complain (once per process) if you use a year too -old. As of May 2012, Perl 5.12 is unsupported by the Perl 5 Porters, so please -consider upgrading. + use Modern::Perl '2014'; + +... enables 5.18 features. Obviously you cannot use newer features on earlier +versions. Perl will throw the appropriate exception if you try. -=encoding utf8 +By mid-2014, this module will drop support for 5.10 and 5.12 and will complain +(once per process) if you use a year too old. As of January 2014, Perl 5.14 is +unsupported by the Perl 5 Porters, so please consider upgrading. =head1 AUTHOR @@ -200,10 +204,10 @@ =head1 COPYRIGHT & LICENSE -Copyright 2009-2012 chromatic, all rights reserved. +Copyright 2009-2014 chromatic, all rights reserved. This program is free software; you can redistribute it and/or modify it -under the same terms as Perl 5.14 itself. +under the same terms as Perl 5.18 itself. =head1 AUTHOR @@ -211,7 +215,7 @@ =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2012 by chroma...@wgz.org. +This software is copyright (c) 2014 by chroma...@wgz.org. 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 -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.20121103/t/regressions.t new/Modern-Perl-1.20140107/t/regressions.t --- old/Modern-Perl-1.20121103/t/regressions.t 2012-11-03 21:30:27.000000000 +0100 +++ new/Modern-Perl-1.20140107/t/regressions.t 2014-01-08 00:35:44.000000000 +0100 @@ -9,6 +9,7 @@ return if $_[0] =~ /Number found where operator expected/; return if $_[0] =~ /Do you need to predeclare/; return if $_[0] =~ /future reserved word/; + return if $_[0] =~ /given is experimental/; warn shift }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.20121103/t/year_imports.t new/Modern-Perl-1.20140107/t/year_imports.t --- old/Modern-Perl-1.20121103/t/year_imports.t 2012-11-03 21:30:27.000000000 +0100 +++ new/Modern-Perl-1.20140107/t/year_imports.t 2014-01-08 00:35:44.000000000 +0100 @@ -9,6 +9,7 @@ return if $_[0] =~ /Number found where operator expected/; return if $_[0] =~ /Do you need to predeclare/; return if $_[0] =~ /future reserved word/; + return if $_[0] =~ /given is experimental/; warn shift }; @@ -22,9 +23,11 @@ eval 'sub { return __SUB__ }'; is $@, '', q|use Modern::Perl '2013' does not enable current_sub|; my $warning = ''; -local $SIG{__WARN__} = sub { $warning = shift }; -eval 'fc("tschüß") eq fc("TSCHÜSS")'; -isnt $@, '', q|use Modern::Perl () does not enable fc|; +{ + local $SIG{__WARN__} = sub { $warning = shift }; + eval 'fc("tschüß") eq fc("TSCHÜSS")'; + isnt $@, '', q|use Modern::Perl () does not enable fc|; +} { use Modern::Perl '2009'; @@ -96,6 +99,34 @@ q|use Modern::Perl '2013' disables array_base|; eval 'fc("tschüß") eq fc("TSCHÜSS")'; is $@, '', q|use Modern::Perl '2013' enables fc|; + eval 'my sub foo {}'; + isnt $@, '', q|use Modern::Perl '2013' should not enable lexical subs|; + }; + is $@, '', 'this block should succeed'; +} + +if ($] >= 5.018) +{ + eval q{ + use Modern::Perl '2014'; + eval 'sub { given (0) {} }'; + is $@, '', q|use Modern::Perl '2014' enables switch|; + eval 'sub { say 0 }'; + is $@, '', q|use Modern::Perl '2014' enables say|; + eval 'state $x'; + is $@, '', q|use Modern::Perl '2014' enables state|; + is uc "\xdf", "SS", '2014 enables unicode_strings'; + eval 'sub { return __SUB__ }'; + is $@, '', q|use Modern::Perl '2014' enables current_sub|; + my $warning = ''; + local $SIG{__WARN__} = sub { $warning = shift }; + eval '$[ = 10'; + like $warning, qr/Use of assignment to \$\[ is deprecated/, + q|use Modern::Perl '2014' disables array_base|; + eval 'fc("tschüß") eq fc("TSCHÜSS")'; + is $@, '', q|use Modern::Perl '2014' enables fc|; + eval 'my sub foo {}'; + isnt $@, '', q|use Modern::Perl '2014' does not enable lexical subs|; }; is $@, '', 'this block should succeed'; } -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org