Mailinglist Archive: opensuse-commit (1903 mails)

< Previous Next >
commit perl-DateTime for openSUSE:Factory
Hello community,

here is the log from the commit of package perl-DateTime for openSUSE:Factory
checked in at 2019-04-23 14:41:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-DateTime (Old)
and /work/SRC/openSUSE:Factory/.perl-DateTime.new.5536 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-DateTime"

Tue Apr 23 14:41:16 2019 rev:48 rq:696578 version:1.51

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-DateTime/perl-DateTime.changes
2018-08-27 12:56:29.692628964 +0200
+++ /work/SRC/openSUSE:Factory/.perl-DateTime.new.5536/perl-DateTime.changes
2019-04-23 14:41:19.557650945 +0200
@@ -1,0 +2,13 @@
+Mon Apr 22 05:06:26 UTC 2019 - Stephan Kulow <coolo@xxxxxxxx>
+
+- updated to 1.51
+ see /usr/share/doc/packages/perl-DateTime/Changes
+
+ 1.51 2019-04-21
+
+ - Fix CLDR formatting of 'S' pattern with more than 9 digits of
+ precision. While we only store nanoseconds in the DateTime object we should
+ still be able to handle an arbitrary number of digits properly. Fixed by
+ Slaven Rezić. GH #89.
+
+-------------------------------------------------------------------

Old:
----
DateTime-1.50.tar.gz

New:
----
DateTime-1.51.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-DateTime.spec ++++++
--- /var/tmp/diff_new_pack.LMcGWq/_old 2019-04-23 14:41:20.169651271 +0200
+++ /var/tmp/diff_new_pack.LMcGWq/_new 2019-04-23 14:41:20.169651271 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-DateTime
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -12,18 +12,18 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name: perl-DateTime
-Version: 1.50
+Version: 1.51
Release: 0
%define cpan_name DateTime
-Summary: Date and Time Object for Perl
+Summary: Date and time object for Perl
License: Artistic-2.0
Group: Development/Libraries/Perl
-Url: http://search.cpan.org/dist/DateTime/
+Url: https://metacpan.org/release/%{cpan_name}
Source0:
https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -84,11 +84,11 @@
%setup -q -n %{cpan_name}-%{version}

%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
-%{__make} %{?_smp_mflags}
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+make %{?_smp_mflags}

%check
-%{__make} test
+make test

%install
%perl_make_install

++++++ DateTime-1.50.tar.gz -> DateTime-1.51.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/Changes new/DateTime-1.51/Changes
--- old/DateTime-1.50/Changes 2018-08-01 19:47:47.000000000 +0200
+++ new/DateTime-1.51/Changes 2019-04-21 21:46:49.000000000 +0200
@@ -1,3 +1,11 @@
+1.51 2019-04-21
+
+- Fix CLDR formatting of 'S' pattern with more than 9 digits of
+ precision. While we only store nanoseconds in the DateTime object we should
+ still be able to handle an arbitrary number of digits properly. Fixed by
+ Slaven Rezić. GH #89.
+
+
1.50 2018-08-01

- The %F strftime pattern incorrectly zero-padded numbers less than four
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/INSTALL new/DateTime-1.51/INSTALL
--- old/DateTime-1.50/INSTALL 2018-08-01 19:47:47.000000000 +0200
+++ new/DateTime-1.51/INSTALL 2019-04-21 21:46:49.000000000 +0200
@@ -48,6 +48,19 @@
"configure_requires" key of META.yml or the
"{prereqs}{configure}{requires}" key of META.json.

+## Other Prerequisites
+
+This distribution may require additional modules to be installed after running
+Makefile.PL.
+Look for prerequisites in the following phases:
+
+* to run make, PHASE = build
+* to use the module code itself, PHASE = runtime
+* to run tests, PHASE = test
+
+They can all be found in the "PHASE_requires" key of MYMETA.yml or the
+"{prereqs}{PHASE}{requires}" key of MYMETA.json.
+
## Documentation

DateTime documentation is available as POD.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/LICENSE new/DateTime-1.51/LICENSE
--- old/DateTime-1.50/LICENSE 2018-08-01 19:47:47.000000000 +0200
+++ new/DateTime-1.51/LICENSE 2019-04-21 21:46:49.000000000 +0200
@@ -1,4 +1,4 @@
-This software is Copyright (c) 2003 - 2018 by Dave Rolsky.
+This software is Copyright (c) 2003 - 2019 by Dave Rolsky.

