Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-Test-Time for openSUSE:Factory checked in at 2022-06-16 18:21:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Test-Time (Old) and /work/SRC/openSUSE:Factory/.perl-Test-Time.new.1548 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Test-Time" Thu Jun 16 18:21:17 2022 rev:4 rq:983158 version:0.092 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Test-Time/perl-Test-Time.changes 2019-05-07 23:20:03.437064710 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Test-Time.new.1548/perl-Test-Time.changes 2022-06-16 18:22:34.088280989 +0200 @@ -1,0 +2,15 @@ +Fri Jun 10 03:08:18 UTC 2022 - Tina M??ller <timueller+p...@suse.de> + +- updated to 0.092 + see /usr/share/doc/packages/perl-Test-Time/Changes + + 0.092 2022-06-09T11:18:57Z + Fix x_authority (No change in the code) + + 0.091 2022-06-09T11:04:30Z + Fix prototype attributes for older perl versions + + 0.09 2022-06-09T10:56:31Z + Avoid subroutine redefine warning when using with Devel::Cover (nanto #15) + +------------------------------------------------------------------- Old: ---- Test-Time-0.08.tar.gz New: ---- Test-Time-0.092.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Test-Time.spec ++++++ --- /var/tmp/diff_new_pack.9g8byi/_old 2022-06-16 18:22:34.448281501 +0200 +++ /var/tmp/diff_new_pack.9g8byi/_new 2022-06-16 18:22:34.456281512 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Test-Time # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,20 +16,19 @@ # +%define cpan_name Test-Time Name: perl-Test-Time -Version: 0.08 +Version: 0.092 Release: 0 -%define cpan_name Test-Time -Summary: Overrides the time() and sleep() core functions for testing License: Artistic-1.0 OR GPL-1.0-or-later -Group: Development/Libraries/Perl -Url: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/S/SA/SATOH/%{cpan_name}-%{version}.tar.gz +Summary: Overrides the time() and sleep() core functions for testing +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/A/AN/ANATOFUZ/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64 %{perl_requires} %description @@ -45,11 +44,11 @@ my $then = time; # $then equals to 301 %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{version} %build -perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor +%make_build %check make test @@ -60,7 +59,6 @@ %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes minil.toml README README.md %license LICENSE ++++++ Test-Time-0.08.tar.gz -> Test-Time-0.092.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Time-0.08/Changes new/Test-Time-0.092/Changes --- old/Test-Time-0.08/Changes 2019-05-07 03:55:59.000000000 +0200 +++ new/Test-Time-0.092/Changes 2022-06-09 13:18:58.000000000 +0200 @@ -1,3 +1,12 @@ +0.092 2022-06-09T11:18:57Z + Fix x_authority (No change in the code) + +0.091 2022-06-09T11:04:30Z + Fix prototype attributes for older perl versions + +0.09 2022-06-09T10:56:31Z + Avoid subroutine redefine warning when using with Devel::Cover (nanto #15) + 0.08 2019-05-07T01:55:51Z Fix test (thanks to manwar, mjemmeson, chorny) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Time-0.08/META.json new/Test-Time-0.092/META.json --- old/Test-Time-0.08/META.json 2019-05-07 03:55:59.000000000 +0200 +++ new/Test-Time-0.092/META.json 2022-06-09 13:18:58.000000000 +0200 @@ -4,7 +4,7 @@ "cho45 <ch...@lowreal.net>" ], "dynamic_config" : 0, - "generated_by" : "Minilla/v3.0.10", + "generated_by" : "Minilla/v3.1.18", "license" : [ "perl_5" ], @@ -35,7 +35,7 @@ "requires" : { "Test::CPAN::Meta" : "0", "Test::MinimumVersion::Fast" : "0.04", - "Test::PAUSE::Permissions" : "0.04", + "Test::PAUSE::Permissions" : "0.07", "Test::Pod" : "1.41", "Test::Spellunker" : "v0.2.7" } @@ -49,7 +49,7 @@ "provides" : { "Test::Time" : { "file" : "lib/Test/Time.pm", - "version" : "0.08" + "version" : "0.092" } }, "release_status" : "stable", @@ -59,18 +59,23 @@ }, "homepage" : "https://github.com/cho45/Test-Time", "repository" : { - "url" : "git://github.com/cho45/Test-Time.git", + "type" : "git", + "url" : "https://github.com/cho45/Test-Time.git", "web" : "https://github.com/cho45/Test-Time" } }, - "version" : "0.08", + "version" : "0.092", + "x_authority" : "cpan:SATOH", "x_contributors" : [ - "minimalist <minimal...@lavabit.com>", - "motemen <mote...@gmail.com>", + "Alexandr Ciornii <alexcho...@gmail.com>", + "AnaTofuZ <anato...@gmail.com>", + "Gianni Ceccarelli <gianni.ceccare...@broadbean.com>", "Graham Knop <ha...@haarg.org>", "Michael Jemmeson <mjemme...@cpan.org>", - "Gianni Ceccarelli <gianni.ceccare...@broadbean.com>", - "Alexandr Ciornii <alexcho...@gmail.com>" + "minimalist <minimal...@lavabit.com>", + "motemen <mote...@gmail.com>", + "nanto_vi <na...@moon.email.ne.jp>" ], - "x_serialization_backend" : "JSON::PP version 2.27400" + "x_serialization_backend" : "JSON::PP version 4.06", + "x_static_install" : 1 } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Time-0.08/META.yml new/Test-Time-0.092/META.yml --- old/Test-Time-0.08/META.yml 2019-05-07 03:55:59.000000000 +0200 +++ new/Test-Time-0.092/META.yml 2022-06-09 13:18:58.000000000 +0200 @@ -6,7 +6,7 @@ configure_requires: ExtUtils::MakeMaker: '6.64' dynamic_config: 0 -generated_by: 'Minilla/v3.0.10, CPAN::Meta::Converter version 2.150010' +generated_by: 'Minilla/v3.1.18, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -25,19 +25,23 @@ provides: Test::Time: file: lib/Test/Time.pm - version: '0.08' + version: '0.092' requires: Test::More: '0' resources: bugtracker: https://github.com/cho45/Test-Time/issues homepage: https://github.com/cho45/Test-Time - repository: git://github.com/cho45/Test-Time.git -version: '0.08' + repository: https://github.com/cho45/Test-Time.git +version: '0.092' +x_authority: cpan:SATOH x_contributors: - - 'minimalist <minimal...@lavabit.com>' - - 'motemen <mote...@gmail.com>' + - 'Alexandr Ciornii <alexcho...@gmail.com>' + - 'AnaTofuZ <anato...@gmail.com>' + - 'Gianni Ceccarelli <gianni.ceccare...@broadbean.com>' - 'Graham Knop <ha...@haarg.org>' - 'Michael Jemmeson <mjemme...@cpan.org>' - - 'Gianni Ceccarelli <gianni.ceccare...@broadbean.com>' - - 'Alexandr Ciornii <alexcho...@gmail.com>' + - 'minimalist <minimal...@lavabit.com>' + - 'motemen <mote...@gmail.com>' + - 'nanto_vi <na...@moon.email.ne.jp>' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' +x_static_install: 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Time-0.08/Makefile.PL new/Test-Time-0.092/Makefile.PL --- old/Test-Time-0.08/Makefile.PL 2019-05-07 03:55:59.000000000 +0200 +++ new/Test-Time-0.092/Makefile.PL 2022-06-09 13:18:58.000000000 +0200 @@ -8,11 +8,10 @@ use ExtUtils::MakeMaker 6.64; - my %WriteMakefileArgs = ( NAME => 'Test::Time', DISTNAME => 'Test-Time', - VERSION => '0.08', + VERSION => '0.092', EXE_FILES => [glob('script/*'), glob('bin/*')], CONFIGURE_REQUIRES => { "ExtUtils::MakeMaker" => "6.64" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Time-0.08/README.md new/Test-Time-0.092/README.md --- old/Test-Time-0.08/README.md 2019-05-07 03:55:59.000000000 +0200 +++ new/Test-Time-0.092/README.md 2022-06-09 13:18:58.000000000 +0200 @@ -1,3 +1,4 @@ +[](https://github.com/cho45/Test-Time/actions) # NAME Test::Time - Overrides the time() and sleep() core functions for testing @@ -17,7 +18,7 @@ # DESCRIPTION -Test::Time can be used to test modules that deal with time. Once you `use` this +Test::Time can be used to test modules that deal with time. Once you `use` this module, all references to `time`, `localtime` and `sleep` will be internalized. You can set custom time by passing time => number after the `use` statement: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Time-0.08/lib/Test/Time.pm new/Test-Time-0.092/lib/Test/Time.pm --- old/Test-Time-0.08/lib/Test/Time.pm 2019-05-07 03:55:59.000000000 +0200 +++ new/Test-Time-0.092/lib/Test/Time.pm 2022-06-09 13:18:58.000000000 +0200 @@ -4,7 +4,7 @@ use Test::More; -our $VERSION = '0.08'; +our $VERSION = '0.092'; our $time = CORE::time(); my $pkg = __PACKAGE__; @@ -14,36 +14,40 @@ $in_effect; } +sub __time () { + if (in_effect) { + $time; + } else { + CORE::time(); + } +} + +sub __sleep (;$) { + if (in_effect) { + my $sleep = shift || 1; + $time += $sleep; + note "sleep $sleep"; + } else { + CORE::sleep(shift); + } +} + +sub __localtime (;$) { + my $arg = shift; + if (in_effect) { + $arg ||= $time; + } + return defined $arg ? CORE::localtime($arg) : CORE::localtime(); +} + sub import { my ($class, %opts) = @_; $in_effect = 1; $time = $opts{time} if defined $opts{time}; - *CORE::GLOBAL::time = sub() { - if (in_effect) { - $time; - } else { - CORE::time(); - } - }; - - *CORE::GLOBAL::sleep = sub(;$) { - if (in_effect) { - my $sleep = shift || 1; - $time += $sleep; - note "sleep $sleep"; - } else { - CORE::sleep(shift); - } - }; - - *CORE::GLOBAL::localtime = sub(;$) { - my $arg = shift; - if (in_effect) { - $arg ||= $time; - } - return defined $arg ? CORE::localtime($arg) : CORE::localtime(); - }; + *CORE::GLOBAL::time = \&__time; + *CORE::GLOBAL::sleep = \&__sleep; + *CORE::GLOBAL::localtime = \&__localtime; }; sub unimport { @@ -75,7 +79,7 @@ =head1 DESCRIPTION -Test::Time can be used to test modules that deal with time. Once you C<use> this +Test::Time can be used to test modules that deal with time. Once you C<use> this module, all references to C<time>, C<localtime> and C<sleep> will be internalized. You can set custom time by passing time => number after the C<use> statement: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Time-0.08/minil.toml new/Test-Time-0.092/minil.toml --- old/Test-Time-0.08/minil.toml 2019-05-07 03:55:59.000000000 +0200 +++ new/Test-Time-0.092/minil.toml 2022-06-09 13:18:58.000000000 +0200 @@ -1 +1,4 @@ +badges = ['github-actions/test.yml'] module_maker = "ExtUtilsMakeMaker" +authority = "cpan:SATOH" +