Hello community,

here is the log from the commit of package perl-Text-Autoformat for 
openSUSE:Factory checked in at 2019-08-15 12:28:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Text-Autoformat (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Text-Autoformat.new.9556 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Text-Autoformat"

Thu Aug 15 12:28:42 2019 rev:24 rq:723267 version:1.75

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-Text-Autoformat/perl-Text-Autoformat.changes    
    2015-12-03 13:31:47.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-Text-Autoformat.new.9556/perl-Text-Autoformat.changes
      2019-08-15 12:28:46.110527538 +0200
@@ -1,0 +2,10 @@
+Wed Aug 14 05:30:37 UTC 2019 - Stephan Kulow <co...@suse.com>
+
+- updated to 1.75
+   see /usr/share/doc/packages/perl-Text-Autoformat/Changes
+
+  1.75 2019-08-13 NEILB
+      - Correctly handle lists with "0" on the end of them to preserve
+        the "0" rather than dropping it
+
+-------------------------------------------------------------------

Old:
----
  Text-Autoformat-1.74.tar.gz

New:
----
  Text-Autoformat-1.75.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Text-Autoformat.spec ++++++
--- /var/tmp/diff_new_pack.XZyorL/_old  2019-08-15 12:28:47.430526314 +0200
+++ /var/tmp/diff_new_pack.XZyorL/_new  2019-08-15 12:28:47.430526314 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Text-Autoformat
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -12,19 +12,19 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           perl-Text-Autoformat
-Version:        1.74
+Version:        1.75
 Release:        0
 %define cpan_name Text-Autoformat
 Summary:        Automatic text wrapping and reformatting
-License:        Artistic-1.0 or GPL-1.0+
+License:        Artistic-1.0 OR GPL-1.0-or-later
 Group:          Development/Libraries/Perl
-Url:            http://search.cpan.org/dist/Text-Autoformat/
-Source0:        
http://www.cpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{version}.tar.gz
+Url:            https://metacpan.org/release/%{cpan_name}
+Source0:        
https://cpan.metacpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{version}.tar.gz
 Source1:        cpanspec.yml
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -40,14 +40,14 @@
 
 %prep
 %setup -q -n %{cpan_name}-%{version}
-find . -type f -print0 | xargs -0 chmod 644
+find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
-%{__make} %{?_smp_mflags}
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
 
 %check
-%{__make} test
+make test
 
 %install
 %perl_make_install
@@ -56,6 +56,7 @@
 
 %files -f %{name}.files
 %defattr(-,root,root,755)
-%doc Changes config.emacs config.vim LICENSE README
+%doc Changes config.emacs config.vim README
+%license LICENSE
 
 %changelog

++++++ Text-Autoformat-1.74.tar.gz -> Text-Autoformat-1.75.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-Autoformat-1.74/Changes 
new/Text-Autoformat-1.75/Changes
--- old/Text-Autoformat-1.74/Changes    2015-11-28 16:21:56.000000000 +0100
+++ new/Text-Autoformat-1.75/Changes    2019-08-13 12:42:46.000000000 +0200
@@ -1,5 +1,9 @@
 Revision history for Perl module Text::Autoformat
 
+1.75 2019-08-13 NEILB
+    - Correctly handle lists with "0" on the end of them to preserve
+      the "0" rather than dropping it
+
 1.74 2015-11-28 NEILB
     - On Perl 5.22+ you could get "Negative repeat count does nothing"
       warnings. Thanks to SREZIC for RT#109838.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-Autoformat-1.74/MANIFEST 
new/Text-Autoformat-1.75/MANIFEST
--- old/Text-Autoformat-1.74/MANIFEST   2015-11-28 16:21:56.000000000 +0100
+++ new/Text-Autoformat-1.75/MANIFEST   2019-08-13 12:42:46.000000000 +0200
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v5.037.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v6.012.
 Changes
 LICENSE
 MANIFEST
@@ -16,3 +16,4 @@
 t/01.ignore.t
 t/02.empty-string.t
 t/02.wide-numbers.t
+t/03.zero-number.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-Autoformat-1.74/META.json 
new/Text-Autoformat-1.75/META.json
--- old/Text-Autoformat-1.74/META.json  2015-11-28 16:21:56.000000000 +0100
+++ new/Text-Autoformat-1.75/META.json  2019-08-13 12:42:46.000000000 +0200
@@ -4,7 +4,7 @@
       "Damian Conway <dam...@conway.org>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Zilla version 5.037, CPAN::Meta::Converter version 
2.150005",
+   "generated_by" : "Dist::Zilla version 6.012, CPAN::Meta::Converter version 
2.150010",
    "license" : [
       "perl_5"
    ],
@@ -47,6 +47,8 @@
          "web" : "https://github.com/neilb/Text-Autoformat";
       }
    },
