Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package perl-Email-Date-Format for
openSUSE:Factory checked in at 2023-01-31 16:10:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Email-Date-Format (Old)
and /work/SRC/openSUSE:Factory/.perl-Email-Date-Format.new.32243 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Email-Date-Format"
Tue Jan 31 16:10:10 2023 rev:27 rq:1062236 version:1.008
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-Email-Date-Format/perl-Email-Date-Format.changes
2023-01-03 15:06:35.606939927 +0100
+++
/work/SRC/openSUSE:Factory/.perl-Email-Date-Format.new.32243/perl-Email-Date-Format.changes
2023-01-31 16:16:24.620259887 +0100
@@ -1,0 +2,12 @@
+Sun Jan 15 03:07:35 UTC 2023 - Tina Müller <[email protected]>
+
+- updated to 1.008
+ see /usr/share/doc/packages/perl-Email-Date-Format/Changes
+
+ 1.008 2023-01-13 21:44:14-05:00 America/New_York
+ - use the version of Time::Local that doesn't guess at whether a year
+ is 99 or 1999 ð
+ - skip tests on Win32 that never pass
+ - modernize just a bit of code
+
+-------------------------------------------------------------------
Old:
----
Email-Date-Format-1.007.tar.gz
New:
----
Email-Date-Format-1.008.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Email-Date-Format.spec ++++++
--- /var/tmp/diff_new_pack.vklzGw/_old 2023-01-31 16:16:25.064262460 +0100
+++ /var/tmp/diff_new_pack.vklzGw/_new 2023-01-31 16:16:25.068262483 +0100
@@ -18,7 +18,7 @@
%define cpan_name Email-Date-Format
Name: perl-Email-Date-Format
-Version: 1.007
+Version: 1.008
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Produce RFC 2822 date strings
@@ -30,6 +30,8 @@
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.78
BuildRequires: perl(Test::More) >= 0.96
+BuildRequires: perl(Time::Local) >= 1.27
+Requires: perl(Time::Local) >= 1.27
%{perl_requires}
%description
++++++ Email-Date-Format-1.007.tar.gz -> Email-Date-Format-1.008.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Email-Date-Format-1.007/Changes
new/Email-Date-Format-1.008/Changes
--- old/Email-Date-Format-1.007/Changes 2023-01-01 03:20:00.000000000 +0100
+++ new/Email-Date-Format-1.008/Changes 2023-01-14 03:44:15.000000000 +0100
@@ -1,5 +1,11 @@
Revision history for Email-Date-Format
+1.008 2023-01-13 21:44:14-05:00 America/New_York
+ - use the version of Time::Local that doesn't guess at whether a year
+ is 99 or 1999 ð
+ - skip tests on Win32 that never pass
+ - modernize just a bit of code
+
1.007 2022-12-31 21:19:59-05:00 America/New_York
- update author info
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Email-Date-Format-1.007/MANIFEST
new/Email-Date-Format-1.008/MANIFEST
--- old/Email-Date-Format-1.007/MANIFEST 2023-01-01 03:20:00.000000000
+0100
+++ new/Email-Date-Format-1.008/MANIFEST 2023-01-14 03:44:15.000000000
+0100
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest
v6.029.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest
v6.030.
Changes
LICENSE
MANIFEST
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Email-Date-Format-1.007/META.json
new/Email-Date-Format-1.008/META.json
--- old/Email-Date-Format-1.007/META.json 2023-01-01 03:20:00.000000000
+0100
+++ new/Email-Date-Format-1.008/META.json 2023-01-14 03:44:15.000000000
+0100
@@ -5,7 +5,7 @@
"Ricardo SIGNES <[email protected]>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 6.029, CPAN::Meta::Converter version
2.150010",
+ "generated_by" : "Dist::Zilla version 6.030, CPAN::Meta::Converter version
2.150010",
"license" : [
"perl_5"
],
@@ -24,15 +24,15 @@
"requires" : {
"Encode" : "0",
"Test::More" : "0",
- "Test::Pod" : "1.41"
+ "Test::Pod" : "1.41",
+ "strict" : "0"
}
},
"runtime" : {
"requires" : {
"Exporter" : "5.57",
- "Time::Local" : "0",
+ "Time::Local" : "1.27",
"perl" : "5.012",
- "strict" : "0",
"warnings" : "0"
}
},
@@ -43,7 +43,8 @@
"requires" : {
"ExtUtils::MakeMaker" : "0",
"File::Spec" : "0",
- "Test::More" : "0.96"
+ "Test::More" : "0.96",
+ "strict" : "0"
}
}
},
@@ -59,7 +60,7 @@
"web" : "https://github.com/rjbs/Email-Date-Format"
}
},
- "version" : "1.007",
+ "version" : "1.008",
"x_Dist_Zilla" : {
"perl" : {
"version" : "5.037002"
@@ -87,7 +88,7 @@
{
"class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed",
"name" : "@RJBS/CheckPrereqsIndexed",
- "version" : "0.021"
+ "version" : "0.022"
},
{
"class" : "Dist::Zilla::Plugin::CheckExtraTests",
@@ -131,57 +132,57 @@
{
"class" : "Dist::Zilla::Plugin::PruneCruft",
"name" : "@RJBS/@Filter/PruneCruft",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
"name" : "@RJBS/@Filter/ManifestSkip",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@RJBS/@Filter/MetaYAML",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@RJBS/@Filter/License",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
"name" : "@RJBS/@Filter/Readme",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@RJBS/@Filter/ExecDir",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@RJBS/@Filter/ShareDir",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@RJBS/@Filter/Manifest",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::TestRelease",
"name" : "@RJBS/@Filter/TestRelease",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
"name" : "@RJBS/@Filter/ConfirmRelease",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
"name" : "@RJBS/@Filter/UploadToCPAN",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
@@ -191,12 +192,12 @@
}
},
"name" : "@RJBS/MakeMaker",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::AutoPrereqs",
"name" : "@RJBS/AutoPrereqs",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::Git::NextVersion",
@@ -217,22 +218,22 @@
{
"class" : "Dist::Zilla::Plugin::PkgVersion",
"name" : "@RJBS/PkgVersion",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@RJBS/MetaConfig",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@RJBS/MetaJSON",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::NextRelease",
"name" : "@RJBS/NextRelease",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::Test::ChangesHasContent",
@@ -242,12 +243,12 @@
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@RJBS/PodSyntaxTests",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::Test::ReportPrereqs",
"name" : "@RJBS/Test::ReportPrereqs",
- "version" : "0.028"
+ "version" : "0.029"
},
{
"class" : "Dist::Zilla::Plugin::Git::Remote::Check",
@@ -263,7 +264,7 @@
}
},
"name" : "@RJBS/TestMoreWithSubtests",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::PodWeaver",
@@ -274,7 +275,7 @@
],
"finder" : [
":InstallModules",
- ":ExecFiles"
+ ":PerlExecFiles"
],
"plugins" : [
{
@@ -381,12 +382,12 @@
}
},
"name" : "@RJBS/PodWeaver",
- "version" : "4.009"
+ "version" : "4.010"
},
{
"class" : "Dist::Zilla::Plugin::RJBSMisc",
"name" : "@RJBS/RJBSMisc",
- "version" : "5.021"
+ "version" : "5.023"
},
{
"class" : "Dist::Zilla::Plugin::GithubMeta",
@@ -449,7 +450,7 @@
"branch" : null,
"changelog" : "Changes",
"signed" : 0,
- "tag" : "1.007",
+ "tag" : "1.008",
"tag_format" : "%v",
"tag_message" : "v%V"
},
@@ -498,52 +499,52 @@
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":IncModules",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExtraTestFiles",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":PerlExecFiles",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":MainModule",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":AllFiles",
- "version" : "6.029"
+ "version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":NoFiles",
- "version" : "6.029"
+ "version" : "6.030"
}
],
"zilla" : {
@@ -551,7 +552,7 @@
"config" : {
"is_trial" : 0
},
- "version" : "6.029"
+ "version" : "6.030"
}
},
"x_contributors" : [
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Email-Date-Format-1.007/META.yml
new/Email-Date-Format-1.008/META.yml
--- old/Email-Date-Format-1.007/META.yml 2023-01-01 03:20:00.000000000
+0100
+++ new/Email-Date-Format-1.008/META.yml 2023-01-14 03:44:15.000000000
+0100
@@ -7,10 +7,11 @@
ExtUtils::MakeMaker: '0'
File::Spec: '0'
Test::More: '0.96'
+ strict: '0'
configure_requires:
ExtUtils::MakeMaker: '6.78'
dynamic_config: 0
-generated_by: 'Dist::Zilla version 6.029, CPAN::Meta::Converter version
2.150010'
+generated_by: 'Dist::Zilla version 6.030, CPAN::Meta::Converter version
2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -18,15 +19,14 @@
name: Email-Date-Format
requires:
Exporter: '5.57'
- Time::Local: '0'
+ Time::Local: '1.27'
perl: '5.012'
- strict: '0'
warnings: '0'
resources:
bugtracker: https://github.com/rjbs/Email-Date-Format/issues
homepage: https://github.com/rjbs/Email-Date-Format
repository: https://github.com/rjbs/Email-Date-Format.git
-version: '1.007'
+version: '1.008'
x_Dist_Zilla:
perl:
version: '5.037002'
@@ -49,7 +49,7 @@
-
class: Dist::Zilla::Plugin::CheckPrereqsIndexed
name: '@RJBS/CheckPrereqsIndexed'
- version: '0.021'
+ version: '0.022'
-
class: Dist::Zilla::Plugin::CheckExtraTests
name: '@RJBS/CheckExtraTests'
@@ -83,58 +83,58 @@
-
class: Dist::Zilla::Plugin::PruneCruft
name: '@RJBS/@Filter/PruneCruft'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@RJBS/@Filter/ManifestSkip'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@RJBS/@Filter/MetaYAML'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::License
name: '@RJBS/@Filter/License'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::Readme
name: '@RJBS/@Filter/Readme'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::ExecDir
name: '@RJBS/@Filter/ExecDir'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::ShareDir
name: '@RJBS/@Filter/ShareDir'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::Manifest
name: '@RJBS/@Filter/Manifest'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::TestRelease
name: '@RJBS/@Filter/TestRelease'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@RJBS/@Filter/ConfirmRelease'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@RJBS/@Filter/UploadToCPAN'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::MakeMaker
config:
Dist::Zilla::Role::TestRunner:
default_jobs: 9
name: '@RJBS/MakeMaker'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::AutoPrereqs
name: '@RJBS/AutoPrereqs'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::Git::NextVersion
config:
@@ -150,19 +150,19 @@
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@RJBS/PkgVersion'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@RJBS/MetaConfig'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@RJBS/MetaJSON'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::NextRelease
name: '@RJBS/NextRelease'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::Test::ChangesHasContent
name: '@RJBS/Test::ChangesHasContent'
@@ -170,11 +170,11 @@
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@RJBS/PodSyntaxTests'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::Test::ReportPrereqs
name: '@RJBS/Test::ReportPrereqs'
- version: '0.028'
+ version: '0.029'
-
class: Dist::Zilla::Plugin::Git::Remote::Check
name: '@RJBS/Git::Remote::Check'
@@ -186,7 +186,7 @@
phase: test
type: requires
name: '@RJBS/TestMoreWithSubtests'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::PodWeaver
config:
@@ -195,7 +195,7 @@
- '@RJBS'
finder:
- ':InstallModules'
- - ':ExecFiles'
+ - ':PerlExecFiles'
plugins:
-
class: Pod::Weaver::Plugin::EnsurePod5
@@ -278,11 +278,11 @@
name: '@RJBS/List'
version: '4.018'
name: '@RJBS/PodWeaver'
- version: '4.009'
+ version: '4.010'
-
class: Dist::Zilla::Plugin::RJBSMisc
name: '@RJBS/RJBSMisc'
- version: '5.021'
+ version: '5.023'
-
class: Dist::Zilla::Plugin::GithubMeta
name: '@RJBS/GithubMeta'
@@ -330,7 +330,7 @@
branch: ~
changelog: Changes
signed: 0
- tag: '1.007'
+ tag: '1.008'
tag_format: '%v'
tag_message: v%V
Dist::Zilla::Role::Git::Repo:
@@ -366,48 +366,48 @@
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':IncModules'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExtraTestFiles'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':PerlExecFiles'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':MainModule'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':AllFiles'
- version: '6.029'
+ version: '6.030'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':NoFiles'
- version: '6.029'
+ version: '6.030'
zilla:
class: Dist::Zilla::Dist::Builder
config:
is_trial: 0
- version: '6.029'
+ version: '6.030'
x_contributors:
- '[email protected] <[email protected]>'
- 'Eric Sproul <[email protected]>'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Email-Date-Format-1.007/Makefile.PL
new/Email-Date-Format-1.008/Makefile.PL
--- old/Email-Date-Format-1.007/Makefile.PL 2023-01-01 03:20:00.000000000
+0100
+++ new/Email-Date-Format-1.008/Makefile.PL 2023-01-14 03:44:15.000000000
+0100
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker
v6.029.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker
v6.030.
use strict;
use warnings;
@@ -18,16 +18,16 @@
"NAME" => "Email::Date::Format",
"PREREQ_PM" => {
"Exporter" => "5.57",
- "Time::Local" => 0,
- "strict" => 0,
+ "Time::Local" => "1.27",
"warnings" => 0
},
"TEST_REQUIRES" => {
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
- "Test::More" => "0.96"
+ "Test::More" => "0.96",
+ "strict" => 0
},
- "VERSION" => "1.007",
+ "VERSION" => "1.008",
"test" => {
"TESTS" => "t/*.t"
}
@@ -39,7 +39,7 @@
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
"Test::More" => "0.96",
- "Time::Local" => 0,
+ "Time::Local" => "1.27",
"strict" => 0,
"warnings" => 0
);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Email-Date-Format-1.007/README
new/Email-Date-Format-1.008/README
--- old/Email-Date-Format-1.007/README 2023-01-01 03:20:00.000000000 +0100
+++ new/Email-Date-Format-1.008/README 2023-01-14 03:44:15.000000000 +0100
@@ -1,5 +1,5 @@
This archive contains the distribution Email-Date-Format,
-version 1.007:
+version 1.008:
produce RFC 2822 date strings
@@ -9,4 +9,4 @@
the same terms as the Perl 5 programming language system itself.
-This README file was generated by Dist::Zilla::Plugin::Readme v6.029.
+This README file was generated by Dist::Zilla::Plugin::Readme v6.030.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Email-Date-Format-1.007/lib/Email/Date/Format.pm
new/Email-Date-Format-1.008/lib/Email/Date/Format.pm
--- old/Email-Date-Format-1.007/lib/Email/Date/Format.pm 2023-01-01
03:20:00.000000000 +0100
+++ new/Email-Date-Format-1.008/lib/Email/Date/Format.pm 2023-01-14
03:44:15.000000000 +0100
@@ -1,13 +1,12 @@
-use 5.006;
-use strict;
+use v5.12.0;
use warnings;
-package Email::Date::Format 1.007;
+package Email::Date::Format 1.008;
# ABSTRACT: produce RFC 2822 date strings
our @EXPORT_OK = qw[email_date email_gmdate];
use Exporter 5.57 'import';
-use Time::Local ();
+use Time::Local 1.27 ();
#pod =head1 SYNOPSIS
#pod
@@ -58,8 +57,8 @@
my @gmtime = gmtime $time;
$localtime[5] += 1900;
$gmtime[5] += 1900;
- my $diff = Time::Local::timegm(@localtime)
- - Time::Local::timegm(@gmtime);
+ my $diff = Time::Local::timegm_modern(@localtime)
+ - Time::Local::timegm_modern(@gmtime);
my $direc = $diff < 0 ? '-' : '+';
$diff = abs $diff;
@@ -74,7 +73,7 @@
sub {
my ($time) = @_;
- $time = time unless defined $time;
+ $time //= time;
my ($sec, $min, $hour, $mday, $mon, $year, $wday)
= $local ? (localtime $time) : (gmtime $time);
@@ -110,7 +109,7 @@
=head1 VERSION
-version 1.007
+version 1.008
=head1 SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Email-Date-Format-1.007/t/00-report-prereqs.dd
new/Email-Date-Format-1.008/t/00-report-prereqs.dd
--- old/Email-Date-Format-1.007/t/00-report-prereqs.dd 2023-01-01
03:20:00.000000000 +0100
+++ new/Email-Date-Format-1.008/t/00-report-prereqs.dd 2023-01-14
03:44:15.000000000 +0100
@@ -8,15 +8,15 @@
'requires' => {
'Encode' => '0',
'Test::More' => '0',
- 'Test::Pod' => '1.41'
+ 'Test::Pod' => '1.41',
+ 'strict' => '0'
}
},
'runtime' => {
'requires' => {
'Exporter' => '5.57',
- 'Time::Local' => '0',
+ 'Time::Local' => '1.27',
'perl' => '5.012',
- 'strict' => '0',
'warnings' => '0'
}
},
@@ -27,7 +27,8 @@
'requires' => {
'ExtUtils::MakeMaker' => '0',
'File::Spec' => '0',
- 'Test::More' => '0.96'
+ 'Test::More' => '0.96',
+ 'strict' => '0'
}
}
};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Email-Date-Format-1.007/t/00-report-prereqs.t
new/Email-Date-Format-1.008/t/00-report-prereqs.t
--- old/Email-Date-Format-1.007/t/00-report-prereqs.t 2023-01-01
03:20:00.000000000 +0100
+++ new/Email-Date-Format-1.008/t/00-report-prereqs.t 2023-01-14
03:44:15.000000000 +0100
@@ -3,7 +3,7 @@
use strict;
use warnings;
-# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.028
+# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.029
use Test::More tests => 1;
@@ -109,20 +109,24 @@
my @reports = [qw/Module Want Have/];
for my $mod ( sort keys %{ $req_hash->{$phase}{$type} } ) {
- next if $mod eq 'perl';
next if grep { $_ eq $mod } @exclude;
- my $file = $mod;
- $file =~ s{::}{/}g;
- $file .= ".pm";
- my ($prefix) = grep { -e File::Spec->catfile($_, $file) } @INC;
-
my $want = $req_hash->{$phase}{$type}{$mod};
$want = "undef" unless defined $want;
$want = "any" if !$want && $want == 0;
+ if ($mod eq 'perl') {
+ push @reports, ['perl', $want, $]];
+ next;
+ }
+
my $req_string = $want eq 'any' ? 'any version required' :
"version '$want' required";
+ my $file = $mod;
+ $file =~ s{::}{/}g;
+ $file .= ".pm";
+ my ($prefix) = grep { -e File::Spec->catfile($_, $file) } @INC;
+
if ($prefix) {
my $have = MM->parse_version( File::Spec->catfile($prefix,
$file) );
$have = "undef" unless defined $have;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Email-Date-Format-1.007/t/basic.t
new/Email-Date-Format-1.008/t/basic.t
--- old/Email-Date-Format-1.007/t/basic.t 2023-01-01 03:20:00.000000000
+0100
+++ new/Email-Date-Format-1.008/t/basic.t 2023-01-14 03:44:15.000000000
+0100
@@ -1,6 +1,7 @@
-use Test::More tests => 7;
-use strict;
-$^W = 1;
+use v5.12.0;
+use warnings;
+
+use Test::More;
use Email::Date::Format qw(email_date email_gmdate);
@@ -12,32 +13,45 @@
my $birthday = 1153432704; # no, really!
-sub tz($) { sprintf "%s%02u%02u", Email::Date::Format::_tz_diff(shift) }
-
-local $ENV{TZ} = "UTC+4";
-my $tz = tz(1153432704);
-
-SKIP: {
- skip "test only useful in US/Eastern, -0400, not $tz", 1 if $tz ne '-0400';
-
- is(
- email_date(1153432704),
- 'Thu, 20 Jul 2006 17:58:24 -0400',
- "rjbs's birthday date format properly",
- );
-}
-
is(
- email_gmdate(1153432704),
+ email_gmdate($birthday),
'Thu, 20 Jul 2006 21:58:24 +0000',
"rjbs's birthday date format properly in GMT",
);
-my $badyear = 1900 + ((gmtime)[5] - 49) % 100;
-my $badt = Time::Local::timegm(0, 0, 0, 1, 0, $badyear);
-$ENV{TZ} = "UTC-11";
-is(tz($badt - 60), "+1100", "positive timezone before year rollover");
-is(tz($badt + 60), "+1100", "positive timezone after year rollover");
-$ENV{TZ} = "UTC+9";
-is(tz($badt - 60), "-0900", "negative timezone before year rollover");
-is(tz($badt + 60), "-0900", "negative timezone after year rollover");
+sub tz($) { sprintf "%s%02u%02u", Email::Date::Format::_tz_diff(shift) }
+
+if ($^O ne 'MSWin32') {
+ # https://github.com/rjbs/Email-Date-Format/issues/5
+ #
+ # Look, I'm not sure exactly what's going on here! I think the short version
+ # is "you can't set $TZ on Windows to make these tests go" and maybe it
+ # hasn't worked in ages and I just didn't know. Patches from better Windows
+ # programmers than me are welcome! -- rjbs, 2023-01-13
+
+ local $ENV{TZ} = "UTC+4";
+ my $tz = tz(1153432704);
+
+ SKIP: {
+ if ($tz ne '-0400') {
+ skip "test only useful in US/Eastern, -0400, not $tz", 1;
+ }
+
+ is(
+ email_date(1153432704),
+ 'Thu, 20 Jul 2006 17:58:24 -0400',
+ "rjbs's birthday date format properly",
+ );
+ }
+
+ my $badyear = 1900 + ((gmtime)[5] - 49) % 100;
+ my $badt = Time::Local::timegm_modern(0, 0, 0, 1, 0, $badyear);
+ $ENV{TZ} = "UTC-11";
+ is(tz($badt - 60), "+1100", "positive timezone before year rollover");
+ is(tz($badt + 60), "+1100", "positive timezone after year rollover");
+ $ENV{TZ} = "UTC+9";
+ is(tz($badt - 60), "-0900", "negative timezone before year rollover");
+ is(tz($badt + 60), "-0900", "negative timezone after year rollover");
+}
+
+done_testing;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Email-Date-Format-1.007/xt/release/changes_has_content.t
new/Email-Date-Format-1.008/xt/release/changes_has_content.t
--- old/Email-Date-Format-1.007/xt/release/changes_has_content.t
2023-01-01 03:20:00.000000000 +0100
+++ new/Email-Date-Format-1.008/xt/release/changes_has_content.t
2023-01-14 03:44:15.000000000 +0100
@@ -2,7 +2,7 @@
note 'Checking Changes';
my $changes_file = 'Changes';
-my $newver = '1.007';
+my $newver = '1.008';
my $trial_token = '-TRIAL';
my $encoding = 'UTF-8';