commit perl-Time-Duration-Parse for openSUSE:Factory
Hello community, here is the log from the commit of package perl-Time-Duration-Parse for openSUSE:Factory checked in at 2019-05-20 10:28:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Time-Duration-Parse (Old) and /work/SRC/openSUSE:Factory/.perl-Time-Duration-Parse.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "perl-Time-Duration-Parse" Mon May 20 10:28:30 2019 rev:13 rq:703879 version:0.15 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Time-Duration-Parse/perl-Time-Duration-Parse.changes 2018-07-28 12:39:53.436366757 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Time-Duration-Parse.new.5148/perl-Time-Duration-Parse.changes 2019-05-20 10:28:36.721911987 +0200 @@ -1,0 +2,11 @@ +Mon May 13 05:29:03 UTC 2019 - Stephan Kulow <coolo@suse.com> + +- updated to 0.15 + see /usr/share/doc/packages/perl-Time-Duration-Parse/Changes + + 0.15 2019-05-12 NEILB + - Added support for fractional parts of seconds in hh:mm:ss.ssss + - Added L<> links to Time::Duration and duration_exact in that module. + - Fixed grammar in doc + +------------------------------------------------------------------- Old: ---- Time-Duration-Parse-0.14.tar.gz New: ---- Time-Duration-Parse-0.15.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Time-Duration-Parse.spec ++++++ --- /var/tmp/diff_new_pack.lNFblr/_old 2019-05-20 10:28:38.353911446 +0200 +++ /var/tmp/diff_new_pack.lNFblr/_new 2019-05-20 10:28:38.381911437 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Time-Duration-Parse # -# Copyright (c) 2018 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,18 +12,18 @@ # 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-Time-Duration-Parse -Version: 0.14 +Version: 0.15 Release: 0 %define cpan_name Time-Duration-Parse Summary: Parse string that represents time duration License: Artistic-1.0 OR GPL-1.0-or-later Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Time-Duration-Parse/ +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 @@ -40,8 +40,8 @@ Time::Duration::Parse is a module to parse human readable duration strings like _2 minutes and 3 seconds_ to seconds. -It does the opposite of _duration_exact_ function in Time::Duration and is -roundtrip safe. So, the following is always true. +It does the opposite of Time::Duration/duration_exact function in +Time::Duration and is roundtrip safe. So, the following is always true. use Time::Duration::Parse; use Time::Duration; @@ -53,11 +53,11 @@ %setup -q -n %{cpan_name}-%{version} %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 ++++++ Time-Duration-Parse-0.14.tar.gz -> Time-Duration-Parse-0.15.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Time-Duration-Parse-0.14/Changes new/Time-Duration-Parse-0.15/Changes --- old/Time-Duration-Parse-0.14/Changes 2018-06-29 17:14:04.000000000 +0200 +++ new/Time-Duration-Parse-0.15/Changes 2019-05-12 10:42:55.000000000 +0200 @@ -1,5 +1,10 @@ Revision history for Perl extension Time::Duration::Parse +0.15 2019-05-12 NEILB + - Added support for fractional parts of seconds in hh:mm:ss.ssss + - Added L<> links to Time::Duration and duration_exact in that module. + - Fixed grammar in doc + 0.14 2018-06-29 NEILB - Added "hrs" as another form for "hours". Thanks to Stig for the PR. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Time-Duration-Parse-0.14/META.json new/Time-Duration-Parse-0.15/META.json --- old/Time-Duration-Parse-0.14/META.json 2018-06-29 17:14:04.000000000 +0200 +++ new/Time-Duration-Parse-0.15/META.json 2019-05-12 10:42:55.000000000 +0200 @@ -44,7 +44,7 @@ "web" : "https://github.com/neilb/Time-Duration-Parse" } }, - "version" : "0.14", + "version" : "0.15", "x_serialization_backend" : "Cpanel::JSON::XS version 3.0217" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Time-Duration-Parse-0.14/META.yml new/Time-Duration-Parse-0.15/META.yml --- old/Time-Duration-Parse-0.14/META.yml 2018-06-29 17:14:04.000000000 +0200 +++ new/Time-Duration-Parse-0.15/META.yml 2019-05-12 10:42:55.000000000 +0200 @@ -23,5 +23,5 @@ resources: homepage: https://github.com/neilb/Time-Duration-Parse repository: https://github.com/neilb/Time-Duration-Parse.git -version: '0.14' +version: '0.15' x_serialization_backend: 'YAML::Tiny version 1.62' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Time-Duration-Parse-0.14/Makefile.PL new/Time-Duration-Parse-0.15/Makefile.PL --- old/Time-Duration-Parse-0.14/Makefile.PL 2018-06-29 17:14:04.000000000 +0200 +++ new/Time-Duration-Parse-0.15/Makefile.PL 2019-05-12 10:42:55.000000000 +0200 @@ -26,7 +26,7 @@ "Test::More" => "0.88", "Time::Duration" => 0 }, - "VERSION" => "0.14", + "VERSION" => "0.15", "test" => { "TESTS" => "t/*.t" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Time-Duration-Parse-0.14/README new/Time-Duration-Parse-0.15/README --- old/Time-Duration-Parse-0.14/README 2018-06-29 17:14:04.000000000 +0200 +++ new/Time-Duration-Parse-0.15/README 2019-05-12 10:42:55.000000000 +0200 @@ -1,5 +1,5 @@ This archive contains the distribution Time-Duration-Parse, -version 0.14: +version 0.15: Parse string that represents time duration diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Time-Duration-Parse-0.14/dist.ini new/Time-Duration-Parse-0.15/dist.ini --- old/Time-Duration-Parse-0.14/dist.ini 2018-06-29 17:14:04.000000000 +0200 +++ new/Time-Duration-Parse-0.15/dist.ini 2019-05-12 10:42:55.000000000 +0200 @@ -4,7 +4,7 @@ copyright_holder = Tatsuhiko Miyagawa copyright_year = 2006 -version = 0.14 +version = 0.15 [@Basic] [PkgVersion] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Time-Duration-Parse-0.14/lib/Time/Duration/Parse.pm new/Time-Duration-Parse-0.15/lib/Time/Duration/Parse.pm --- old/Time-Duration-Parse-0.14/lib/Time/Duration/Parse.pm 2018-06-29 17:14:04.000000000 +0200 +++ new/Time-Duration-Parse-0.15/lib/Time/Duration/Parse.pm 2019-05-12 10:42:55.000000000 +0200 @@ -1,5 +1,5 @@ package Time::Duration::Parse; -$Time::Duration::Parse::VERSION = '0.14'; +$Time::Duration::Parse::VERSION = '0.15'; use 5.006; use strict; use warnings; @@ -30,7 +30,7 @@ } # Convert hh:mm(:ss)? to something we understand - $timespec =~ s/\b(\d+):(\d\d):(\d\d)\b/$1h $2m $3s/g; + $timespec =~ s/\b(\d+):(\d\d):(\d\d(\.\d+)?)\b/$1h $2m $3s/g; $timespec =~ s/\b(\d+):(\d\d)\b/$1h $2m/g; my $duration = 0; @@ -71,8 +71,10 @@ Time::Duration::Parse is a module to parse human readable duration strings like I<2 minutes and 3 seconds> to seconds. -It does the opposite of I<duration_exact> function in Time::Duration -and is roundtrip safe. So, the following is always true. +It does the opposite of L<Time::Duration/duration_exact> function +in L<Time::Duration> +and is roundtrip safe. +So, the following is always true. use Time::Duration::Parse; use Time::Duration; @@ -88,9 +90,10 @@ $seconds = parse_duration($string); -Parses duration string and returns seconds. When it encounters an -error in a given string, it dies an exception saying "Unknown -timespec: blah blah blah". This function is exported by default. +Parses duration string and returns seconds. +When it encounters an error in a given string, +it dies with an exception saying "Unknown timespec: blah blah blah". +This function is exported by default. =back diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Time-Duration-Parse-0.14/t/01_parse.t new/Time-Duration-Parse-0.15/t/01_parse.t --- old/Time-Duration-Parse-0.14/t/01_parse.t 2018-06-29 17:14:04.000000000 +0200 +++ new/Time-Duration-Parse-0.15/t/01_parse.t 2019-05-12 10:42:55.000000000 +0200 @@ -27,6 +27,9 @@ ['1d 2:03:01', 93781], ['1d -24:00', 0], ['2:03', 7380], + ['2:03:00', 7380], + ['2:03:00.1', 7380], + ['2:03:00.8', 7381], [' 1s ', 1], [' 1 ', 1],
participants (1)
-
root