This is free software, licensed under:

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/META.json new/DateTime-1.51/META.json
--- old/DateTime-1.50/META.json 2018-08-01 19:47:47.000000000 +0200
+++ new/DateTime-1.51/META.json 2019-04-21 21:46:49.000000000 +0200
@@ -106,43 +106,43 @@
"provides" : {
"DateTime" : {
"file" : "lib/DateTime.pm",
- "version" : "1.50"
+ "version" : "1.51"
},
"DateTime::Duration" : {
"file" : "lib/DateTime/Duration.pm",
- "version" : "1.50"
+ "version" : "1.51"
},
"DateTime::Helpers" : {
"file" : "lib/DateTime/Helpers.pm",
- "version" : "1.50"
+ "version" : "1.51"
},
"DateTime::Infinite" : {
"file" : "lib/DateTime/Infinite.pm",
- "version" : "1.50"
+ "version" : "1.51"
},
"DateTime::Infinite::Future" : {
"file" : "lib/DateTime/Infinite.pm",
- "version" : "1.50"
+ "version" : "1.51"
},
"DateTime::Infinite::Past" : {
"file" : "lib/DateTime/Infinite.pm",
- "version" : "1.50"
+ "version" : "1.51"
},
"DateTime::LeapSecond" : {
"file" : "lib/DateTime/LeapSecond.pm",
- "version" : "1.50"
+ "version" : "1.51"
},
"DateTime::PP" : {
"file" : "lib/DateTime/PP.pm",
- "version" : "1.50"
+ "version" : "1.51"
},
"DateTime::PPExtra" : {
"file" : "lib/DateTime/PPExtra.pm",
- "version" : "1.50"
+ "version" : "1.51"
},
"DateTime::Types" : {
"file" : "lib/DateTime/Types.pm",
- "version" : "1.50"
+ "version" : "1.51"
}
},
"release_status" : "stable",
@@ -158,7 +158,7 @@
},
"x_MailingList" : "datetime@xxxxxxxx"
},
- "version" : "1.50",
+ "version" : "1.51",
"x_Dist_Zilla" : {
"perl" : {
"version" : "5.026002"
@@ -195,7 +195,7 @@
}
},
"name" : "@DROLSKY/Git::GatherDir",
- "version" : "2.045"
+ "version" : "2.046"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
@@ -271,7 +271,7 @@
{
"class" : "Dist::Zilla::Plugin::GitHub::Meta",
"name" : "@DROLSKY/GitHub::Meta",
- "version" : "0.45"
+ "version" : "0.47"
},
{
"class" : "Dist::Zilla::Plugin::GitHub::Update",
@@ -281,7 +281,7 @@
}
},
"name" : "@DROLSKY/GitHub::Update",
- "version" : "0.45"
+ "version" : "0.47"
},
{
"class" : "Dist::Zilla::Plugin::MetaResources",
@@ -427,6 +427,7 @@
],
"spell_cmd" : "",
"stopwords" : [
+ "AEST",
"Anno",
"BCE",
"CLDR",
@@ -535,7 +536,7 @@
"class" : "Dist::Zilla::Plugin::DROLSKY::RunExtraTests",
"config" : {
"Dist::Zilla::Role::TestRunner" : {
- "default_jobs" : 8
+ "default_jobs" : 24
}
},
"name" : "@DROLSKY/DROLSKY::RunExtraTests",
@@ -639,7 +640,7 @@
"class" : "Dist::Zilla::Plugin::Git::Contributors",
"config" : {
"Dist::Zilla::Plugin::Git::Contributors" : {
- "git_version" : "2.7.4",
+ "git_version" : "2.20.1",
"include_authors" : 0,
"include_releaser" : 1,
"order_by" : "name",
@@ -647,7 +648,7 @@
}
},
"name" : "@DROLSKY/Git::Contributors",
- "version" : "0.034"
+ "version" : "0.035"
},
{
"class" : "Dist::Zilla::Plugin::SurgicalPodWeaver",
@@ -854,8 +855,14 @@
},
{
"class" : "Dist::Zilla::Plugin::InstallGuide",
+ "config" : {
+ "Dist::Zilla::Role::ModuleMetadata" : {
+ "Module::Metadata" : "1.000033",
+ "version" : "0.006"
+ }
+ },
"name" : "@DROLSKY/InstallGuide",
- "version" : "1.200011"
+ "version" : "1.200013"
},
{
"class" : "Dist::Zilla::Plugin::CPANFile",
@@ -902,7 +909,7 @@
"class" :
"Dist::Zilla::Plugin::DROLSKY::Git::CheckFor::CorrectBranch",
"config" : {
"Dist::Zilla::Role::Git::Repo" : {
- "git_version" : "2.7.4",
+ "git_version" : "2.20.1",
"repo_root" : "."
}
},
@@ -918,7 +925,7 @@
"class" : "Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts",
"config" : {
"Dist::Zilla::Role::Git::Repo" : {
- "git_version" : "2.7.4",
+ "git_version" : "2.20.1",
"repo_root" : "."
}
},
@@ -953,19 +960,19 @@
"changelog" : "Changes"
},
"Dist::Zilla::Role::Git::Repo" : {
- "git_version" : "2.7.4",
+ "git_version" : "2.20.1",
"repo_root" : "."
}
},
"name" : "@DROLSKY/Git::Check",
- "version" : "2.045"
+ "version" : "2.046"
},
{
"class" : "Dist::Zilla::Plugin::Git::Commit",
"config" : {
"Dist::Zilla::Plugin::Git::Commit" : {
"add_files_in" : [],
- "commit_msg" : "v%v%n%n%c"
+ "commit_msg" : "v%V%n%n%c"
},
"Dist::Zilla::Role::Git::DirtyFiles" : {
"allow_dirty" : [
@@ -984,7 +991,7 @@
"changelog" : "Changes"
},
"Dist::Zilla::Role::Git::Repo" : {
- "git_version" : "2.7.4",
+ "git_version" : "2.20.1",
"repo_root" : "."
},
"Dist::Zilla::Role::Git::StringFormatter" : {
@@ -992,7 +999,7 @@
}
},
"name" : "@DROLSKY/Commit generated files",
- "version" : "2.045"
+ "version" : "2.046"
},
{
"class" : "Dist::Zilla::Plugin::Git::Tag",
@@ -1001,12 +1008,12 @@
"branch" : null,
"changelog" : "Changes",
"signed" : 0,
- "tag" : "v1.50",
- "tag_format" : "v%v",
- "tag_message" : "v%v"
+ "tag" : "v1.51",
+ "tag_format" : "v%V",
+ "tag_message" : "v%V"
},
"Dist::Zilla::Role::Git::Repo" : {
- "git_version" : "2.7.4",
+ "git_version" : "2.20.1",
"repo_root" : "."
},
"Dist::Zilla::Role::Git::StringFormatter" : {
@@ -1014,7 +1021,7 @@
}
},
"name" : "@DROLSKY/Git::Tag",
- "version" : "2.045"
+ "version" : "2.046"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
@@ -1026,12 +1033,12 @@
"remotes_must_exist" : 1
},
"Dist::Zilla::Role::Git::Repo" : {
- "git_version" : "2.7.4",
+ "git_version" : "2.20.1",
"repo_root" : "."
}
},
"name" : "@DROLSKY/Git::Push",
- "version" : "2.045"
+ "version" : "2.046"
},
{
"class" : "Dist::Zilla::Plugin::BumpVersionAfterRelease",
@@ -1066,7 +1073,7 @@
"changelog" : "Changes"
},
"Dist::Zilla::Role::Git::Repo" : {
- "git_version" : "2.7.4",
+ "git_version" : "2.20.1",
"repo_root" : "."
},
"Dist::Zilla::Role::Git::StringFormatter" : {
@@ -1074,7 +1081,7 @@
}
},
"name" : "@DROLSKY/Commit version bump",
- "version" : "2.045"
+ "version" : "2.046"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
@@ -1086,12 +1093,12 @@
"remotes_must_exist" : 1
},
"Dist::Zilla::Role::Git::Repo" : {
- "git_version" : "2.7.4",
+ "git_version" : "2.20.1",
"repo_root" : "."
}
},
"name" : "@DROLSKY/Push version bump",
- "version" : "2.045"
+ "version" : "2.046"
},
{
"class" : "Dist::Zilla::Plugin::DROLSKY::MakeMaker",
@@ -1101,10 +1108,10 @@
"version" : "6.012"
},
"Dist::Zilla::Plugin::MakeMaker::Awesome" : {
- "version" : "0.47"
+ "version" : "0.42"
},
"Dist::Zilla::Role::TestRunner" : {
- "default_jobs" : 8,
+ "default_jobs" : 24,
"version" : "6.012"
}
},
@@ -1263,6 +1270,7 @@
"Karen Etheridge <ether@xxxxxxxx>",
"Michael Conrad <mike@xxxxxxxxxxx>",
"Michael R. Davis <mrdvt92@xxxxxxxxxxxxxxxxxxxxxxxx>",
+ "Mohammad S Anwar <mohammad.anwar@xxxxxxxxx>",
"M Somerville <dracos@xxxxxxxxxxxxxxxxxxxxxxxx>",
"Nick Tonkin <1nickt@xxxxxxxxxxxxxxxxxxxxxxxx>",
"Olaf Alders <olaf@xxxxxxxxxxxxxxxxxxx>",
@@ -1276,6 +1284,6 @@
"viviparous <viviparous@prc>"
],
"x_generated_by_perl" : "v5.26.2",
- "x_serialization_backend" : "Cpanel::JSON::XS version 4.03"
+ "x_serialization_backend" : "Cpanel::JSON::XS version 4.02"
}

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/META.yml new/DateTime-1.51/META.yml
--- old/DateTime-1.50/META.yml 2018-08-01 19:47:47.000000000 +0200
+++ new/DateTime-1.51/META.yml 2019-04-21 21:46:49.000000000 +0200
@@ -25,34 +25,34 @@
provides:
DateTime:
file: lib/DateTime.pm
- version: '1.50'
+ version: '1.51'
DateTime::Duration:
file: lib/DateTime/Duration.pm
- version: '1.50'
+ version: '1.51'
DateTime::Helpers:
file: lib/DateTime/Helpers.pm
- version: '1.50'
+ version: '1.51'
DateTime::Infinite:
file: lib/DateTime/Infinite.pm
- version: '1.50'
+ version: '1.51'
DateTime::Infinite::Future:
file: lib/DateTime/Infinite.pm
- version: '1.50'
+ version: '1.51'
DateTime::Infinite::Past:
file: lib/DateTime/Infinite.pm
- version: '1.50'
+ version: '1.51'
DateTime::LeapSecond:
file: lib/DateTime/LeapSecond.pm
- version: '1.50'
+ version: '1.51'
DateTime::PP:
file: lib/DateTime/PP.pm
- version: '1.50'
+ version: '1.51'
DateTime::PPExtra:
file: lib/DateTime/PPExtra.pm
- version: '1.50'
+ version: '1.51'
DateTime::Types:
file: lib/DateTime/Types.pm
- version: '1.50'
+ version: '1.51'
requires:
Carp: '0'
DateTime::Locale: '1.06'
@@ -83,7 +83,7 @@
bugtracker: https://github.com/houseabsolute/DateTime.pm/issues
homepage: http://metacpan.org/release/DateTime
repository: git://github.com/houseabsolute/DateTime.pm.git
-version: '1.50'
+version: '1.51'
x_Dist_Zilla:
perl:
version: '5.026002'
@@ -114,7 +114,7 @@
Dist::Zilla::Plugin::Git::GatherDir:
include_untracked: 0
name: '@DROLSKY/Git::GatherDir'
- version: '2.045'
+ version: '2.046'
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@DROLSKY/ManifestSkip'
@@ -174,14 +174,14 @@
-
class: Dist::Zilla::Plugin::GitHub::Meta
name: '@DROLSKY/GitHub::Meta'
- version: '0.45'
+ version: '0.47'
-
class: Dist::Zilla::Plugin::GitHub::Update
config:
Dist::Zilla::Plugin::GitHub::Update:
metacpan: 1
name: '@DROLSKY/GitHub::Update'
- version: '0.45'
+ version: '0.47'
-
class: Dist::Zilla::Plugin::MetaResources
name: '@DROLSKY/MetaResources'
@@ -294,6 +294,7 @@
- lib
spell_cmd: ''
stopwords:
+ - AEST
- Anno
- BCE
- CLDR
@@ -397,7 +398,7 @@
class: Dist::Zilla::Plugin::DROLSKY::RunExtraTests
config:
Dist::Zilla::Role::TestRunner:
- default_jobs: 8
+ default_jobs: 24
name: '@DROLSKY/DROLSKY::RunExtraTests'
version: '1.01'
-
@@ -474,13 +475,13 @@
class: Dist::Zilla::Plugin::Git::Contributors
config:
Dist::Zilla::Plugin::Git::Contributors:
- git_version: 2.7.4
+ git_version: 2.20.1
include_authors: 0
include_releaser: 1
order_by: name
paths: []
name: '@DROLSKY/Git::Contributors'
- version: '0.034'
+ version: '0.035'
-
class: Dist::Zilla::Plugin::SurgicalPodWeaver
config:
@@ -642,8 +643,12 @@
version: '0.014'
-
class: Dist::Zilla::Plugin::InstallGuide
+ config:
+ Dist::Zilla::Role::ModuleMetadata:
+ Module::Metadata: '1.000033'
+ version: '0.006'
name: '@DROLSKY/InstallGuide'
- version: '1.200011'
+ version: '1.200013'
-
class: Dist::Zilla::Plugin::CPANFile
name: '@DROLSKY/CPANFile'
@@ -679,7 +684,7 @@
class: Dist::Zilla::Plugin::DROLSKY::Git::CheckFor::CorrectBranch
config:
Dist::Zilla::Role::Git::Repo:
- git_version: 2.7.4
+ git_version: 2.20.1
repo_root: .
name: '@DROLSKY/DROLSKY::Git::CheckFor::CorrectBranch'
version: '1.01'
@@ -691,7 +696,7 @@
class: Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts
config:
Dist::Zilla::Role::Git::Repo:
- git_version: 2.7.4
+ git_version: 2.20.1
repo_root: .
name: '@DROLSKY/Git::CheckFor::MergeConflicts'
version: '0.014'
@@ -719,16 +724,16 @@
allow_dirty_match: []
changelog: Changes
Dist::Zilla::Role::Git::Repo:
- git_version: 2.7.4
+ git_version: 2.20.1
repo_root: .
name: '@DROLSKY/Git::Check'
- version: '2.045'
+ version: '2.046'
-
class: Dist::Zilla::Plugin::Git::Commit
config:
Dist::Zilla::Plugin::Git::Commit:
add_files_in: []
- commit_msg: v%v%n%n%c
+ commit_msg: v%V%n%n%c
Dist::Zilla::Role::Git::DirtyFiles:
allow_dirty:
- CODE_OF_CONDUCT.md
@@ -744,12 +749,12 @@
allow_dirty_match: []
changelog: Changes
Dist::Zilla::Role::Git::Repo:
- git_version: 2.7.4
+ git_version: 2.20.1
repo_root: .
Dist::Zilla::Role::Git::StringFormatter:
time_zone: local
name: '@DROLSKY/Commit generated files'
- version: '2.045'
+ version: '2.046'
-
class: Dist::Zilla::Plugin::Git::Tag
config:
@@ -757,16 +762,16 @@
branch: ~
changelog: Changes
signed: 0
- tag: v1.50
- tag_format: v%v
- tag_message: v%v
+ tag: v1.51
+ tag_format: v%V
+ tag_message: v%V
Dist::Zilla::Role::Git::Repo:
- git_version: 2.7.4
+ git_version: 2.20.1
repo_root: .
Dist::Zilla::Role::Git::StringFormatter:
time_zone: local
name: '@DROLSKY/Git::Tag'
- version: '2.045'
+ version: '2.046'
-
class: Dist::Zilla::Plugin::Git::Push
config:
@@ -775,10 +780,10 @@
- origin
remotes_must_exist: 1
Dist::Zilla::Role::Git::Repo:
- git_version: 2.7.4
+ git_version: 2.20.1
repo_root: .
name: '@DROLSKY/Git::Push'
- version: '2.045'
+ version: '2.046'
-
class: Dist::Zilla::Plugin::BumpVersionAfterRelease
config:
@@ -804,12 +809,12 @@
- (?^:.+)
changelog: Changes
Dist::Zilla::Role::Git::Repo:
- git_version: 2.7.4
+ git_version: 2.20.1
repo_root: .
Dist::Zilla::Role::Git::StringFormatter:
time_zone: local
name: '@DROLSKY/Commit version bump'
- version: '2.045'
+ version: '2.046'
-
class: Dist::Zilla::Plugin::Git::Push
config:
@@ -818,10 +823,10 @@
- origin
remotes_must_exist: 1
Dist::Zilla::Role::Git::Repo:
- git_version: 2.7.4
+ git_version: 2.20.1
repo_root: .
name: '@DROLSKY/Push version bump'
- version: '2.045'
+ version: '2.046'
-
class: Dist::Zilla::Plugin::DROLSKY::MakeMaker
config:
@@ -829,9 +834,9 @@
make_path: make
version: '6.012'
Dist::Zilla::Plugin::MakeMaker::Awesome:
- version: '0.47'
+ version: '0.42'
Dist::Zilla::Role::TestRunner:
- default_jobs: 8
+ default_jobs: 24
version: '6.012'
name: '@DROLSKY/DROLSKY::MakeMaker'
version: '1.01'
@@ -954,6 +959,7 @@
- 'Karen Etheridge <ether@xxxxxxxx>'
- 'Michael Conrad <mike@xxxxxxxxxxx>'
- 'Michael R. Davis <mrdvt92@xxxxxxxxxxxxxxxxxxxxxxxx>'
+ - 'Mohammad S Anwar <mohammad.anwar@xxxxxxxxx>'
- 'M Somerville <dracos@xxxxxxxxxxxxxxxxxxxxxxxx>'
- 'Nick Tonkin <1nickt@xxxxxxxxxxxxxxxxxxxxxxxx>'
- 'Olaf Alders <olaf@xxxxxxxxxxxxxxxxxxx>'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/Makefile.PL
new/DateTime-1.51/Makefile.PL
--- old/DateTime-1.50/Makefile.PL 2018-08-01 19:47:47.000000000 +0200
+++ new/DateTime-1.51/Makefile.PL 2019-04-21 21:46:49.000000000 +0200
@@ -1,6 +1,6 @@
# This Makefile.PL for DateTime was generated by
# Dist::Zilla::Plugin::DROLSKY::MakeMaker 1.01
-# and Dist::Zilla::Plugin::MakeMaker::Awesome 0.47.
+# and Dist::Zilla::Plugin::MakeMaker::Awesome 0.42.
# Don't edit it but the dist.ini and plugins used to construct it.