-   "version" : "1.74"
+   "version" : "1.75",
+   "x_generated_by_perl" : "v5.28.2",
+   "x_serialization_backend" : "Cpanel::JSON::XS version 4.12"
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-Autoformat-1.74/META.yml 
new/Text-Autoformat-1.75/META.yml
--- old/Text-Autoformat-1.74/META.yml   2015-11-28 16:21:56.000000000 +0100
+++ new/Text-Autoformat-1.75/META.yml   2019-08-13 12:42:46.000000000 +0200
@@ -8,7 +8,7 @@
 configure_requires:
   ExtUtils::MakeMaker: '0'
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 5.037, CPAN::Meta::Converter version 
2.150005'
+generated_by: 'Dist::Zilla version 6.012, CPAN::Meta::Converter version 
2.150010'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -26,4 +26,6 @@
 resources:
   homepage: https://github.com/neilb/Text-Autoformat
   repository: https://github.com/neilb/Text-Autoformat.git
-version: '1.74'
+version: '1.75'
+x_generated_by_perl: v5.28.2
+x_serialization_backend: 'YAML::Tiny version 1.73'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-Autoformat-1.74/Makefile.PL 
new/Text-Autoformat-1.75/Makefile.PL
--- old/Text-Autoformat-1.74/Makefile.PL        2015-11-28 16:21:56.000000000 
+0100
+++ new/Text-Autoformat-1.75/Makefile.PL        2019-08-13 12:42:46.000000000 
+0200
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker 
v5.037.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker 
v6.012.
 use strict;
 use warnings;
 
@@ -13,7 +13,6 @@
     "ExtUtils::MakeMaker" => 0
   },
   "DISTNAME" => "Text-Autoformat",
-  "EXE_FILES" => [],
   "LICENSE" => "perl",
   "MIN_PERL_VERSION" => "5.006",
   "NAME" => "Text::Autoformat",
@@ -30,7 +29,7 @@
     "Test::More" => "0.88",
     "utf8" => 0
   },
-  "VERSION" => "1.74",
+  "VERSION" => "1.75",
   "test" => {
     "TESTS" => "t/*.t"
   }
