Hello community,
here is the log from the commit of package perl-Test-MockTime for
openSUSE:Factory checked in at 2018-02-27 16:57:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Test-MockTime (Old)
and /work/SRC/openSUSE:Factory/.perl-Test-MockTime.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Test-MockTime"
Tue Feb 27 16:57:27 2018 rev:5 rq:579746 version:0.16
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Test-MockTime/perl-Test-MockTime.changes
2015-09-08 17:47:28.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.perl-Test-MockTime.new/perl-Test-MockTime.changes
2018-02-27 16:57:29.333058750 +0100
@@ -1,0 +2,10 @@
+Fri Feb 23 07:07:53 UTC 2018 - [email protected]
+
+- updated to 0.16
+ see /usr/share/doc/packages/perl-Test-MockTime/Changes
+
+ 0.16 - 22 Feb 2018
+
+ * Fixed calls to CORE::localtime in test suite to cope with years >
2020 as per RT #124508. Thanks to Bernhard M. W. for patch.
+
+-------------------------------------------------------------------
Old:
----
Test-MockTime-0.15.tar.gz
New:
----
Test-MockTime-0.16.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Test-MockTime.spec ++++++
--- /var/tmp/diff_new_pack.kcjsfB/_old 2018-02-27 16:57:30.341022330 +0100
+++ /var/tmp/diff_new_pack.kcjsfB/_new 2018-02-27 16:57:30.345022185 +0100
@@ -1,7 +1,7 @@
#
# spec file for package perl-Test-MockTime
#
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -17,14 +17,14 @@
Name: perl-Test-MockTime
-Version: 0.15
+Version: 0.16
Release: 0
%define cpan_name Test-MockTime
Summary: Replaces actual time with simulated time
-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/Test-MockTime/
-Source0:
http://www.cpan.org/authors/id/D/DD/DDICK/%{cpan_name}-%{version}.tar.gz
+Source0:
https://cpan.metacpan.org/authors/id/D/DD/DDICK/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -43,7 +43,7 @@
%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
++++++ Test-MockTime-0.15.tar.gz -> Test-MockTime-0.16.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockTime-0.15/Changes
new/Test-MockTime-0.16/Changes
--- old/Test-MockTime-0.15/Changes 2015-09-03 14:14:02.000000000 +0200
+++ new/Test-MockTime-0.16/Changes 2018-02-22 11:06:13.000000000 +0100
@@ -1,6 +1,10 @@
CHANGES
-------
+ 0.16 - 22 Feb 2018
+
+ * Fixed calls to CORE::localtime in test suite to cope with years > 2020
as per RT #124508. Thanks to Bernhard M. W. for patch.
+
0.15 - 03 Sep 2015
* Corrected README. Merged POD into pm file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockTime-0.15/META.json
new/Test-MockTime-0.16/META.json
--- old/Test-MockTime-0.15/META.json 2015-09-03 14:22:32.000000000 +0200
+++ new/Test-MockTime-0.16/META.json 2018-02-22 11:07:35.000000000 +0100
@@ -4,13 +4,13 @@
"David Dick <[email protected]>"
],
"dynamic_config" : 1,
- "generated_by" : "ExtUtils::MakeMaker version 7.04, CPAN::Meta::Converter
version 2.150001",
+ "generated_by" : "ExtUtils::MakeMaker version 7.3, CPAN::Meta::Converter
version 2.150010",
"license" : [
"perl_5"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
- "version" : "2"
+ "version" : 2
},
"name" : "Test-MockTime",
"no_index" : {
@@ -39,5 +39,6 @@
}
},
"release_status" : "stable",
- "version" : "0.15"
+ "version" : "0.16",
+ "x_serialization_backend" : "JSON::PP version 2.94"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockTime-0.15/META.yml
new/Test-MockTime-0.16/META.yml
--- old/Test-MockTime-0.15/META.yml 2015-09-03 14:22:32.000000000 +0200
+++ new/Test-MockTime-0.16/META.yml 2018-02-22 11:07:35.000000000 +0100
@@ -7,7 +7,7 @@
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 7.04, CPAN::Meta::Converter version
2.150001'
+generated_by: 'ExtUtils::MakeMaker version 7.3, CPAN::Meta::Converter version
2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -21,4 +21,5 @@
Test::More: '0'
Time::Local: '0'
Time::Piece: '1.08'
-version: '0.15'
+version: '0.16'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockTime-0.15/README
new/Test-MockTime-0.16/README
--- old/Test-MockTime-0.15/README 2015-09-03 14:22:22.000000000 +0200
+++ new/Test-MockTime-0.16/README 2018-02-22 11:07:02.000000000 +0100
@@ -4,7 +4,7 @@
VERSION
- Version 0.15
+ Version 0.16
SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockTime-0.15/lib/Test/MockTime.pm
new/Test-MockTime-0.16/lib/Test/MockTime.pm
--- old/Test-MockTime-0.15/lib/Test/MockTime.pm 2015-09-03 14:22:20.000000000
+0200
+++ new/Test-MockTime-0.16/lib/Test/MockTime.pm 2018-02-22 11:06:36.000000000
+0100
@@ -12,7 +12,7 @@
restore_time
);
our %EXPORT_TAGS = ( 'all' => \@EXPORT_OK, );
-our $VERSION = '0.15';
+our $VERSION = '0.16';
our $offset = 0;
our $fixed = undef;
@@ -108,7 +108,7 @@
=head1 VERSION
-Version 0.15
+Version 0.16
=head1 SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockTime-0.15/t/test.t
new/Test-MockTime-0.16/t/test.t
--- old/Test-MockTime-0.15/t/test.t 2005-03-20 06:11:29.000000000 +0100
+++ new/Test-MockTime-0.16/t/test.t 2020-10-22 12:01:13.000000000 +0200
@@ -38,7 +38,9 @@
sleep 2;
$mock = time;
ok(($mock >= 102) && ($mock <= 103), "Absolute time is still in sync after two
seconds sleep:$mock");
-$mock = Time::Local::timelocal(localtime);
+my @localtime = localtime;
+$localtime[5] += 1900; # to make sure that year=70 is not interpreted as 2070
+$mock = Time::Local::timelocal(@localtime);
$real = Time::Local::timelocal(CORE::localtime);
ok($mock <= $real, "localtime seems ok");
Test::MockTime::set_fixed_time(CORE::time);