Hello community, here is the log from the commit of package perl-Term-Table for openSUSE:Factory checked in at 2017-11-12 17:56:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Term-Table (Old) and /work/SRC/openSUSE:Factory/.perl-Term-Table.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Term-Table" Sun Nov 12 17:56:56 2017 rev:3 rq:539966 version:0.012 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Term-Table/perl-Term-Table.changes 2017-10-11 22:55:12.425070398 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Term-Table.new/perl-Term-Table.changes 2017-11-12 17:56:57.296601607 +0100 @@ -1,0 +2,14 @@ +Thu Oct 19 05:57:09 UTC 2017 - co...@suse.com + +- updated to 0.012 + see /usr/share/doc/packages/perl-Term-Table/Changes + + 0.012 2017-10-11 08:54:52-07:00 America/Los_Angeles + + - Bump minimum Test2::Tools::Tiny version + + 0.011 2017-10-09 12:52:32-07:00 America/Los_Angeles + + - Honor the env variable even on non-term output + +------------------------------------------------------------------- Old: ---- Term-Table-0.010.tar.gz New: ---- Term-Table-0.012.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Term-Table.spec ++++++ --- /var/tmp/diff_new_pack.uUudzl/_old 2017-11-12 17:56:57.860581065 +0100 +++ /var/tmp/diff_new_pack.uUudzl/_new 2017-11-12 17:56:57.860581065 +0100 @@ -17,7 +17,7 @@ Name: perl-Term-Table -Version: 0.010 +Version: 0.012 Release: 0 %define cpan_name Term-Table Summary: Format a header and rows into a table @@ -31,7 +31,7 @@ BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Importer) >= 0.024 -BuildRequires: perl(Test2::Tools::Tiny) >= 1.302072 +BuildRequires: perl(Test2::Tools::Tiny) >= 1.302097 Requires: perl(Importer) >= 0.024 Recommends: perl(Term::Size::Any) >= 0.002 Recommends: perl(Unicode::GCString) >= 2013.10 ++++++ Term-Table-0.010.tar.gz -> Term-Table-0.012.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Term-Table-0.010/Changes new/Term-Table-0.012/Changes --- old/Term-Table-0.010/Changes 2017-10-03 18:41:47.000000000 +0200 +++ new/Term-Table-0.012/Changes 2017-10-11 17:54:53.000000000 +0200 @@ -1,3 +1,11 @@ +0.012 2017-10-11 08:54:52-07:00 America/Los_Angeles + + - Bump minimum Test2::Tools::Tiny version + +0.011 2017-10-09 12:52:32-07:00 America/Los_Angeles + + - Honor the env variable even on non-term output + 0.010 2017-10-03 09:41:46-07:00 America/Los_Angeles - No changes since trial diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Term-Table-0.010/MANIFEST new/Term-Table-0.012/MANIFEST --- old/Term-Table-0.010/MANIFEST 2017-10-03 18:41:47.000000000 +0200 +++ new/Term-Table-0.012/MANIFEST 2017-10-11 17:54:53.000000000 +0200 @@ -22,3 +22,4 @@ t/Table/CellStack.t t/Table/LineBreak.t t/bad_blank_line.t +t/honor_env_in_non_tty.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Term-Table-0.010/META.json new/Term-Table-0.012/META.json --- old/Term-Table-0.010/META.json 2017-10-03 18:41:47.000000000 +0200 +++ new/Term-Table-0.012/META.json 2017-10-11 17:54:53.000000000 +0200 @@ -40,7 +40,7 @@ }, "test" : { "requires" : { - "Test2::Tools::Tiny" : "1.302072", + "Test2::Tools::Tiny" : "1.302097", "utf8" : "0" } } @@ -55,7 +55,7 @@ "url" : "http://github.com/exodist/Term-Table/" } }, - "version" : "0.010", + "version" : "0.012", "x_serialization_backend" : "Cpanel::JSON::XS version 3.0233" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Term-Table-0.010/META.yml new/Term-Table-0.012/META.yml --- old/Term-Table-0.010/META.yml 2017-10-03 18:41:47.000000000 +0200 +++ new/Term-Table-0.012/META.yml 2017-10-11 17:54:53.000000000 +0200 @@ -3,7 +3,7 @@ author: - 'Chad Granum <exod...@cpan.org>' build_requires: - Test2::Tools::Tiny: '1.302072' + Test2::Tools::Tiny: '1.302097' utf8: '0' configure_requires: ExtUtils::MakeMaker: '0' @@ -27,5 +27,5 @@ resources: bugtracker: http://github.com/exodist/Term-Table/issues repository: http://github.com/exodist/Term-Table/ -version: '0.010' +version: '0.012' x_serialization_backend: 'YAML::Tiny version 1.70' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Term-Table-0.010/Makefile.PL new/Term-Table-0.012/Makefile.PL --- old/Term-Table-0.010/Makefile.PL 2017-10-03 18:41:47.000000000 +0200 +++ new/Term-Table-0.012/Makefile.PL 2017-10-11 17:54:53.000000000 +0200 @@ -23,10 +23,10 @@ "Scalar::Util" => 0 }, "TEST_REQUIRES" => { - "Test2::Tools::Tiny" => "1.302072", + "Test2::Tools::Tiny" => "1.302097", "utf8" => 0 }, - "VERSION" => "0.010", + "VERSION" => "0.012", "test" => { "TESTS" => "t/*.t t/Table/*.t" } @@ -38,7 +38,7 @@ "Importer" => "0.024", "List::Util" => 0, "Scalar::Util" => 0, - "Test2::Tools::Tiny" => "1.302072", + "Test2::Tools::Tiny" => "1.302097", "utf8" => 0 ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Term-Table-0.010/cpanfile new/Term-Table-0.012/cpanfile --- old/Term-Table-0.010/cpanfile 2017-10-03 18:41:47.000000000 +0200 +++ new/Term-Table-0.012/cpanfile 2017-10-11 17:54:53.000000000 +0200 @@ -8,7 +8,7 @@ recommends "Unicode::LineBreak" => "2015.06"; on 'test' => sub { - requires "Test2::Tools::Tiny" => "1.302072"; + requires "Test2::Tools::Tiny" => "1.302097"; requires "utf8" => "0"; }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Term-Table-0.010/lib/Term/Table/Cell.pm new/Term-Table-0.012/lib/Term/Table/Cell.pm --- old/Term-Table-0.010/lib/Term/Table/Cell.pm 2017-10-03 18:41:47.000000000 +0200 +++ new/Term-Table-0.012/lib/Term/Table/Cell.pm 2017-10-11 17:54:53.000000000 +0200 @@ -2,7 +2,7 @@ use strict; use warnings; -our $VERSION = '0.010'; +our $VERSION = '0.012'; use Term::Table::LineBreak(); use Term::Table::Util qw/uni_length/; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Term-Table-0.010/lib/Term/Table/CellStack.pm new/Term-Table-0.012/lib/Term/Table/CellStack.pm --- old/Term-Table-0.010/lib/Term/Table/CellStack.pm 2017-10-03 18:41:47.000000000 +0200 +++ new/Term-Table-0.012/lib/Term/Table/CellStack.pm 2017-10-11 17:54:53.000000000 +0200 @@ -2,7 +2,7 @@ use strict; use warnings; -our $VERSION = '0.010'; +our $VERSION = '0.012'; use Term::Table::HashBase qw/-cells -idx/; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Term-Table-0.010/lib/Term/Table/LineBreak.pm new/Term-Table-0.012/lib/Term/Table/LineBreak.pm --- old/Term-Table-0.010/lib/Term/Table/LineBreak.pm 2017-10-03 18:41:47.000000000 +0200 +++ new/Term-Table-0.012/lib/Term/Table/LineBreak.pm 2017-10-11 17:54:53.000000000 +0200 @@ -2,7 +2,7 @@ use strict; use warnings; -our $VERSION = '0.010'; +our $VERSION = '0.012'; use Carp qw/croak/; use Scalar::Util qw/blessed/; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Term-Table-0.010/lib/Term/Table/Spacer.pm new/Term-Table-0.012/lib/Term/Table/Spacer.pm --- old/Term-Table-0.010/lib/Term/Table/Spacer.pm 2017-10-03 18:41:47.000000000 +0200 +++ new/Term-Table-0.012/lib/Term/Table/Spacer.pm 2017-10-11 17:54:53.000000000 +0200 @@ -2,7 +2,7 @@ use strict; use warnings; -our $VERSION = '0.010'; +our $VERSION = '0.012'; sub new { bless {}, $_[0] } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Term-Table-0.010/lib/Term/Table/Util.pm new/Term-Table-0.012/lib/Term/Table/Util.pm --- old/Term-Table-0.010/lib/Term/Table/Util.pm 2017-10-03 18:41:47.000000000 +0200 +++ new/Term-Table-0.012/lib/Term/Table/Util.pm 2017-10-11 17:54:53.000000000 +0200 @@ -4,7 +4,7 @@ use Config qw/%Config/; -our $VERSION = '0.010'; +our $VERSION = '0.012'; use Importer Importer => 'import'; our @EXPORT_OK = qw/term_size USE_GCS USE_TERM_READKEY USE_TERM_SIZE_ANY uni_length/; @@ -26,7 +26,10 @@ if (!-t *STDOUT) { *USE_TERM_READKEY = sub() { 0 }; *USE_TERM_SIZE_ANY = sub() { 0 }; - *term_size = \&DEFAULT_SIZE; + *term_size = sub { + return $ENV{TABLE_TERM_SIZE} if $ENV{TABLE_TERM_SIZE}; + return DEFAULT_SIZE; + }; } elsif ($tsa) { *USE_TERM_READKEY = sub() { 0 }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Term-Table-0.010/lib/Term/Table.pm new/Term-Table-0.012/lib/Term/Table.pm --- old/Term-Table-0.010/lib/Term/Table.pm 2017-10-03 18:41:47.000000000 +0200 +++ new/Term-Table-0.012/lib/Term/Table.pm 2017-10-11 17:54:53.000000000 +0200 @@ -2,7 +2,7 @@ use strict; use warnings; -our $VERSION = '0.010'; +our $VERSION = '0.012'; use Term::Table::Cell(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Term-Table-0.010/t/honor_env_in_non_tty.t new/Term-Table-0.012/t/honor_env_in_non_tty.t --- old/Term-Table-0.010/t/honor_env_in_non_tty.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Term-Table-0.012/t/honor_env_in_non_tty.t 2017-10-11 17:54:53.000000000 +0200 @@ -0,0 +1,28 @@ +use Test2::Tools::Tiny; +use strict; +use warnings; + +BEGIN { + my $out = ""; + local *STDOUT; + open(STDOUT, '>', \$out) or die "Could not open a temp STDOUT: $!"; + ok(!-t STDOUT, "STDOUT is not a term"); + + require Term::Table::Util; + Term::Table::Util->import(qw/term_size USE_TERM_READKEY USE_TERM_SIZE_ANY/); +} + +ok(!USE_TERM_READKEY, "Not using Term::Readkey without a term"); +ok(!USE_TERM_SIZE_ANY, "Not using Term::Size::Any without a term"); + +{ + local $ENV{TABLE_TERM_SIZE}; + is(term_size, Term::Table::Util->DEFAULT_SIZE, "Get default size without the var"); +} + +{ + local $ENV{TABLE_TERM_SIZE} = 1234; + is(term_size, 1234, "Used the size in the env var"); +} + +done_testing;