Hello community, here is the log from the commit of package perl-Data-Section for openSUSE:Factory checked in at 2013-11-26 19:24:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Data-Section (Old) and /work/SRC/openSUSE:Factory/.perl-Data-Section.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Data-Section" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Data-Section/perl-Data-Section.changes 2013-07-22 13:04:46.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Data-Section.new/perl-Data-Section.changes 2013-11-26 19:25:00.000000000 +0100 @@ -1,0 +2,8 @@ +Mon Nov 25 07:36:05 UTC 2013 - [email protected] + +- updated to 0.200003 + [THIS MIGHT BREAK STUFF] + - add an "encoding" parameter to set encoding of data section contents; + this defaults to UTF-8 (thanks, David Golden!) + +------------------------------------------------------------------- Old: ---- Data-Section-0.101622.tar.gz New: ---- Data-Section-0.200003.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Data-Section.spec ++++++ --- /var/tmp/diff_new_pack.KRRGde/_old 2013-11-26 19:25:01.000000000 +0100 +++ /var/tmp/diff_new_pack.KRRGde/_new 2013-11-26 19:25:01.000000000 +0100 @@ -17,7 +17,7 @@ Name: perl-Data-Section -Version: 0.101622 +Version: 0.200003 Release: 0 %define cpan_name Data-Section Summary: read multiple hunks of data out of your DATA section @@ -31,6 +31,7 @@ BuildRequires: perl-macros BuildRequires: perl(MRO::Compat) >= 0.09 BuildRequires: perl(Sub::Exporter) >= 0.979 +BuildRequires: perl(Test::FailWarnings) BuildRequires: perl(Test::More) >= 0.96 #BuildRequires: perl(Child) #BuildRequires: perl(Data::Section) ++++++ Data-Section-0.101622.tar.gz -> Data-Section-0.200003.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Section-0.101622/Changes new/Data-Section-0.200003/Changes --- old/Data-Section-0.101622/Changes 2013-06-20 03:48:04.000000000 +0200 +++ new/Data-Section-0.200003/Changes 2013-11-02 12:57:55.000000000 +0100 @@ -1,5 +1,14 @@ Revision history for Data-Section +0.200003 2013-11-02 07:57:52 America/New_York + [THIS MIGHT BREAK STUFF] + - stable release of 0.200002, no functional changes + +0.200002 2013-10-19 22:11:32 America/New_York (TRIAL RELEASE) + [THIS MIGHT BREAK STUFF] + - add an "encoding" parameter to set encoding of data section contents; + this defaults to UTF-8 (thanks, David Golden!) + 0.101622 2013-06-19 21:48:02 America/New_York add a link to an Advent article about Data-Section diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Section-0.101622/MANIFEST new/Data-Section-0.200003/MANIFEST --- old/Data-Section-0.101622/MANIFEST 2013-06-20 03:48:04.000000000 +0200 +++ new/Data-Section-0.200003/MANIFEST 2013-11-02 12:57:55.000000000 +0100 @@ -7,9 +7,9 @@ README dist.ini lib/Data/Section.pm -t/00-compile.t t/000-report-versions-tiny.t t/basic.t +t/encodings.t t/lib/Child.pm t/lib/End.pm t/lib/Godfather.pm @@ -18,10 +18,13 @@ t/lib/I/Child.pm t/lib/I/Grandchild.pm t/lib/I/Parent.pm +t/lib/Latin1.pm t/lib/NoData.pm t/lib/NoName.pm t/lib/Parent.pm t/lib/Relaxed.pm +t/lib/Unicode_nopragma.pm +t/lib/Unicode_pragma.pm t/lib/WindowsNewlines.pm xt/release/changes_has_content.t xt/release/pod-syntax.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Section-0.101622/META.json new/Data-Section-0.200003/META.json --- old/Data-Section-0.101622/META.json 2013-06-20 03:48:04.000000000 +0200 +++ new/Data-Section-0.200003/META.json 2013-11-02 12:57:55.000000000 +0100 @@ -4,7 +4,7 @@ "Ricardo SIGNES <[email protected]>" ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 4.300035, CPAN::Meta::Converter version 2.131560", + "generated_by" : "Dist::Zilla version 5.001, CPAN::Meta::Converter version 2.132830", "license" : [ "perl_5" ], @@ -27,6 +27,7 @@ }, "runtime" : { "requires" : { + "Encode" : "0", "MRO::Compat" : "0.09", "Sub::Exporter" : "0.979", "strict" : "0", @@ -35,36 +36,36 @@ }, "test" : { "requires" : { - "File::Find" : "0", - "File::Temp" : "0", + "Test::FailWarnings" : "0", "Test::More" : "0.96", "base" : "0", - "lib" : "0" + "lib" : "0", + "utf8" : "0" } } }, "release_status" : "stable", "resources" : { "bugtracker" : { - "web" : "https://github.com/rjbs/data-section/issues" + "web" : "https://github.com/rjbs/Data-Section/issues" }, - "homepage" : "https://github.com/rjbs/data-section", + "homepage" : "https://github.com/rjbs/Data-Section", "repository" : { "type" : "git", - "url" : "https://github.com/rjbs/data-section.git", - "web" : "https://github.com/rjbs/data-section" + "url" : "https://github.com/rjbs/Data-Section.git", + "web" : "https://github.com/rjbs/Data-Section" } }, - "version" : "0.101622", + "version" : "0.200003", "x_Dist_Zilla" : { "perl" : { - "version" : "5.019000" + "version" : "5.019004" }, "plugins" : [ { "class" : "Dist::Zilla::Plugin::Git::GatherDir", "name" : "@RJBS/Git::GatherDir", - "version" : "2.013" + "version" : "2.017" }, { "class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed", @@ -74,97 +75,107 @@ { "class" : "Dist::Zilla::Plugin::CheckExtraTests", "name" : "@RJBS/CheckExtraTests", - "version" : "0.011" + "version" : "0.013" + }, + { + "class" : "Dist::Zilla::Plugin::PromptIfStale", + "name" : "@RJBS/RJBS-Outdated", + "version" : "0.008" + }, + { + "class" : "Dist::Zilla::Plugin::PromptIfStale", + "name" : "@RJBS/CPAN-Outdated", + "version" : "0.008" }, { "class" : "Dist::Zilla::Plugin::PruneCruft", "name" : "@RJBS/@Filter/PruneCruft", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@RJBS/@Filter/ManifestSkip", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@RJBS/@Filter/MetaYAML", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@RJBS/@Filter/License", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::Readme", "name" : "@RJBS/@Filter/Readme", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@RJBS/@Filter/ExecDir", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::ShareDir", "name" : "@RJBS/@Filter/ShareDir", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::MakeMaker", "name" : "@RJBS/@Filter/MakeMaker", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@RJBS/@Filter/Manifest", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@RJBS/@Filter/TestRelease", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@RJBS/@Filter/ConfirmRelease", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@RJBS/@Filter/UploadToCPAN", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@RJBS/AutoPrereqs", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::Git::NextVersion", "name" : "@RJBS/Git::NextVersion", - "version" : "2.013" + "version" : "2.017" }, { "class" : "Dist::Zilla::Plugin::PkgVersion", "name" : "@RJBS/PkgVersion", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@RJBS/MetaConfig", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@RJBS/MetaJSON", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@RJBS/NextRelease", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::Test::ChangesHasContent", @@ -174,17 +185,12 @@ { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@RJBS/PodSyntaxTests", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::ReportVersions::Tiny", "name" : "@RJBS/ReportVersions::Tiny", - "version" : "1.08" - }, - { - "class" : "Dist::Zilla::Plugin::Test::Compile", - "name" : "@RJBS/Test::Compile", - "version" : "2.002" + "version" : "1.10" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -195,67 +201,81 @@ } }, "name" : "@RJBS/TestMoreWithSubtests", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::PodWeaver", + "config" : { + "Dist::Zilla::Plugin::PodWeaver" : { + "config_plugin" : "@RJBS", + "finder" : [ + ":InstallModules", + ":ExecFiles" + ] + } + }, "name" : "@RJBS/PodWeaver", - "version" : "3.101641" + "version" : "4.000" }, { "class" : "Dist::Zilla::Plugin::GithubMeta", "name" : "@RJBS/GithubMeta", - "version" : "0.28" + "version" : "0.42" }, { "class" : "Dist::Zilla::Plugin::Git::Check", "name" : "@RJBS/@Git/Check", - "version" : "2.013" + "version" : "2.017" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "name" : "@RJBS/@Git/Commit", - "version" : "2.013" + "version" : "2.017" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", "name" : "@RJBS/@Git/Tag", - "version" : "2.013" + "version" : "2.017" }, { "class" : "Dist::Zilla::Plugin::Git::Push", "name" : "@RJBS/@Git/Push", - "version" : "2.013" + "version" : "2.017" + }, + { + "class" : "Dist::Zilla::Plugin::Encoding", + "name" : "Encoding", + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", - "version" : "4.300035" + "version" : "5.001" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", - "version" : "4.300035" + "version" : "5.001" } ], "zilla" : { @@ -263,7 +283,7 @@ "config" : { "is_trial" : "0" }, - "version" : "4.300035" + "version" : "5.001" } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Section-0.101622/META.yml new/Data-Section-0.200003/META.yml --- old/Data-Section-0.101622/META.yml 2013-06-20 03:48:04.000000000 +0200 +++ new/Data-Section-0.200003/META.yml 2013-11-02 12:57:55.000000000 +0100 @@ -3,38 +3,39 @@ author: - 'Ricardo SIGNES <[email protected]>' build_requires: - File::Find: 0 - File::Temp: 0 + Test::FailWarnings: 0 Test::More: 0.96 base: 0 lib: 0 + utf8: 0 configure_requires: ExtUtils::MakeMaker: 6.30 dynamic_config: 0 -generated_by: 'Dist::Zilla version 4.300035, CPAN::Meta::Converter version 2.131560' +generated_by: 'Dist::Zilla version 5.001, CPAN::Meta::Converter version 2.132830' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: 1.4 name: Data-Section requires: + Encode: 0 MRO::Compat: 0.09 Sub::Exporter: 0.979 strict: 0 warnings: 0 resources: - bugtracker: https://github.com/rjbs/data-section/issues - homepage: https://github.com/rjbs/data-section - repository: https://github.com/rjbs/data-section.git -version: 0.101622 + bugtracker: https://github.com/rjbs/Data-Section/issues + homepage: https://github.com/rjbs/Data-Section + repository: https://github.com/rjbs/Data-Section.git +version: 0.200003 x_Dist_Zilla: perl: - version: 5.019000 + version: 5.019004 plugins: - class: Dist::Zilla::Plugin::Git::GatherDir name: '@RJBS/Git::GatherDir' - version: 2.013 + version: 2.017 - class: Dist::Zilla::Plugin::CheckPrereqsIndexed name: '@RJBS/CheckPrereqsIndexed' @@ -42,79 +43,87 @@ - class: Dist::Zilla::Plugin::CheckExtraTests name: '@RJBS/CheckExtraTests' - version: 0.011 + version: 0.013 + - + class: Dist::Zilla::Plugin::PromptIfStale + name: '@RJBS/RJBS-Outdated' + version: 0.008 + - + class: Dist::Zilla::Plugin::PromptIfStale + name: '@RJBS/CPAN-Outdated' + version: 0.008 - class: Dist::Zilla::Plugin::PruneCruft name: '@RJBS/@Filter/PruneCruft' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::ManifestSkip name: '@RJBS/@Filter/ManifestSkip' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::MetaYAML name: '@RJBS/@Filter/MetaYAML' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::License name: '@RJBS/@Filter/License' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::Readme name: '@RJBS/@Filter/Readme' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::ExecDir name: '@RJBS/@Filter/ExecDir' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::ShareDir name: '@RJBS/@Filter/ShareDir' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::MakeMaker name: '@RJBS/@Filter/MakeMaker' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::Manifest name: '@RJBS/@Filter/Manifest' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::TestRelease name: '@RJBS/@Filter/TestRelease' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::ConfirmRelease name: '@RJBS/@Filter/ConfirmRelease' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::UploadToCPAN name: '@RJBS/@Filter/UploadToCPAN' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::AutoPrereqs name: '@RJBS/AutoPrereqs' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::Git::NextVersion name: '@RJBS/Git::NextVersion' - version: 2.013 + version: 2.017 - class: Dist::Zilla::Plugin::PkgVersion name: '@RJBS/PkgVersion' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::MetaConfig name: '@RJBS/MetaConfig' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::MetaJSON name: '@RJBS/MetaJSON' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::NextRelease name: '@RJBS/NextRelease' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::Test::ChangesHasContent name: '@RJBS/Test::ChangesHasContent' @@ -122,15 +131,11 @@ - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@RJBS/PodSyntaxTests' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::ReportVersions::Tiny name: '@RJBS/ReportVersions::Tiny' - version: 1.08 - - - class: Dist::Zilla::Plugin::Test::Compile - name: '@RJBS/Test::Compile' - version: 2.002 + version: 1.10 - class: Dist::Zilla::Plugin::Prereqs config: @@ -138,57 +143,67 @@ phase: test type: requires name: '@RJBS/TestMoreWithSubtests' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::PodWeaver + config: + Dist::Zilla::Plugin::PodWeaver: + config_plugin: '@RJBS' + finder: + - ':InstallModules' + - ':ExecFiles' name: '@RJBS/PodWeaver' - version: 3.101641 + version: 4.000 - class: Dist::Zilla::Plugin::GithubMeta name: '@RJBS/GithubMeta' - version: 0.28 + version: 0.42 - class: Dist::Zilla::Plugin::Git::Check name: '@RJBS/@Git/Check' - version: 2.013 + version: 2.017 - class: Dist::Zilla::Plugin::Git::Commit name: '@RJBS/@Git/Commit' - version: 2.013 + version: 2.017 - class: Dist::Zilla::Plugin::Git::Tag name: '@RJBS/@Git/Tag' - version: 2.013 + version: 2.017 - class: Dist::Zilla::Plugin::Git::Push name: '@RJBS/@Git/Push' - version: 2.013 + version: 2.017 + - + class: Dist::Zilla::Plugin::Encoding + name: Encoding + version: 5.001 - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' - version: 4.300035 + version: 5.001 - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' - version: 4.300035 + version: 5.001 zilla: class: Dist::Zilla::Dist::Builder config: is_trial: 0 - version: 4.300035 + version: 5.001 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Section-0.101622/Makefile.PL new/Data-Section-0.200003/Makefile.PL --- old/Data-Section-0.101622/Makefile.PL 2013-06-20 03:48:04.000000000 +0200 +++ new/Data-Section-0.200003/Makefile.PL 2013-11-02 12:57:55.000000000 +0100 @@ -20,49 +20,44 @@ "LICENSE" => "perl", "NAME" => "Data::Section", "PREREQ_PM" => { + "Encode" => 0, "MRO::Compat" => "0.09", "Sub::Exporter" => "0.979", "strict" => 0, "warnings" => 0 }, "TEST_REQUIRES" => { - "File::Find" => 0, - "File::Temp" => 0, + "Test::FailWarnings" => 0, "Test::More" => "0.96", "base" => 0, - "lib" => 0 + "lib" => 0, + "utf8" => 0 }, - "VERSION" => "0.101622", + "VERSION" => "0.200003", "test" => { "TESTS" => "t/*.t" } ); -unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { - my $tr = delete $WriteMakefileArgs{TEST_REQUIRES}; - my $br = $WriteMakefileArgs{BUILD_REQUIRES}; - for my $mod ( keys %$tr ) { - if ( exists $br->{$mod} ) { - $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod}; - } - else { - $br->{$mod} = $tr->{$mod}; - } - } -} +my %FallbackPrereqs = ( + "Encode" => 0, + "MRO::Compat" => "0.09", + "Sub::Exporter" => "0.979", + "Test::FailWarnings" => 0, + "Test::More" => "0.96", + "base" => 0, + "lib" => 0, + "strict" => 0, + "utf8" => 0, + "warnings" => 0 +); -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}; - } - } + +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/Data-Section-0.101622/README new/Data-Section-0.200003/README --- old/Data-Section-0.101622/README 2013-06-20 03:48:04.000000000 +0200 +++ new/Data-Section-0.200003/README 2013-11-02 12:57:55.000000000 +0100 @@ -1,7 +1,7 @@ This archive contains the distribution Data-Section, -version 0.101622: +version 0.200003: read multiple hunks of data out of your DATA section diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Section-0.101622/dist.ini new/Data-Section-0.200003/dist.ini --- old/Data-Section-0.101622/dist.ini 2013-06-20 03:48:04.000000000 +0200 +++ new/Data-Section-0.200003/dist.ini 2013-11-02 12:57:55.000000000 +0100 @@ -5,3 +5,6 @@ copyright_year = 2008 [@RJBS] +[Encoding] +encoding = Latin-1 +filename = t/lib/Latin1.pm diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Section-0.101622/lib/Data/Section.pm new/Data-Section-0.200003/lib/Data/Section.pm --- old/Data-Section-0.101622/lib/Data/Section.pm 2013-06-20 03:48:04.000000000 +0200 +++ new/Data-Section-0.200003/lib/Data/Section.pm 2013-11-02 12:57:55.000000000 +0100 @@ -2,10 +2,11 @@ use warnings; package Data::Section; { - $Data::Section::VERSION = '0.101622'; + $Data::Section::VERSION = '0.200003'; } # ABSTRACT: read multiple hunks of data out of your DATA section +use Encode qw/decode/; use MRO::Compat 0.09; use Sub::Exporter 0.979 -setup => { groups => { setup => \'_mk_reader_group' }, @@ -31,6 +32,8 @@ my $header_re = $arg->{header_re} || $default_header_re; $arg->{inherit} = 1 unless exists $arg->{inherit}; + my $default_encoding = defined $arg->{encoding} ? $arg->{encoding} : 'UTF-8'; + my %export; my %stash = (); @@ -45,8 +48,9 @@ my $dh = do { no strict 'refs'; \*{"$pkg\::DATA"} }; ## no critic Strict return $stash{ $pkg } unless defined fileno *$dh; + binmode( $dh, ":raw" ); - my $current; + my ($current, $current_line); if ($arg->{default_name}) { $current = $arg->{default_name}; $template->{ $current } = \(my $blank = q{}); @@ -54,6 +58,7 @@ LINE: while (my $line = <$dh>) { if ($line =~ $header_re) { $current = $1; + $current_line = 0; $template->{ $current } = \(my $blank = q{}); next LINE; } @@ -64,6 +69,12 @@ Carp::confess("bogus data section: text outside of named section") unless defined $current; + $current_line++; + unless ($default_encoding eq 'bytes') { + my $decoded_line = eval { decode($default_encoding, $line, Encode::FB_CROAK) } + or warn "Invalid character encoding in $current, line $current_line\n"; + $line = $decoded_line if defined $decoded_line; + } $line =~ s/\A\\//; ${$template->{$current}} .= $line; @@ -136,13 +147,15 @@ =pod +=encoding UTF-8 + =head1 NAME Data::Section - read multiple hunks of data out of your DATA section =head1 VERSION -version 0.101622 +version 0.200003 =head1 SYNOPSIS @@ -199,6 +212,12 @@ Valid arguments are: + encoding - if given, gives the encoding needed to decode bytes in + data sections; default; UTF-8 + + the special value "bytes" will leave the bytes in the string + verbatim + inherit - if true, allow packages to inherit the data of the packages from which they inherit; default: true @@ -277,9 +296,9 @@ package on which the method was invoked. If called on an object, it will operate on the package into which the object was blessed. -This method needs to be used carefull, because it's weird. It returns only the -data for the package on which it was invoked. If the package on which it was -invoked has no data sections, it returns an empty hashref. +This method needs to be used carefully, because it's weird. It returns only +the data for the package on which it was invoked. If the package on which it +was invoked has no data sections, it returns an empty hashref. =head2 local_section_data_names diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Section-0.101622/t/00-compile.t new/Data-Section-0.200003/t/00-compile.t --- old/Data-Section-0.101622/t/00-compile.t 2013-06-20 03:48:04.000000000 +0200 +++ new/Data-Section-0.200003/t/00-compile.t 1970-01-01 01:00:00.000000000 +0100 @@ -1,74 +0,0 @@ -#!perl - -use strict; -use warnings; - -use Test::More; - - - -use File::Find; -use File::Temp qw{ tempdir }; - -my @modules; -find( - sub { - return if $File::Find::name !~ /\.pm\z/; - my $found = $File::Find::name; - $found =~ s{^lib/}{}; - $found =~ s{[/\\]}{::}g; - $found =~ s/\.pm$//; - # nothing to skip - push @modules, $found; - }, - 'lib', -); - -sub _find_scripts { - my $dir = shift @_; - - my @found_scripts = (); - find( - sub { - return unless -f; - my $found = $File::Find::name; - # nothing to skip - open my $FH, '<', $_ or do { - note( "Unable to open $found in ( $! ), skipping" ); - return; - }; - my $shebang = <$FH>; - return unless $shebang =~ /^#!.*?\bperl\b\s*$/; - push @found_scripts, $found; - }, - $dir, - ); - - return @found_scripts; -} - -my @scripts; -do { push @scripts, _find_scripts($_) if -d $_ } - for qw{ bin script scripts }; - -my $plan = scalar(@modules) + scalar(@scripts); -$plan ? (plan tests => $plan) : (plan skip_all => "no tests to run"); - -{ - # fake home for cpan-testers - # no fake requested ## local $ENV{HOME} = tempdir( CLEANUP => 1 ); - - like( qx{ $^X -Ilib -e "require $_; print '$_ ok'" }, qr/^\s*$_ ok/s, "$_ loaded ok" ) - for sort @modules; - - SKIP: { - eval "use Test::Script 1.05; 1;"; - skip "Test::Script needed to test script compilation", scalar(@scripts) if $@; - foreach my $file ( @scripts ) { - my $script = $file; - $script =~ s!.*/!!; - script_compiles( $file, "$script script compiles" ); - } - } - -} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Section-0.101622/t/000-report-versions-tiny.t new/Data-Section-0.200003/t/000-report-versions-tiny.t --- old/Data-Section-0.101622/t/000-report-versions-tiny.t 2013-06-20 03:48:04.000000000 +0200 +++ new/Data-Section-0.200003/t/000-report-versions-tiny.t 2013-11-02 12:57:55.000000000 +0100 @@ -9,7 +9,7 @@ END { $success && done_testing; } # List our own version used to generate this -my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.08\n"; +my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.10\n"; eval { # no excuses! # report our Perl details @@ -48,17 +48,16 @@ return sprintf('%-45s => %-10s%-15s%s', $module, $pmver, $wanted, "\n"); } +eval { $v .= pmver('Encode','any version') }; eval { $v .= pmver('ExtUtils::MakeMaker','6.30') }; -eval { $v .= pmver('File::Find','any version') }; -eval { $v .= pmver('File::Temp','any version') }; eval { $v .= pmver('MRO::Compat','0.09') }; eval { $v .= pmver('Sub::Exporter','0.979') }; +eval { $v .= pmver('Test::FailWarnings','any version') }; eval { $v .= pmver('Test::More','0.96') }; -eval { $v .= pmver('Test::Pod','1.41') }; eval { $v .= pmver('base','any version') }; eval { $v .= pmver('lib','any version') }; eval { $v .= pmver('strict','any version') }; -eval { $v .= pmver('version','0.9901') }; +eval { $v .= pmver('utf8','any version') }; eval { $v .= pmver('warnings','any version') }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Section-0.101622/t/encodings.t new/Data-Section-0.200003/t/encodings.t --- old/Data-Section-0.101622/t/encodings.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Data-Section-0.200003/t/encodings.t 2013-11-02 12:57:55.000000000 +0100 @@ -0,0 +1,28 @@ +use strict; +use warnings; +use lib 't/lib'; +use Test::More; +use Test::FailWarnings; +use Encode; + +my $builder = Test::More->builder; +binmode $builder->output, ":utf8"; +binmode $builder->failure_output, ":utf8"; +binmode $builder->todo_output, ":utf8"; + +my $unicode = "\x{263a}"; +my $latin1 = "Ricardo Juli\x{E1}n Besteiro Signes"; + +my %test_data = ( + Unicode_nopragma => $unicode, + Unicode_pragma => $unicode, + Latin1 => $latin1, +); + +for my $class ( keys %test_data ) { + eval "require $class; 1" or die $@; ## no critic + chomp( my $got = ${ $class->section_data("a") } ); + is( $got, $test_data{$class}, "$class: section_data is text, not bytes" ); +} + +done_testing; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Section-0.101622/t/lib/Latin1.pm new/Data-Section-0.200003/t/lib/Latin1.pm --- old/Data-Section-0.101622/t/lib/Latin1.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/Data-Section-0.200003/t/lib/Latin1.pm 2013-11-02 12:57:55.000000000 +0100 @@ -0,0 +1,8 @@ +# vim: fileencoding=latin1 +package Latin1; +use Data::Section -setup => { encoding => "latin1" }; + +1; +__DATA__ +__[a]__ +Ricardo Juli�n Besteiro Signes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Section-0.101622/t/lib/Unicode_nopragma.pm new/Data-Section-0.200003/t/lib/Unicode_nopragma.pm --- old/Data-Section-0.101622/t/lib/Unicode_nopragma.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/Data-Section-0.200003/t/lib/Unicode_nopragma.pm 2013-11-02 12:57:55.000000000 +0100 @@ -0,0 +1,7 @@ +package Unicode_nopragma; +use Data::Section -setup; + +1; +__DATA__ +__[a]__ +☺ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Section-0.101622/t/lib/Unicode_pragma.pm new/Data-Section-0.200003/t/lib/Unicode_pragma.pm --- old/Data-Section-0.101622/t/lib/Unicode_pragma.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/Data-Section-0.200003/t/lib/Unicode_pragma.pm 2013-11-02 12:57:55.000000000 +0100 @@ -0,0 +1,8 @@ +use utf8; +package Unicode_pragma; +use Data::Section -setup; + +1; +__DATA__ +__[a]__ +☺ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Section-0.101622/xt/release/changes_has_content.t new/Data-Section-0.200003/xt/release/changes_has_content.t --- old/Data-Section-0.101622/xt/release/changes_has_content.t 2013-06-20 03:48:04.000000000 +0200 +++ new/Data-Section-0.200003/xt/release/changes_has_content.t 2013-11-02 12:57:55.000000000 +0100 @@ -4,7 +4,7 @@ note 'Checking Changes'; my $changes_file = 'Changes'; -my $newver = '0.101622'; +my $newver = '0.200003'; my $trial_token = '-TRIAL'; SKIP: { -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
