Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package perl-DateTime-Format-MySQL for
openSUSE:Factory checked in at 2023-08-08 17:26:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-DateTime-Format-MySQL (Old)
and /work/SRC/openSUSE:Factory/.perl-DateTime-Format-MySQL.new.22712 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-DateTime-Format-MySQL"
Tue Aug 8 17:26:50 2023 rev:13 rq:1102953 version:0.0800
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-DateTime-Format-MySQL/perl-DateTime-Format-MySQL.changes
2021-06-02 22:12:13.804154600 +0200
+++
/work/SRC/openSUSE:Factory/.perl-DateTime-Format-MySQL.new.22712/perl-DateTime-Format-MySQL.changes
2023-08-08 17:26:51.563519014 +0200
@@ -1,0 +2,10 @@
+Wed Aug 2 03:07:47 UTC 2023 - Tina Müller <[email protected]>
+
+- updated to 0.08
+ see /usr/share/doc/packages/perl-DateTime-Format-MySQL/Changes
+
+ 0.08 2023-07-31
+
+ - Fix parsing microsecond < 100,000 off DateTime object by zero-padding
+
+-------------------------------------------------------------------
Old:
----
DateTime-Format-MySQL-0.0701.tar.gz
New:
----
DateTime-Format-MySQL-0.08.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-DateTime-Format-MySQL.spec ++++++
--- /var/tmp/diff_new_pack.drXE8Y/_old 2023-08-08 17:26:52.311523662 +0200
+++ /var/tmp/diff_new_pack.drXE8Y/_new 2023-08-08 17:26:52.315523687 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-DateTime-Format-MySQL
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,19 +18,20 @@
%define cpan_name DateTime-Format-MySQL
Name: perl-DateTime-Format-MySQL
-Version: 0.0701
+Version: 0.0800
Release: 0
-Summary: Parse and format MySQL dates and times
+%define cpan_version 0.08
License: Artistic-1.0 OR GPL-1.0-or-later
+Summary: Parse and format MySQL dates and times
URL: https://metacpan.org/release/%{cpan_name}
-Source0:
https://cpan.metacpan.org/authors/id/X/XM/XMIKEW/%{cpan_name}-%{version}.tar.gz
+Source0:
https://cpan.metacpan.org/authors/id/X/XM/XMIKEW/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(DateTime)
BuildRequires: perl(DateTime::Format::Builder) >= 0.6
-BuildRequires: perl(Module::Build) >= 0.420000
+BuildRequires: perl(Module::Build) >= 0.42
Requires: perl(DateTime)
Requires: perl(DateTime::Format::Builder) >= 0.6
%{perl_requires}
@@ -42,17 +43,17 @@
produce a string representing it in the MySQL format.
%prep
-%autosetup -n %{cpan_name}-%{version}
+%autosetup -n %{cpan_name}-%{cpan_version}
%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-MySQL-0.0701.tar.gz -> DateTime-Format-MySQL-0.08.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-MySQL-0.0701/Changes
new/DateTime-Format-MySQL-0.08/Changes
--- old/DateTime-Format-MySQL-0.0701/Changes 2021-05-22 15:32:29.000000000
+0200
+++ new/DateTime-Format-MySQL-0.08/Changes 2023-08-01 00:38:25.000000000
+0200
@@ -1,3 +1,7 @@
+0.08 2023-07-31
+
+- Fix parsing microsecond < 100,000 off DateTime object by zero-padding
+
0.0701 2021-05-22
- Fix versioning, reindex
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-MySQL-0.0701/META.json
new/DateTime-Format-MySQL-0.08/META.json
--- old/DateTime-Format-MySQL-0.0701/META.json 2021-05-22 15:32:29.000000000
+0200
+++ new/DateTime-Format-MySQL-0.08/META.json 2023-08-01 00:38:25.000000000
+0200
@@ -4,13 +4,13 @@
"Dave Rolsky <[email protected]>"
],
"dynamic_config" : 1,
- "generated_by" : "Module::Build version 0.421",
+ "generated_by" : "Module::Build version 0.4234",
"license" : [
"perl_5"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
- "version" : "2"
+ "version" : 2
},
"name" : "DateTime-Format-MySQL",
"prereqs" : {
@@ -34,7 +34,7 @@
"provides" : {
"DateTime::Format::MySQL" : {
"file" : "lib/DateTime/Format/MySQL.pm",
- "version" : "0.0701"
+ "version" : "0.08"
}
},
"release_status" : "stable",
@@ -43,5 +43,6 @@
"http://dev.perl.org/licenses/"
]
},
- "version" : "0.0701"
+ "version" : "0.08",
+ "x_serialization_backend" : "JSON::PP version 4.06"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-MySQL-0.0701/META.yml
new/DateTime-Format-MySQL-0.08/META.yml
--- old/DateTime-Format-MySQL-0.0701/META.yml 2021-05-22 15:32:29.000000000
+0200
+++ new/DateTime-Format-MySQL-0.08/META.yml 2023-08-01 00:38:25.000000000
+0200
@@ -7,7 +7,7 @@
configure_requires:
Module::Build: '0.42'
dynamic_config: 1
-generated_by: 'Module::Build version 0.421, CPAN::Meta::Converter version
2.142060'
+generated_by: 'Module::Build version 0.4234, CPAN::Meta::Converter version
2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -16,10 +16,11 @@
provides:
DateTime::Format::MySQL:
file: lib/DateTime/Format/MySQL.pm
- version: '0.0701'
+ version: '0.08'
requires:
DateTime: '0'
DateTime::Format::Builder: '0.6'
resources:
license: http://dev.perl.org/licenses/
-version: '0.0701'
+version: '0.08'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-MySQL-0.0701/Makefile.PL
new/DateTime-Format-MySQL-0.08/Makefile.PL
--- old/DateTime-Format-MySQL-0.0701/Makefile.PL 2021-05-22
15:32:29.000000000 +0200
+++ new/DateTime-Format-MySQL-0.08/Makefile.PL 2023-08-01 00:38:25.000000000
+0200
@@ -1,4 +1,4 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.4210
+# Note: this file was auto-generated by Module::Build::Compat version 0.4234
unless (eval "use Module::Build::Compat 0.02; 1" ) {
print "This module requires Module::Build to install itself.\n";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/DateTime-Format-MySQL-0.0701/lib/DateTime/Format/MySQL.pm
new/DateTime-Format-MySQL-0.08/lib/DateTime/Format/MySQL.pm
--- old/DateTime-Format-MySQL-0.0701/lib/DateTime/Format/MySQL.pm
2021-05-22 15:32:29.000000000 +0200
+++ new/DateTime-Format-MySQL-0.08/lib/DateTime/Format/MySQL.pm 2023-08-01
00:38:25.000000000 +0200
@@ -4,7 +4,7 @@
use vars qw ($VERSION);
-$VERSION = '0.0701';
+$VERSION = '0.08';
use DateTime;
use DateTime::Format::Builder
@@ -104,7 +104,7 @@
{
my ( $self, $dt ) = @_;
- return $dt->microsecond ? join('.', $dt->hms(':'), $dt->microsecond) :
$dt->hms(':');
+ return $dt->microsecond ? join('.', $dt->hms(':'), sprintf("%06d",
$dt->microsecond)) : $dt->hms(':');
}
sub format_datetime
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-MySQL-0.0701/t/01format.t
new/DateTime-Format-MySQL-0.08/t/01format.t
--- old/DateTime-Format-MySQL-0.0701/t/01format.t 2021-05-22
15:32:29.000000000 +0200
+++ new/DateTime-Format-MySQL-0.08/t/01format.t 2023-08-01 00:38:25.000000000
+0200
@@ -1,6 +1,6 @@
use strict;
-use Test::More tests => 7;
+use Test::More tests => 12;
use DateTime::Format::MySQL;
@@ -42,4 +42,31 @@
$dt_hires->set(nanosecond => 500_000_000);
is( $mysql->format_time($dt_hires), '15:23:44.500000', 'format_time hires
keeps 6 digit precision');
+}
+
+
+$dt_hires = DateTime->new( year => 2000,
+ month => 5,
+ day => 6,
+ hour => 15,
+ minute => 23,
+ second => 44,
+ nanosecond => 12_345_000,
+ time_zone => 'UTC',
+ );
+
+{
+ is( $mysql->format_time($dt_hires), '15:23:44.012345', 'format_time hires
keeps micros');
+
+ $dt_hires->set(nanosecond => 12_345_000);
+ is( $mysql->format_time($dt_hires), '15:23:44.012345', 'format_time hires
truncates nanos');
+
+ $dt_hires->set(nanosecond => 1);
+ is( $mysql->format_time($dt_hires), '15:23:44', 'format_time hires drops
nanos < 1 micro');
+
+ $dt_hires->set(nanosecond => 1_000);
+ is( $mysql->format_time($dt_hires), '15:23:44.000001', 'format_time hires
ok with 1 micro');
+
+ $dt_hires->set(nanosecond => 500_000_000);
+ is( $mysql->format_time($dt_hires), '15:23:44.500000', 'format_time hires
keeps 6 digit precision');
}