@@ -40,7 +39,6 @@
 my %FallbackPrereqs = (
   "Carp" => 0,
   "Exporter" => 0,
-  "ExtUtils::MakeMaker" => 0,
   "Test::More" => "0.88",
   "Text::Reform" => 0,
   "Text::Tabs" => 0,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-Autoformat-1.74/README 
new/Text-Autoformat-1.75/README
--- old/Text-Autoformat-1.74/README     2015-11-28 16:21:56.000000000 +0100
+++ new/Text-Autoformat-1.75/README     2019-08-13 12:42:46.000000000 +0200
@@ -1,7 +1,5 @@
-
-
 This archive contains the distribution Text-Autoformat,
-version 1.74:
+version 1.75:
 
   Automatic text wrapping and reformatting
 
@@ -11,5 +9,4 @@
 the same terms as the Perl 5 programming language system itself.
 
 
-This README file was generated by Dist::Zilla::Plugin::Readme v5.037.
-
+This README file was generated by Dist::Zilla::Plugin::Readme v6.012.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-Autoformat-1.74/dist.ini 
new/Text-Autoformat-1.75/dist.ini
--- old/Text-Autoformat-1.74/dist.ini   2015-11-28 16:21:56.000000000 +0100
+++ new/Text-Autoformat-1.75/dist.ini   2019-08-13 12:42:46.000000000 +0200
@@ -4,7 +4,7 @@
 copyright_holder = Damian Conway
 copyright_year   = 1997
 main_module      = lib/Text/Autoformat.pm
-version          = 1.74
+version          = 1.75
 
 [@Basic]
 [PkgVersion]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-Autoformat-1.74/lib/Text/Autoformat/Hang.pm 
new/Text-Autoformat-1.75/lib/Text/Autoformat/Hang.pm
--- old/Text-Autoformat-1.74/lib/Text/Autoformat/Hang.pm        2015-11-28 
16:21:56.000000000 +0100
+++ new/Text-Autoformat-1.75/lib/Text/Autoformat/Hang.pm        2019-08-13 
12:42:46.000000000 +0200
@@ -1,5 +1,5 @@
 package Text::Autoformat::Hang;
-$Text::Autoformat::Hang::VERSION = '1.74';
+$Text::Autoformat::Hang::VERSION = '1.75';
 use 5.006;
 use strict;
 use warnings;
@@ -85,7 +85,7 @@
                 : ($lists_mode =~ /1|alpha/i && $_[1] =~ s#\A($let(?!$let))##i)
                         ? { type=>'let', val=>$1 }
                 :         { val => "", type => "" };
-            $_[1] = $pre.$_[1] and last unless $val->{val};
+            $_[1] = $pre.$_[1] and last unless length $val->{val};
             $val->{post} = $pre && $_[1] =~ 
s#\A($ows()[.:/]?[$close{$pre}][.:/]?)## && $1
                              || $_[1] =~ s#\A($ows()[$sbr.:/])## && $1
                              || "";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-Autoformat-1.74/lib/Text/Autoformat/NullHang.pm 
new/Text-Autoformat-1.75/lib/Text/Autoformat/NullHang.pm
--- old/Text-Autoformat-1.74/lib/Text/Autoformat/NullHang.pm    2015-11-28 
16:21:56.000000000 +0100
+++ new/Text-Autoformat-1.75/lib/Text/Autoformat/NullHang.pm    2019-08-13 
12:42:46.000000000 +0200
@@ -1,5 +1,5 @@
 package Text::Autoformat::NullHang;
-$Text::Autoformat::NullHang::VERSION = '1.74';
+$Text::Autoformat::NullHang::VERSION = '1.75';
 use 5.006;
 use strict;
 use warnings;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-Autoformat-1.74/lib/Text/Autoformat.pm 
new/Text-Autoformat-1.75/lib/Text/Autoformat.pm
--- old/Text-Autoformat-1.74/lib/Text/Autoformat.pm     2015-11-28 
16:21:56.000000000 +0100
+++ new/Text-Autoformat-1.75/lib/Text/Autoformat.pm     2019-08-13 
12:42:46.000000000 +0200
@@ -1,5 +1,5 @@
 package Text::Autoformat;
-$Text::Autoformat::VERSION = '1.74';
+$Text::Autoformat::VERSION = '1.75';
 use 5.006;
 use strict;
 use warnings;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-Autoformat-1.74/t/03.zero-number.t 
new/Text-Autoformat-1.75/t/03.zero-number.t
--- old/Text-Autoformat-1.74/t/03.zero-number.t 1970-01-01 01:00:00.000000000 
+0100
+++ new/Text-Autoformat-1.75/t/03.zero-number.t 2019-08-13 12:42:46.000000000 
+0200
@@ -0,0 +1,31 @@
+use utf8;
+use strict;
+use Test::More tests => 2;
+use Text::Autoformat;
+
+my $str = <<'END';
+1. Analyze problem
+0. Design algorithm
+3. Code solution
+END
+
+my $after = autoformat $str, { lists => 'number', all => 1 }; 
+
+is(
+  $after,
+  "1. Analyze problem\n2. Design algorithm\n3. Code solution\n",
+  "do not lose 0 in list"
+);
+
+$str = <<'END';
+4.0 Analyze problem
+END
+
+$after = autoformat $str, { lists => 'number', all => 1 }; 
+
+is(
+  $after,
+  "4.0 Analyze problem\n",
+  "do not lose 0 at end of list"
+);
+


Reply via email to