Hello community, here is the log from the commit of package perl-Text-Aligner for openSUSE:Factory checked in at 2016-05-25 21:27:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Text-Aligner (Old) and /work/SRC/openSUSE:Factory/.perl-Text-Aligner.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Text-Aligner" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Text-Aligner/perl-Text-Aligner.changes 2015-02-16 21:13:29.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Text-Aligner.new/perl-Text-Aligner.changes 2016-05-25 21:27:21.000000000 +0200 @@ -1,0 +2,12 @@ +Thu May 5 10:17:41 UTC 2016 - [email protected] + +- updated to 0.13 + see /usr/share/doc/packages/perl-Text-Aligner/Changes + + 0.13 2016-04-17 + - Eliminate a warning "Negative repeat count does nothing" in recent + perl5s in the test suite. + - https://rt.cpan.org/Ticket/Display.html?id=113841 + - Thanks to KENTNL for the report and SREZIC for some guidance. + +------------------------------------------------------------------- Old: ---- Text-Aligner-0.12.tar.gz New: ---- Text-Aligner-0.13.tar.gz cpanspec.yml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Text-Aligner.spec ++++++ --- /var/tmp/diff_new_pack.QprP0c/_old 2016-05-25 21:27:22.000000000 +0200 +++ /var/tmp/diff_new_pack.QprP0c/_new 2016-05-25 21:27:22.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Text-Aligner # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX 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,19 +17,20 @@ Name: perl-Text-Aligner -Version: 0.12 +Version: 0.13 Release: 0 %define cpan_name Text-Aligner -Summary: Module to align text +Summary: Module to Align Text License: MIT Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Text-Aligner/ -Source: http://www.cpan.org/authors/id/S/SH/SHLOMIF/%{cpan_name}-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/S/SH/SHLOMIF/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Module::Build) >= 0.28 +BuildRequires: perl(Module::Build) >= 0.280000 BuildRequires: perl(Term::ANSIColor) >= 2.02 Requires: perl(Term::ANSIColor) >= 2.02 %{perl_requires} @@ -51,9 +52,8 @@ instead. Other references are simply stringified. An undefined argument is interpreted as an empty string without complaint. -Alignment respects colorizing escape sequences a la the Term::ANSIColor -manpage which means it knows that these sequences don't take up space on -the screen. +Alignment respects colorizing escape sequences a la Term::ANSIColor which +means it knows that these sequences don't take up space on the screen. %prep %setup -q -n %{cpan_name}-%{version} ++++++ Text-Aligner-0.12.tar.gz -> Text-Aligner-0.13.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Aligner-0.12/Build.PL new/Text-Aligner-0.13/Build.PL --- old/Text-Aligner-0.12/Build.PL 2014-10-19 14:37:27.000000000 +0200 +++ new/Text-Aligner-0.13/Build.PL 2016-04-17 11:41:21.000000000 +0200 @@ -1,5 +1,5 @@ -# This file was automatically generated by Dist::Zilla::Plugin::ModuleBuild v5.020. +# This file was automatically generated by Dist::Zilla::Plugin::ModuleBuild v5.043. use strict; use warnings; @@ -19,10 +19,9 @@ "Shlomi Fish <shlomif\@cpan.org>" ], "dist_name" => "Text-Aligner", - "dist_version" => "0.12", + "dist_version" => "0.13", "license" => "mit", "module_name" => "Text::Aligner", - "recommends" => {}, "recursive_test_files" => 1, "requires" => { "Exporter" => 0, @@ -32,13 +31,13 @@ "vars" => 0, "warnings" => 0 }, - "script_files" => [], "test_requires" => { "File::Spec" => 0, "File::Temp" => 0, "IO::Handle" => 0, "IPC::Open3" => 0, "Test::More" => 0, + "blib" => "1.01", "constant" => 0 } ); @@ -51,6 +50,7 @@ "IPC::Open3" => 0, "Module::Build" => "0.28", "Test::More" => 0, + "blib" => "1.01", "constant" => 0 ); @@ -62,4 +62,5 @@ my $build = Test::Run::Builder->new(%module_build_args); + $build->create_build_script; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Aligner-0.12/Changes new/Text-Aligner-0.13/Changes --- old/Text-Aligner-0.12/Changes 2014-10-19 14:37:27.000000000 +0200 +++ new/Text-Aligner-0.13/Changes 2016-04-17 11:41:21.000000000 +0200 @@ -1,5 +1,11 @@ Revision history for Perl extension Text::Aligner. +0.13 2016-04-17 + - Eliminate a warning "Negative repeat count does nothing" in recent + perl5s in the test suite. + - https://rt.cpan.org/Ticket/Display.html?id=113841 + - Thanks to KENTNL for the report and SREZIC for some guidance. + 0.12 2014-10-19 - Relicensed under the ISC license (with ANNO's permission). - Better documentation. @@ -43,5 +49,5 @@ 0.02 2002-12-03 0.01 2002-11-11 - - original version; created by ExtUtils::ModuleMaker 0.204 + - original version; created by ExtUtils::ModuleMaker 0.204 - initial release to CPAN 03.12.02 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Aligner-0.12/MANIFEST new/Text-Aligner-0.13/MANIFEST --- old/Text-Aligner-0.12/MANIFEST 2014-10-19 14:37:27.000000000 +0200 +++ new/Text-Aligner-0.13/MANIFEST 2016-04-17 11:41:21.000000000 +0200 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.020. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.043. Build.PL Changes LICENSE @@ -13,8 +13,9 @@ t/00-compile.t t/01_ini.t t/10_Aligner.t +t/author-no-tabs.t +t/author-pod-coverage.t +t/author-pod-syntax.t t/release-cpan-changes.t t/release-kwalitee.t -t/release-pod-coverage.t -t/release-pod-syntax.t t/release-trailing-space.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Aligner-0.12/META.yml new/Text-Aligner-0.13/META.yml --- old/Text-Aligner-0.12/META.yml 2014-10-19 14:37:27.000000000 +0200 +++ new/Text-Aligner-0.13/META.yml 2016-04-17 11:41:21.000000000 +0200 @@ -9,12 +9,13 @@ IPC::Open3: '0' Module::Build: '0.28' Test::More: '0' + blib: '1.01' constant: '0' configure_requires: ExtUtils::MakeMaker: '0' Module::Build: '0.28' dynamic_config: 0 -generated_by: 'Dist::Zilla version 5.020, CPAN::Meta::Converter version 2.142060' +generated_by: 'Dist::Zilla version 5.043, CPAN::Meta::Converter version 2.150001' license: mit meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -23,13 +24,13 @@ provides: Text::Aligner: file: lib/Text/Aligner.pm - version: '0.12' + version: '0.13' Text::Aligner::Auto: file: lib/Text/Aligner.pm - version: '0.12' + version: '0.13' Text::Aligner::MaxKeeper: file: lib/Text/Aligner.pm - version: '0.12' + version: '0.13' requires: Exporter: '0' Term::ANSIColor: '2.02' @@ -40,4 +41,4 @@ resources: bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=Text-Aligner repository: https://github.com/shlomif/Text-Aligner.git -version: '0.12' +version: '0.13' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Aligner-0.12/Makefile.PL new/Text-Aligner-0.13/Makefile.PL --- old/Text-Aligner-0.12/Makefile.PL 2014-10-19 14:37:27.000000000 +0200 +++ new/Text-Aligner-0.13/Makefile.PL 2016-04-17 11:41:21.000000000 +0200 @@ -1,13 +1,10 @@ - -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.020. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.043. use strict; use warnings; use 5.008; -use ExtUtils::MakeMaker ; - - +use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( "ABSTRACT" => "module to align text.", @@ -20,8 +17,8 @@ "Module::Build" => "0.28" }, "DISTNAME" => "Text-Aligner", - "EXE_FILES" => [], "LICENSE" => "mit", + "MIN_PERL_VERSION" => "5.008", "NAME" => "Text::Aligner", "PREREQ_PM" => { "Exporter" => 0, @@ -36,9 +33,10 @@ "IO::Handle" => 0, "IPC::Open3" => 0, "Test::More" => 0, + "blib" => "1.01", "constant" => 0 }, - "VERSION" => "0.12", + "VERSION" => "0.13", "test" => { "TESTS" => "t/*.t" } @@ -54,6 +52,7 @@ "Module::Build" => "0.28", "Term::ANSIColor" => "2.02", "Test::More" => 0, + "blib" => "1.01", "constant" => 0, "strict" => 0, "vars" => 0, @@ -71,6 +70,3 @@ unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs); - - - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Aligner-0.12/dist.ini new/Text-Aligner-0.13/dist.ini --- old/Text-Aligner-0.12/dist.ini 2014-10-19 14:37:27.000000000 +0200 +++ new/Text-Aligner-0.13/dist.ini 2016-04-17 11:41:21.000000000 +0200 @@ -27,5 +27,6 @@ skip = bump-ver [Test::CPAN::Changes] [Test::Kwalitee] +[Test::NoTabs] [Test::TrailingSpace] [VersionFromModule] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Aligner-0.12/inc/Test/Run/Builder.pm new/Text-Aligner-0.13/inc/Test/Run/Builder.pm --- old/Text-Aligner-0.12/inc/Test/Run/Builder.pm 2014-10-19 14:37:27.000000000 +0200 +++ new/Text-Aligner-0.13/inc/Test/Run/Builder.pm 2016-04-17 11:41:21.000000000 +0200 @@ -20,7 +20,7 @@ # Make sure we test the module in blib/ unshift @INC, (File::Spec->catdir($p->{base_dir}, $self->blib, 'lib'), - File::Spec->catdir($p->{base_dir}, $self->blib, 'arch')); + File::Spec->catdir($p->{base_dir}, $self->blib, 'arch')); $self->do_test_run_tests; } @@ -68,8 +68,8 @@ $self->do_system( "ctags", qw(-f tags --recurse --totals - --exclude=blib/** --exclude=t/lib/** - --exclude=**/.svn/** --exclude='*~'), + --exclude=blib/** --exclude=t/lib/** + --exclude=**/.svn/** --exclude='*~'), "--exclude=".$self->dist_name()."-*/**", qw(--languages=Perl --langmap=Perl:+.t) ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Aligner-0.12/lib/Text/Aligner.pm new/Text-Aligner-0.13/lib/Text/Aligner.pm --- old/Text-Aligner-0.12/lib/Text/Aligner.pm 2014-10-19 14:37:27.000000000 +0200 +++ new/Text-Aligner-0.13/lib/Text/Aligner.pm 2016-04-17 11:41:21.000000000 +0200 @@ -9,7 +9,7 @@ BEGIN { use Exporter (); use vars qw ($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); - $VERSION = '0.12'; + $VERSION = '0.13'; @ISA = qw (Exporter); @EXPORT = qw (); @EXPORT_OK = qw ( align); @@ -33,7 +33,7 @@ ### class Text::Aligner -sub _new { # internal creator +sub _new { # internal constructor my $class = shift; my ( $width, $pos) = @_; # both method-or-coderef (this is very general) bless { @@ -44,7 +44,7 @@ }, $class; } -# create an aligner +# Construct an aligner sub new { my ( $class, $spec) = @_; $spec ||= 0; # left alignment is default @@ -124,6 +124,11 @@ $al; } +sub _spaces { + my ($repeat_count) = @_; + return (($repeat_count > 0) ? (' ' x $repeat_count) : ''); +} + # justify a string. a string is aligned within the aligner's field, and # filled with blanks or cut to size, as appropriate. a string that has # been allocated will never be trimmed (that is the point of allocation). @@ -136,7 +141,7 @@ my ( $l_pad, $r_pad) = $al->_padding( $str); substr( $str, 0, -$l_pad) = '' if $l_pad < 0; # trim if negative substr( $str, $r_pad) = '' if $r_pad < 0; # ... both ends - join $str, ' ' x $l_pad, ' ' x $r_pad; # pad if positive + return _spaces($l_pad) . $str . _spaces($r_pad); # pad if positive } # return two numbers that indicate how many blanks are needed on each side @@ -304,11 +309,11 @@ =head1 VERSION -version 0.12 +version 0.13 =head1 SYNOPSIS - use Text::Aligner qw( align); + use Text::Aligner qw( align ); # Print the words "just a test!" right-justified each on a line: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Aligner-0.12/t/00-compile.t new/Text-Aligner-0.13/t/00-compile.t --- old/Text-Aligner-0.12/t/00-compile.t 2014-10-19 14:37:27.000000000 +0200 +++ new/Text-Aligner-0.13/t/00-compile.t 2016-04-17 11:41:21.000000000 +0200 @@ -2,11 +2,11 @@ use strict; use warnings; -# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.046 - -use Test::More tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0); +# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.054 +use Test::More; +plan tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0); my @module_files = ( 'Text/Aligner.pm' @@ -39,6 +39,9 @@ waitpid($pid, 0); is($?, 0, "$lib loaded ok"); + shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/ + and not eval { require blib; blib->VERSION('1.01') }; + if (@_warnings) { warn @_warnings; @@ -48,6 +51,7 @@ -is(scalar(@warnings), 0, 'no warnings found') or diag 'got warnings: ', explain \@warnings if $ENV{AUTHOR_TESTING}; +is(scalar(@warnings), 0, 'no warnings found') + or diag 'got warnings: ', ( Test::More->can('explain') ? Test::More::explain(\@warnings) : join("\n", '', @warnings) ) if $ENV{AUTHOR_TESTING}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Aligner-0.12/t/author-no-tabs.t new/Text-Aligner-0.13/t/author-no-tabs.t --- old/Text-Aligner-0.12/t/author-no-tabs.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Text-Aligner-0.13/t/author-no-tabs.t 2016-04-17 11:41:21.000000000 +0200 @@ -0,0 +1,31 @@ + +BEGIN { + unless ($ENV{AUTHOR_TESTING}) { + require Test::More; + Test::More::plan(skip_all => 'these tests are for testing by the author'); + } +} + +use strict; +use warnings; + +# this test was generated with Dist::Zilla::Plugin::Test::NoTabs 0.15 + +use Test::More 0.88; +use Test::NoTabs; + +my @files = ( + 'lib/Text/Aligner.pm', + 't/00-compile.t', + 't/01_ini.t', + 't/10_Aligner.t', + 't/author-no-tabs.t', + 't/author-pod-coverage.t', + 't/author-pod-syntax.t', + 't/release-cpan-changes.t', + 't/release-kwalitee.t', + 't/release-trailing-space.t' +); + +notabs_ok($_) foreach @files; +done_testing; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Aligner-0.12/t/author-pod-coverage.t new/Text-Aligner-0.13/t/author-pod-coverage.t --- old/Text-Aligner-0.12/t/author-pod-coverage.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Text-Aligner-0.13/t/author-pod-coverage.t 2016-04-17 11:41:21.000000000 +0200 @@ -0,0 +1,15 @@ +#!perl + +BEGIN { + unless ($ENV{AUTHOR_TESTING}) { + require Test::More; + Test::More::plan(skip_all => 'these tests are for testing by the author'); + } +} + +# This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests. + +use Test::Pod::Coverage 1.08; +use Pod::Coverage::TrustPod; + +all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' }); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Aligner-0.12/t/author-pod-syntax.t new/Text-Aligner-0.13/t/author-pod-syntax.t --- old/Text-Aligner-0.12/t/author-pod-syntax.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Text-Aligner-0.13/t/author-pod-syntax.t 2016-04-17 11:41:21.000000000 +0200 @@ -0,0 +1,15 @@ +#!perl + +BEGIN { + unless ($ENV{AUTHOR_TESTING}) { + require Test::More; + Test::More::plan(skip_all => 'these tests are for testing by the author'); + } +} + +# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. +use strict; use warnings; +use Test::More; +use Test::Pod 1.41; + +all_pod_files_ok(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Aligner-0.12/t/release-kwalitee.t new/Text-Aligner-0.13/t/release-kwalitee.t --- old/Text-Aligner-0.12/t/release-kwalitee.t 2014-10-19 14:37:27.000000000 +0200 +++ new/Text-Aligner-0.13/t/release-kwalitee.t 2016-04-17 11:41:21.000000000 +0200 @@ -6,7 +6,7 @@ } } -# this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.11 +# this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.12 use strict; use warnings; use Test::More 0.88; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Aligner-0.12/t/release-pod-coverage.t new/Text-Aligner-0.13/t/release-pod-coverage.t --- old/Text-Aligner-0.12/t/release-pod-coverage.t 2014-10-19 14:37:27.000000000 +0200 +++ new/Text-Aligner-0.13/t/release-pod-coverage.t 1970-01-01 01:00:00.000000000 +0100 @@ -1,15 +0,0 @@ -#!perl - -BEGIN { - unless ($ENV{RELEASE_TESTING}) { - require Test::More; - Test::More::plan(skip_all => 'these tests are for release candidate testing'); - } -} - -# This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests. - -use Test::Pod::Coverage 1.08; -use Pod::Coverage::TrustPod; - -all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' }); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Aligner-0.12/t/release-pod-syntax.t new/Text-Aligner-0.13/t/release-pod-syntax.t --- old/Text-Aligner-0.12/t/release-pod-syntax.t 2014-10-19 14:37:27.000000000 +0200 +++ new/Text-Aligner-0.13/t/release-pod-syntax.t 1970-01-01 01:00:00.000000000 +0100 @@ -1,14 +0,0 @@ -#!perl - -BEGIN { - unless ($ENV{RELEASE_TESTING}) { - require Test::More; - Test::More::plan(skip_all => 'these tests are for release candidate testing'); - } -} - -# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. -use Test::More; -use Test::Pod 1.41; - -all_pod_files_ok(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Aligner-0.12/t/release-trailing-space.t new/Text-Aligner-0.13/t/release-trailing-space.t --- old/Text-Aligner-0.12/t/release-trailing-space.t 2014-10-19 14:37:27.000000000 +0200 +++ new/Text-Aligner-0.13/t/release-trailing-space.t 2016-04-17 11:41:21.000000000 +0200 @@ -28,7 +28,7 @@ my $finder = Test::TrailingSpace->new( { root => '.', - filename_regex => qr/(?:\.(?:t|pm|pl|xs|c|h|txt|pod|PL)|README|Changes|TODO|LICENSE)\z/, + filename_regex => qr#(?:\.(?:t|pm|pl|xs|c|h|txt|pod|PL)|README|Changes|TODO|LICENSE)\z#, }, ); ++++++ cpanspec.yml ++++++ --- #description_paragraphs: 3 #description: |- # override description from CPAN #summary: override summary from CPAN #no_testing: broken upstream #sources: # - source1 # - source2 #patches: # foo.patch: -p1 # bar.patch: #preamble: |- # BuildRequires: gcc-c++ #post_prep: |- # hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` # sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL #post_build: |- # rm unused.files #post_install: |- # sed on %{name}.files #license: SUSE-NonFree #skip_noarch: 1 #custom_build: |- #./Build build flags=%{?_smp_mflags} --myflag #custom_test: |- #startserver && make test #ignore_requires: Bizarre::Module