use strict;
@@ -57,7 +57,7 @@
"Test::Warnings" => "0.005",
"utf8" => 0
},
- "VERSION" => "1.50",
+ "VERSION" => "1.51",
"test" => {
"TESTS" => "t/*.t"
}
@@ -101,7 +101,7 @@
"warnings::register" => 0
);

-unless ( eval { ExtUtils::MakeMaker->VERSION('6.63_03') } ) {
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/README.md new/DateTime-1.51/README.md
--- old/DateTime-1.50/README.md 2018-08-01 19:47:47.000000000 +0200
+++ new/DateTime-1.51/README.md 2019-04-21 21:46:49.000000000 +0200
@@ -4,7 +4,7 @@

# VERSION

-version 1.50
+version 1.51

# SYNOPSIS

@@ -2117,7 +2117,8 @@

- %Z

- The time zone or name or abbreviation.
+ The short name for the time zone, typically an abbreviation like "EST" or
+ "AEST".

- %%

@@ -2255,6 +2256,7 @@
- Karen Etheridge <ether@xxxxxxxx>
- Michael Conrad <mike@xxxxxxxxxxx>
- Michael R. Davis <mrdvt92@xxxxxxxxxxxxxxxxxxxxxxxx>
+- Mohammad S Anwar <mohammad.anwar@xxxxxxxxx>
- M Somerville <dracos@xxxxxxxxxxxxxxxxxxxxxxxx>
- Nick Tonkin <1nickt@xxxxxxxxxxxxxxxxxxxxxxxx>
- Olaf Alders <olaf@xxxxxxxxxxxxxxxxxxx>
@@ -2269,7 +2271,7 @@

# COPYRIGHT AND LICENSE

-This software is Copyright (c) 2003 - 2018 by Dave Rolsky.
+This software is Copyright (c) 2003 - 2019 by Dave Rolsky.

This is free software, licensed under:

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/lib/DateTime/Duration.pm
new/DateTime-1.51/lib/DateTime/Duration.pm
--- old/DateTime-1.50/lib/DateTime/Duration.pm 2018-08-01 19:47:47.000000000
+0200
+++ new/DateTime-1.51/lib/DateTime/Duration.pm 2019-04-21 21:46:49.000000000
+0200
@@ -4,7 +4,7 @@
use warnings;
use namespace::autoclean;

-our $VERSION = '1.50';
+our $VERSION = '1.51';

use Carp ();
use DateTime;
@@ -35,7 +35,7 @@
# compares to anything.
type => t('Defined'),
default => 0,
- }
+ }
} qw(
years
months
@@ -362,7 +362,7 @@

=head1 VERSION

-version 1.50
+version 1.51

=head1 SYNOPSIS

@@ -562,7 +562,7 @@

=head2 $dur->multiply( $number )

-Multiplies each unit in the by the specified integer number.
+Multiplies each unit in the C<DateTime::Duration> object by the specified
integer number.

=head2 DateTime::Duration->compare( $duration1, $duration2, $base_datetime )

@@ -656,7 +656,7 @@

=head1 COPYRIGHT AND LICENSE

-This software is Copyright (c) 2003 - 2018 by Dave Rolsky.
+This software is Copyright (c) 2003 - 2019 by Dave Rolsky.

This is free software, licensed under:

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/lib/DateTime/Helpers.pm
new/DateTime-1.51/lib/DateTime/Helpers.pm
--- old/DateTime-1.50/lib/DateTime/Helpers.pm 2018-08-01 19:47:47.000000000
+0200
+++ new/DateTime-1.51/lib/DateTime/Helpers.pm 2019-04-21 21:46:49.000000000
+0200
@@ -3,7 +3,7 @@
use strict;
use warnings;

-our $VERSION = '1.50';
+our $VERSION = '1.51';

use Scalar::Util ();

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/lib/DateTime/Infinite.pm
new/DateTime-1.51/lib/DateTime/Infinite.pm
--- old/DateTime-1.50/lib/DateTime/Infinite.pm 2018-08-01 19:47:47.000000000
+0200
+++ new/DateTime-1.51/lib/DateTime/Infinite.pm 2019-04-21 21:46:49.000000000
+0200
@@ -5,7 +5,7 @@
use warnings;
use namespace::autoclean;

-our $VERSION = '1.50';
+our $VERSION = '1.51';

use DateTime;
use DateTime::TimeZone;
@@ -214,7 +214,7 @@

=head1 VERSION

-version 1.50
+version 1.51

=head1 SYNOPSIS

@@ -280,7 +280,7 @@

=head1 COPYRIGHT AND LICENSE

-This software is Copyright (c) 2003 - 2018 by Dave Rolsky.
+This software is Copyright (c) 2003 - 2019 by Dave Rolsky.

This is free software, licensed under:

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/lib/DateTime/LeapSecond.pm
new/DateTime-1.51/lib/DateTime/LeapSecond.pm
--- old/DateTime-1.50/lib/DateTime/LeapSecond.pm 2018-08-01
19:47:47.000000000 +0200
+++ new/DateTime-1.51/lib/DateTime/LeapSecond.pm 2019-04-21
21:46:49.000000000 +0200
@@ -4,7 +4,7 @@
use warnings;
use namespace::autoclean;

-our $VERSION = '1.50';
+our $VERSION = '1.51';

our ( @RD, @LEAP_SECONDS, %RD_LENGTH );

@@ -134,7 +134,7 @@

=head1 VERSION

-version 1.50
+version 1.51

=head1 SYNOPSIS

@@ -199,7 +199,7 @@

=head1 COPYRIGHT AND LICENSE

-This software is Copyright (c) 2003 - 2018 by Dave Rolsky.
+This software is Copyright (c) 2003 - 2019 by Dave Rolsky.

This is free software, licensed under:

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/lib/DateTime/PP.pm
new/DateTime-1.51/lib/DateTime/PP.pm
--- old/DateTime-1.50/lib/DateTime/PP.pm 2018-08-01 19:47:47.000000000
+0200
+++ new/DateTime-1.51/lib/DateTime/PP.pm 2019-04-21 21:46:49.000000000
+0200
@@ -3,7 +3,7 @@
use strict;
use warnings;

-our $VERSION = '1.50';
+our $VERSION = '1.51';

## no critic (Variables::ProhibitPackageVars)
$DateTime::IsPurePerl = 1;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/lib/DateTime/PPExtra.pm
new/DateTime-1.51/lib/DateTime/PPExtra.pm
--- old/DateTime-1.50/lib/DateTime/PPExtra.pm 2018-08-01 19:47:47.000000000
+0200
+++ new/DateTime-1.51/lib/DateTime/PPExtra.pm 2019-04-21 21:46:49.000000000
+0200
@@ -3,7 +3,7 @@
use strict;
use warnings;

-our $VERSION = '1.50';
+our $VERSION = '1.51';

use DateTime::LeapSecond;

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/lib/DateTime/Types.pm
new/DateTime-1.51/lib/DateTime/Types.pm
--- old/DateTime-1.50/lib/DateTime/Types.pm 2018-08-01 19:47:47.000000000
+0200
+++ new/DateTime-1.51/lib/DateTime/Types.pm 2019-04-21 21:46:49.000000000
+0200
@@ -4,7 +4,7 @@
use warnings;
use namespace::autoclean;

-our $VERSION = '1.50';
+our $VERSION = '1.51';

use parent 'Specio::Exporter';

@@ -170,7 +170,7 @@

=head1 VERSION

-version 1.50
+version 1.51

=head1 DESCRIPTION

@@ -197,7 +197,7 @@

=head1 COPYRIGHT AND LICENSE

-This software is Copyright (c) 2003 - 2018 by Dave Rolsky.
+This software is Copyright (c) 2003 - 2019 by Dave Rolsky.

This is free software, licensed under:

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/lib/DateTime.pm
new/DateTime-1.51/lib/DateTime.pm
--- old/DateTime-1.50/lib/DateTime.pm 2018-08-01 19:47:47.000000000 +0200
+++ new/DateTime-1.51/lib/DateTime.pm 2019-04-21 21:46:49.000000000 +0200
@@ -8,7 +8,7 @@
use warnings::register;
use namespace::autoclean 0.19;

-our $VERSION = '1.50';
+our $VERSION = '1.51';

use Carp;
use DateTime::Duration;
@@ -501,7 +501,7 @@
if ( int $p{epoch} != $p{epoch} ) {
my ( $floor, $nano, $second );

- $floor = $nano = fmod( $p{epoch}, 1.0 );
+ $floor = $nano = fmod( $p{epoch}, 1.0 );
$second = floor( $p{epoch} - $floor );
if ( $nano < 0 ) {
$nano += 1;
@@ -1214,7 +1214,7 @@
# yy is a weird special case, where it must be exactly 2 digits
qr/yy/ => sub {
my $year = $_[0]->year();
- my $y2 = length $year > 2 ? substr( $year, -2, 2 ) : $year;
+ my $y2 = length $year > 2 ? substr( $year, -2, 2 ) : $year;
$y2 *= -1 if $year < 0;
$_[0]->_zero_padded_number( 'yy', $y2 );
},
@@ -1415,14 +1415,21 @@
}

sub _format_nanosecs {
- my $self = shift;
+ my $self = shift;
my $precision = @_ ? shift : 9;

- my $divide_by = 10**( 9 - $precision );
+ my $exponent = 9 - $precision;
+ my $formatted_ns = floor(
+ (
+ $exponent < 0
+ ? $self->{rd_nanosecs} * 10**-$exponent
+ : $self->{rd_nanosecs} / 10**$exponent
+ )
+ );

return sprintf(
'%0' . $precision . 'u',
- floor( $self->{rd_nanosecs} / $divide_by )
+ $formatted_ns
);
}

@@ -2313,7 +2320,7 @@
'DateTime::_Thawed';

my %formatter = defined $$formatter ? ( formatter => $$formatter ) : ();
- my $new = ( ref $self )->from_object(
+ my $new = ( ref $self )->from_object(
object => $object,
locale => $locale,
%formatter,
@@ -2348,7 +2355,7 @@

=head1 VERSION

-version 1.50
+version 1.51

=head1 SYNOPSIS

@@ -4491,7 +4498,8 @@

=item * %Z

-The time zone or name or abbreviation.
+The short name for the time zone, typically an abbreviation like "EST" or
+"AEST".

=item * %%

@@ -4613,7 +4621,7 @@

=head1 CONTRIBUTORS

-=for stopwords Ben Bennett Christian Hansen Daisuke Maki Dan Book Stewart
David E. Wheeler Precious Doug Bell Flávio Soibelmann Glock Gianni Ceccarelli
Gregory Oschwald Hauke D Iain Truskett Jason McIntosh Joshua Hoblitt Karen
Etheridge Michael Conrad R. Davis M Somerville Nick Tonkin Olaf Alders Ovid
Paul Howarth Philippe Bruhat (BooK) Ricardo Signes Richard Bowen Ron Hill Sam
Kington viviparous
+=for stopwords Ben Bennett Christian Hansen Daisuke Maki Dan Book Stewart
David E. Wheeler Precious Doug Bell Flávio Soibelmann Glock Gianni Ceccarelli
Gregory Oschwald Hauke D Iain Truskett Jason McIntosh Joshua Hoblitt Karen
Etheridge Michael Conrad R. Davis Mohammad S Anwar M Somerville Nick Tonkin
Olaf Alders Ovid Paul Howarth Philippe Bruhat (BooK) Ricardo Signes Richard
Bowen Ron Hill Sam Kington viviparous

=over 4

@@ -4691,6 +4699,10 @@

=item *

+Mohammad S Anwar <mohammad.anwar@xxxxxxxxx>
+
+=item *
+
M Somerville <dracos@xxxxxxxxxxxxxxxxxxxxxxxx>

=item *
@@ -4737,7 +4749,7 @@

=head1 COPYRIGHT AND LICENSE

-This software is Copyright (c) 2003 - 2018 by Dave Rolsky.
+This software is Copyright (c) 2003 - 2019 by Dave Rolsky.

This is free software, licensed under:

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/ppport.h new/DateTime-1.51/ppport.h
--- old/DateTime-1.50/ppport.h 2018-08-01 19:47:47.000000000 +0200
+++ new/DateTime-1.51/ppport.h 2019-04-21 21:46:49.000000000 +0200
@@ -4,7 +4,7 @@
/*
----------------------------------------------------------------------

- ppport.h -- Perl/Pollution/Portability Version 3.42
+ ppport.h -- Perl/Pollution/Portability Version 3.45

Automatically created by Devel::PPPort running under perl 5.026002.

@@ -21,7 +21,7 @@

=head1 NAME

-ppport.h - Perl/Pollution/Portability version 3.42
+ppport.h - Perl/Pollution/Portability version 3.45

=head1 SYNOPSIS

@@ -389,7 +389,7 @@
# Disable broken TRIE-optimization
BEGIN { eval '${^RE_TRIE_MAXBUF} = -1' if "$]" >= 5.009004 && "$]" <= 5.009005
}

-my $VERSION = 3.42;
+my $VERSION = 3.45;

my %opt = (
quiet => 0,
@@ -4585,8 +4585,8 @@
# if ( (PERL_BCDVERSION >= 0x5008000) && (PERL_BCDVERSION < 0x5008009) ) || (
(PERL_BCDVERSION >= 0x5009000) && (PERL_BCDVERSION < 0x5010001) )
# define D_PPP_FIX_UTF8_ERRSV(errsv, sv) \
STMT_START { \
- if (sv != ERRSV) \
- SvFLAGS(ERRSV) = (SvFLAGS(ERRSV) & ~SVf_UTF8) | \
+ if (sv != errsv) \
+ SvFLAGS(errsv) = (SvFLAGS(errsv) & ~SVf_UTF8) | \
(SvFLAGS(sv) & SVf_UTF8); \
} STMT_END
# else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/t/02last-day.t
new/DateTime-1.51/t/02last-day.t
--- old/DateTime-1.50/t/02last-day.t 2018-08-01 19:47:47.000000000 +0200
+++ new/DateTime-1.51/t/02last-day.t 2019-04-21 21:46:49.000000000 +0200
@@ -6,7 +6,7 @@

use DateTime;

-my @last_day = ( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 );
+my @last_day = ( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 );
my @leap_last_day = @last_day;
$leap_last_day[1]++;

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/t/04epoch.t
new/DateTime-1.51/t/04epoch.t
--- old/DateTime-1.50/t/04epoch.t 2018-08-01 19:47:47.000000000 +0200
+++ new/DateTime-1.51/t/04epoch.t 2019-04-21 21:46:49.000000000 +0200
@@ -84,7 +84,7 @@

# Adding/subtracting should affect epoch
{
- my $expected = 1049160602;
+ my $expected = 1049160602;
my $epochtest = DateTime->from_epoch( epoch => $expected );

is(
@@ -199,13 +199,13 @@
is( $dt->epoch, 12345, 'can pass overloaded object to from_epoch' );

$time = Number::Overloaded->new(12345.1234);
- $dt = DateTime->from_epoch( epoch => $time );
+ $dt = DateTime->from_epoch( epoch => $time );
is( $dt->epoch, 12345, 'decimal epoch in overloaded object' );
}

{
my $time = Number::Overloaded->new(-12345);
- my $dt = DateTime->from_epoch( epoch => $time );
+ my $dt = DateTime->from_epoch( epoch => $time );

is( $dt->epoch, -12345, 'negative epoch in overloaded object' );
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/t/07compare.t
new/DateTime-1.51/t/07compare.t
--- old/DateTime-1.50/t/07compare.t 2018-08-01 19:47:47.000000000 +0200
+++ new/DateTime-1.51/t/07compare.t 2019-04-21 21:46:49.000000000 +0200
@@ -203,7 +203,7 @@
}

{
- my $dt = DateTime->new( year => 1950 );
+ my $dt = DateTime->new( year => 1950 );
my @values = $dt->utc_rd_values;

$values[2] += 50;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/t/13strftime.t
new/DateTime-1.51/t/13strftime.t
--- old/DateTime-1.50/t/13strftime.t 2018-08-01 19:47:47.000000000 +0200
+++ new/DateTime-1.51/t/13strftime.t 2019-04-21 21:46:49.000000000 +0200
@@ -159,7 +159,7 @@
sub {
# Internally this becomes 119999885 nanoseconds (floating
point math is awesome)
my $epoch = 1297777805.12;
- my $dt = DateTime->from_epoch( epoch => $epoch );
+ my $dt = DateTime->from_epoch( epoch => $epoch );

my @vals = (
1,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/t/20infinite.t
new/DateTime-1.51/t/20infinite.t
--- old/DateTime-1.50/t/20infinite.t 2018-08-01 19:47:47.000000000 +0200
+++ new/DateTime-1.51/t/20infinite.t 2019-04-21 21:46:49.000000000 +0200
@@ -152,7 +152,7 @@
}

{
- my $now = DateTime->now;
+ my $now = DateTime->now;
my $pos2 = $pos + DateTime::Duration->new( months => 1 );

ok(
@@ -162,7 +162,7 @@
}

{
- my $now = DateTime->now;
+ my $now = DateTime->now;
my $neg2 = $neg + DateTime::Duration->new( months => 1 );

ok(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/t/22from-doy.t
new/DateTime-1.51/t/22from-doy.t
--- old/DateTime-1.50/t/22from-doy.t 2018-08-01 19:47:47.000000000 +0200
+++ new/DateTime-1.51/t/22from-doy.t 2019-04-21 21:46:49.000000000 +0200
@@ -6,7 +6,7 @@

use DateTime;

-my @last_day = ( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 );
+my @last_day = ( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 );
my @leap_last_day = @last_day;
$leap_last_day[1]++;

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/t/23storable.t
new/DateTime-1.51/t/23storable.t
--- old/DateTime-1.50/t/23storable.t 2018-08-01 19:47:47.000000000 +0200
+++ new/DateTime-1.51/t/23storable.t 2019-04-21 21:46:49.000000000 +0200
@@ -68,7 +68,7 @@

# Back-compat shim for new DateTime::Locale. Remove once DT::Locale based
# on CLDR 28+ is released.
- my $meth = $dt1->locale->can('code') ? 'code' : 'id';
+ my $meth = $dt1->locale->can('code') ? 'code' : 'id';
my $orig_code = $dt1->locale->$meth;
is(
$dt2->locale->$meth,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/t/41cldr-format.t
new/DateTime-1.51/t/41cldr-format.t
--- old/DateTime-1.50/t/41cldr-format.t 2018-08-01 19:47:47.000000000 +0200
+++ new/DateTime-1.51/t/41cldr-format.t 2019-04-21 21:46:49.000000000 +0200
@@ -321,4 +321,13 @@
);
}

+{
+ my $dt = DateTime->new( year => 2019, nanosecond => 10 );
+ is(
+ '00000001000000',
+ $dt->format_cldr('SSSSSSSSSSSSSS'),
+ 'formatting nanosecond to > 9 digits of precision works',
+ );
+}
+
done_testing();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/xt/author/pod-spell.t
new/DateTime-1.51/xt/author/pod-spell.t
--- old/DateTime-1.50/xt/author/pod-spell.t 2018-08-01 19:47:47.000000000
+0200
+++ new/DateTime-1.51/xt/author/pod-spell.t 2019-04-21 21:46:49.000000000
+0200
@@ -11,8 +11,10 @@
all_pod_files_spelling_ok( qw( bin lib ) );
__DATA__
1nickt
+AEST
Alders
Anno
+Anwar
BCE
Bell
Ben
@@ -80,6 +82,7 @@
Measham
Measham's
Michael
+Mohammad
Nick
Olaf
Oschwald
@@ -162,6 +165,7 @@
lib
madcityzen
mike
+mohammad
mrdvt92
mutiplication
na
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/xt/author/pp-02last-day.t
new/DateTime-1.51/xt/author/pp-02last-day.t
--- old/DateTime-1.50/xt/author/pp-02last-day.t 2018-08-01 19:47:47.000000000
+0200
+++ new/DateTime-1.51/xt/author/pp-02last-day.t 2019-04-21 21:46:49.000000000
+0200
@@ -10,7 +10,7 @@

use DateTime;

-my @last_day = ( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 );
+my @last_day = ( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 );
my @leap_last_day = @last_day;
$leap_last_day[1]++;

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/xt/author/pp-04epoch.t
new/DateTime-1.51/xt/author/pp-04epoch.t
--- old/DateTime-1.50/xt/author/pp-04epoch.t 2018-08-01 19:47:47.000000000
+0200
+++ new/DateTime-1.51/xt/author/pp-04epoch.t 2019-04-21 21:46:49.000000000
+0200
@@ -88,7 +88,7 @@

# Adding/subtracting should affect epoch
{
- my $expected = 1049160602;
+ my $expected = 1049160602;
my $epochtest = DateTime->from_epoch( epoch => $expected );

is(
@@ -203,13 +203,13 @@
is( $dt->epoch, 12345, 'can pass overloaded object to from_epoch' );

$time = Number::Overloaded->new(12345.1234);
- $dt = DateTime->from_epoch( epoch => $time );
+ $dt = DateTime->from_epoch( epoch => $time );
is( $dt->epoch, 12345, 'decimal epoch in overloaded object' );
}

{
my $time = Number::Overloaded->new(-12345);
- my $dt = DateTime->from_epoch( epoch => $time );
+ my $dt = DateTime->from_epoch( epoch => $time );

is( $dt->epoch, -12345, 'negative epoch in overloaded object' );
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/xt/author/pp-07compare.t
new/DateTime-1.51/xt/author/pp-07compare.t
--- old/DateTime-1.50/xt/author/pp-07compare.t 2018-08-01 19:47:47.000000000
+0200
+++ new/DateTime-1.51/xt/author/pp-07compare.t 2019-04-21 21:46:49.000000000
+0200
@@ -207,7 +207,7 @@
}

{
- my $dt = DateTime->new( year => 1950 );
+ my $dt = DateTime->new( year => 1950 );
my @values = $dt->utc_rd_values;

$values[2] += 50;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/xt/author/pp-13strftime.t
new/DateTime-1.51/xt/author/pp-13strftime.t
--- old/DateTime-1.50/xt/author/pp-13strftime.t 2018-08-01 19:47:47.000000000
+0200
+++ new/DateTime-1.51/xt/author/pp-13strftime.t 2019-04-21 21:46:49.000000000
+0200
@@ -163,7 +163,7 @@
sub {
# Internally this becomes 119999885 nanoseconds (floating
point math is awesome)
my $epoch = 1297777805.12;
- my $dt = DateTime->from_epoch( epoch => $epoch );
+ my $dt = DateTime->from_epoch( epoch => $epoch );

my @vals = (
1,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/xt/author/pp-20infinite.t
new/DateTime-1.51/xt/author/pp-20infinite.t
--- old/DateTime-1.50/xt/author/pp-20infinite.t 2018-08-01 19:47:47.000000000
+0200
+++ new/DateTime-1.51/xt/author/pp-20infinite.t 2019-04-21 21:46:49.000000000
+0200
@@ -156,7 +156,7 @@
}

{
- my $now = DateTime->now;
+ my $now = DateTime->now;
my $pos2 = $pos + DateTime::Duration->new( months => 1 );

ok(
@@ -166,7 +166,7 @@
}

{
- my $now = DateTime->now;
+ my $now = DateTime->now;
my $neg2 = $neg + DateTime::Duration->new( months => 1 );

ok(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/xt/author/pp-22from-doy.t
new/DateTime-1.51/xt/author/pp-22from-doy.t
--- old/DateTime-1.50/xt/author/pp-22from-doy.t 2018-08-01 19:47:47.000000000
+0200
+++ new/DateTime-1.51/xt/author/pp-22from-doy.t 2019-04-21 21:46:49.000000000
+0200
@@ -10,7 +10,7 @@

use DateTime;

-my @last_day = ( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 );
+my @last_day = ( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 );
my @leap_last_day = @last_day;
$leap_last_day[1]++;

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/xt/author/pp-23storable.t
new/DateTime-1.51/xt/author/pp-23storable.t
--- old/DateTime-1.50/xt/author/pp-23storable.t 2018-08-01 19:47:47.000000000
+0200
+++ new/DateTime-1.51/xt/author/pp-23storable.t 2019-04-21 21:46:49.000000000
+0200
@@ -72,7 +72,7 @@

# Back-compat shim for new DateTime::Locale. Remove once DT::Locale based
# on CLDR 28+ is released.
- my $meth = $dt1->locale->can('code') ? 'code' : 'id';
+ my $meth = $dt1->locale->can('code') ? 'code' : 'id';
my $orig_code = $dt1->locale->$meth;
is(
$dt2->locale->$meth,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-1.50/xt/author/pp-41cldr-format.t
new/DateTime-1.51/xt/author/pp-41cldr-format.t
--- old/DateTime-1.50/xt/author/pp-41cldr-format.t 2018-08-01
19:47:47.000000000 +0200
+++ new/DateTime-1.51/xt/author/pp-41cldr-format.t 2019-04-21
21:46:49.000000000 +0200
@@ -325,5 +325,14 @@
);
}

+{
+ my $dt = DateTime->new( year => 2019, nanosecond => 10 );
+ is(
+ '00000001000000',
+ $dt->format_cldr('SSSSSSSSSSSSSS'),
+ 'formatting nanosecond to > 9 digits of precision works',
+ );
+}
+
done_testing();



< Previous Next >
This Thread
  • No further messages