Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package perl-DateTime-Format-Natural for
openSUSE:Factory checked in at 2023-07-12 17:26:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-DateTime-Format-Natural (Old)
and /work/SRC/openSUSE:Factory/.perl-DateTime-Format-Natural.new.8922
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-DateTime-Format-Natural"
Wed Jul 12 17:26:51 2023 rev:9 rq:1098154 version:1.17
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-DateTime-Format-Natural/perl-DateTime-Format-Natural.changes
2023-02-28 12:49:06.824664261 +0100
+++
/work/SRC/openSUSE:Factory/.perl-DateTime-Format-Natural.new.8922/perl-DateTime-Format-Natural.changes
2023-07-12 17:27:09.894429176 +0200
@@ -1,0 +2,13 @@
+Wed Jun 21 03:06:14 UTC 2023 - Tina Müller <[email protected]>
+
+- updated to 1.17
+ see /usr/share/doc/packages/perl-DateTime-Format-Natural/Changes
+
+ 1.17 2023-06-20 <[email protected]>
+ - Merged development version to stable.
+ - Minor tweak.
+ 1.16_01 2023-06-18 <[email protected]>
+ - Fix parse_datetime_duration doesn't understand hours
+ with no minutes, anymore. [github #19 - Giovanni Pensa]
+
+-------------------------------------------------------------------
Old:
----
DateTime-Format-Natural-1.16.tar.gz
New:
----
DateTime-Format-Natural-1.17.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-DateTime-Format-Natural.spec ++++++
--- /var/tmp/diff_new_pack.8UKLDN/_old 2023-07-12 17:27:10.718433980 +0200
+++ /var/tmp/diff_new_pack.8UKLDN/_new 2023-07-12 17:27:10.722434003 +0200
@@ -18,7 +18,7 @@
%define cpan_name DateTime-Format-Natural
Name: perl-DateTime-Format-Natural
-Version: 1.16
+Version: 1.17
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Parse informal natural language date/time strings
@@ -56,17 +56,17 @@
%prep
%autosetup -n %{cpan_name}-%{version}
-find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path
"*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
+find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path
"*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod
644
%build
-perl Build.PL installdirs=vendor
-./Build build flags=%{?_smp_mflags}
+perl Build.PL --installdirs=vendor
+./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
-./Build install destdir=%{buildroot} create_packlist=0
+./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
++++++ DateTime-Format-Natural-1.16.tar.gz ->
DateTime-Format-Natural-1.17.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Natural-1.16/Changes
new/DateTime-Format-Natural-1.17/Changes
--- old/DateTime-Format-Natural-1.16/Changes 2023-02-04 16:22:16.000000000
+0100
+++ new/DateTime-Format-Natural-1.17/Changes 2023-06-20 19:43:36.000000000
+0200
@@ -1,5 +1,16 @@
Revision history for Perl extension DateTime::Format::Natural.
+1.17 2023-06-20 <[email protected]>
+
+ - Merged development version to stable.
+
+ - Minor tweak.
+
+1.16_01 2023-06-18 <[email protected]>
+
+ - Fix parse_datetime_duration doesn't understand hours
+ with no minutes, anymore. [github #19 - Giovanni Pensa]
+
1.16 2023-02-04 <[email protected]>
- Merged development version to stable.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Natural-1.16/META.json
new/DateTime-Format-Natural-1.17/META.json
--- old/DateTime-Format-Natural-1.16/META.json 2023-02-04 16:22:16.000000000
+0100
+++ new/DateTime-Format-Natural-1.17/META.json 2023-06-20 19:43:36.000000000
+0200
@@ -54,7 +54,7 @@
"provides" : {
"DateTime::Format::Natural" : {
"file" : "lib/DateTime/Format/Natural.pm",
- "version" : "1.16"
+ "version" : "1.17"
},
"DateTime::Format::Natural::Calc" : {
"file" : "lib/DateTime/Format/Natural/Calc.pm",
@@ -98,7 +98,7 @@
},
"DateTime::Format::Natural::Rewrite" : {
"file" : "lib/DateTime/Format/Natural/Rewrite.pm",
- "version" : "0.07"
+ "version" : "0.08"
},
"DateTime::Format::Natural::Test" : {
"file" : "lib/DateTime/Format/Natural/Test.pm",
@@ -122,6 +122,6 @@
"url" : "https://github.com/stsc/DateTime-Format-Natural"
}
},
- "version" : "1.16",
+ "version" : "1.17",
"x_serialization_backend" : "JSON::PP version 4.04"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Natural-1.16/META.yml
new/DateTime-Format-Natural-1.17/META.yml
--- old/DateTime-Format-Natural-1.16/META.yml 2023-02-04 16:22:16.000000000
+0100
+++ new/DateTime-Format-Natural-1.17/META.yml 2023-06-20 19:43:36.000000000
+0200
@@ -22,7 +22,7 @@
provides:
DateTime::Format::Natural:
file: lib/DateTime/Format/Natural.pm
- version: '1.16'
+ version: '1.17'
DateTime::Format::Natural::Calc:
file: lib/DateTime/Format/Natural/Calc.pm
version: '1.46'
@@ -55,7 +55,7 @@
version: '1.72'
DateTime::Format::Natural::Rewrite:
file: lib/DateTime/Format/Natural/Rewrite.pm
- version: '0.07'
+ version: '0.08'
DateTime::Format::Natural::Test:
file: lib/DateTime/Format/Natural/Test.pm
version: '0.12'
@@ -84,5 +84,5 @@
resources:
license: http://dev.perl.org/licenses/
repository: https://github.com/stsc/DateTime-Format-Natural
-version: '1.16'
+version: '1.17'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/DateTime-Format-Natural-1.16/lib/DateTime/Format/Natural/Rewrite.pm
new/DateTime-Format-Natural-1.17/lib/DateTime/Format/Natural/Rewrite.pm
--- old/DateTime-Format-Natural-1.16/lib/DateTime/Format/Natural/Rewrite.pm
2023-02-04 16:22:16.000000000 +0100
+++ new/DateTime-Format-Natural-1.17/lib/DateTime/Format/Natural/Rewrite.pm
2023-06-20 19:43:36.000000000 +0200
@@ -3,7 +3,7 @@
use strict;
use warnings;
-our $VERSION = '0.07';
+our $VERSION = '0.08';
sub _rewrite
{
@@ -79,6 +79,27 @@
}
}
+sub _rewrite_duration
+{
+ my $self = shift;
+ my ($date_strings) = @_;
+
+ my ($formatted) = $date_strings->[0] =~ $self->{data}->__regexes('format');
+ my %count = $self->_count_separators($formatted);
+
+ return unless ($self->_check_formatted('ymd', \%count)
+ || $self->_check_formatted('md', \%count));
+
+ if ($date_strings->[0] =~ /^ \Q$formatted\E \s+ \d{1,2} $/x) {
+ $date_strings->[0] .= ':00';
+ }
+ if (@$date_strings == 2
+ && $date_strings->[1] =~ /^ \d{1,2} $/x)
+ {
+ $date_strings->[1] .= ':00';
+ }
+}
+
1;
__END__
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/DateTime-Format-Natural-1.16/lib/DateTime/Format/Natural.pm
new/DateTime-Format-Natural-1.17/lib/DateTime/Format/Natural.pm
--- old/DateTime-Format-Natural-1.16/lib/DateTime/Format/Natural.pm
2023-02-04 16:22:16.000000000 +0100
+++ new/DateTime-Format-Natural-1.17/lib/DateTime/Format/Natural.pm
2023-06-20 19:43:36.000000000 +0200
@@ -24,7 +24,7 @@
use DateTime::Format::Natural::Utils qw(trim);
-our $VERSION = '1.16';
+our $VERSION = '1.17';
validation_options(
on_fail => sub
@@ -357,6 +357,8 @@
$shrinked = true;
}
+ $self->_rewrite_duration(\@date_strings);
+
$self->_pre_duration(\@date_strings);
@$self{qw(state truncated_duration)} = ({}, []);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Natural-1.16/t/04-parse_durations.t
new/DateTime-Format-Natural-1.17/t/04-parse_durations.t
--- old/DateTime-Format-Natural-1.16/t/04-parse_durations.t 2023-02-04
16:22:16.000000000 +0100
+++ new/DateTime-Format-Natural-1.17/t/04-parse_durations.t 2023-06-20
19:43:36.000000000 +0200
@@ -52,9 +52,13 @@
{ 'jan 1 to 2nd', => [ [ '01.01.2006
00:00:00', truncated ], [ '02.01.2006 00:00:00', truncated ] ] },
{ '26 oct {at} 10:00{sec} to 11{min_sec}{ }am', => [ [ '26.10.2006
10:00:{sec}', truncated ], [ '26.10.2006 11:{min_sec}', truncated ] ] },
{ '26 oct {at} 10{min_sec}{ }am to 11:00{sec}', => [ [ '26.10.2006
10:{min_sec}', truncated ], [ '26.10.2006 11:00:{sec}', truncated ] ] },
+ { '2022-09-01 14:35 to 18', => [ [ '01.09.2022
14:35:00', truncated ], [ '01.09.2022 18:00:00', truncated ] ] },
+ { '2022-09-01 14 to 18:35', => [ [ '01.09.2022
14:00:00', truncated ], [ '01.09.2022 18:35:00', truncated ] ] },
+ { '9/1 14:35 to 18', => [ [ '01.09.2006
14:35:00', truncated ], [ '01.09.2006 18:00:00', truncated ] ] },
+ { '9/1 14 to 18:35', => [ [ '01.09.2006
14:00:00', truncated ], [ '01.09.2006 18:35:00', truncated ] ] },
);
-_run_tests(160, [ [ \@absolute ], [ \@combined ], [ \@relative ] ], \&compare);
+_run_tests(164, [ [ \@absolute ], [ \@combined ], [ \@relative ] ], \&compare);
sub compare
{