Hello community,
here is the log from the commit of package perl-DateTime-Format-Strptime for
openSUSE:Factory checked in at 2016-03-16 10:34:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-DateTime-Format-Strptime (Old)
and /work/SRC/openSUSE:Factory/.perl-DateTime-Format-Strptime.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-DateTime-Format-Strptime"
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-DateTime-Format-Strptime/perl-DateTime-Format-Strptime.changes
2016-01-16 11:57:05.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.perl-DateTime-Format-Strptime.new/perl-DateTime-Format-Strptime.changes
2016-03-16 10:34:17.000000000 +0100
@@ -1,0 +2,12 @@
+Tue Mar 8 10:08:06 UTC 2016 - [email protected]
+
+- updated to 1.64
+ see /usr/share/doc/packages/perl-DateTime-Format-Strptime/Changes
+
+ 1.64 2016-02-21
+
+ - Changed how a string that contains separate epoch and nanosecond fields is
+ turned into a DateTime object in order to deal with changes coming in the
+ next DateTime release.
+
+-------------------------------------------------------------------
Old:
----
DateTime-Format-Strptime-1.63.tar.gz
New:
----
DateTime-Format-Strptime-1.64.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-DateTime-Format-Strptime.spec ++++++
--- /var/tmp/diff_new_pack.OOxeuj/_old 2016-03-16 10:34:18.000000000 +0100
+++ /var/tmp/diff_new_pack.OOxeuj/_new 2016-03-16 10:34:18.000000000 +0100
@@ -17,7 +17,7 @@
Name: perl-DateTime-Format-Strptime
-Version: 1.63
+Version: 1.64
Release: 0
%define cpan_name DateTime-Format-Strptime
Summary: Parse and format strp and strf time patterns
@@ -33,7 +33,6 @@
BuildRequires: perl(DateTime) >= 1.00
BuildRequires: perl(DateTime::Locale) >= 0.450000
BuildRequires: perl(DateTime::TimeZone) >= 0.79
-BuildRequires: perl(JSON::PP) >= 2.27300
BuildRequires: perl(Package::DeprecationManager) >= 0.15
BuildRequires: perl(Params::Validate) >= 1.20
BuildRequires: perl(Test::Fatal)
@@ -43,7 +42,6 @@
Requires: perl(DateTime) >= 1.00
Requires: perl(DateTime::Locale) >= 0.450000
Requires: perl(DateTime::TimeZone) >= 0.79
-Requires: perl(JSON::PP) >= 2.27300
Requires: perl(Package::DeprecationManager) >= 0.15
Requires: perl(Params::Validate) >= 1.20
Requires: perl(Try::Tiny)
++++++ DateTime-Format-Strptime-1.63.tar.gz ->
DateTime-Format-Strptime-1.64.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.63/Changes
new/DateTime-Format-Strptime-1.64/Changes
--- old/DateTime-Format-Strptime-1.63/Changes 2016-01-13 20:12:07.000000000
+0100
+++ new/DateTime-Format-Strptime-1.64/Changes 2016-02-21 21:43:49.000000000
+0100
@@ -1,3 +1,10 @@
+1.64 2016-02-21
+
+- Changed how a string that contains separate epoch and nanosecond fields is
+ turned into a DateTime object in order to deal with changes coming in the
+ next DateTime release.
+
+
1.63 2016-01-13
[BUG FIXES]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.63/MANIFEST
new/DateTime-Format-Strptime-1.64/MANIFEST
--- old/DateTime-Format-Strptime-1.63/MANIFEST 2016-01-13 20:12:07.000000000
+0100
+++ new/DateTime-Format-Strptime-1.64/MANIFEST 2016-02-21 21:43:49.000000000
+0100
@@ -29,6 +29,7 @@
t/import.t
t/lib/T.pm
t/locales.t
+t/release-meta-json.t
t/release-pod-coverage.t
t/release-pod-linkcheck.t
t/release-portability.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.63/META.json
new/DateTime-Format-Strptime-1.64/META.json
--- old/DateTime-Format-Strptime-1.63/META.json 2016-01-13 20:12:07.000000000
+0100
+++ new/DateTime-Format-Strptime-1.64/META.json 2016-02-21 21:43:49.000000000
+0100
@@ -18,6 +18,9 @@
"configure" : {
"requires" : {
"ExtUtils::MakeMaker" : "0"
+ },
+ "suggests" : {
+ "JSON::PP" : "2.27300"
}
},
"develop" : {
@@ -29,6 +32,7 @@
"Perl::Critic" : "1.123",
"Perl::Tidy" : "20140711",
"Pod::Coverage::TrustPod" : "0",
+ "Test::CPAN::Meta::JSON" : "0.16",
"Test::Code::TidyAll" : "0.24",
"Test::EOL" : "0",
"Test::Fatal" : "0",
@@ -49,7 +53,6 @@
"DateTime::Locale" : "0.45",
"DateTime::TimeZone" : "0.79",
"Exporter" : "0",
- "JSON::PP" : "2.27300",
"Package::DeprecationManager" : "0.15",
"Params::Validate" : "1.20",
"Try::Tiny" : "0",
@@ -77,7 +80,7 @@
"provides" : {
"DateTime::Format::Strptime" : {
"file" : "lib/DateTime/Format/Strptime.pm",
- "version" : "1.63"
+ "version" : "1.64"
}
},
"release_status" : "stable",
@@ -93,7 +96,7 @@
"web" : "https://github.com/autarch/DateTime-Format-Strptime"
}
},
- "version" : "1.63",
+ "version" : "1.64",
"x_Dist_Zilla" : {
"perl" : {
"version" : "5.022001"
@@ -152,7 +155,7 @@
{
"class" : "Dist::Zilla::Plugin::GitHub::Meta",
"name" : "@DROLSKY/GitHub::Meta",
- "version" : "0.41"
+ "version" : "0.42"
},
{
"class" : "Dist::Zilla::Plugin::GitHub::Update",
@@ -162,7 +165,7 @@
}
},
"name" : "@DROLSKY/GitHub::Update",
- "version" : "0.41"
+ "version" : "0.42"
},
{
"class" : "Dist::Zilla::Plugin::MetaResources",
@@ -367,22 +370,22 @@
{
"class" : "Dist::Zilla::Plugin::DROLSKY::Contributors",
"name" : "@DROLSKY/DROLSKY::Contributors",
- "version" : "0.40"
+ "version" : "0.42"
},
{
"class" : "Dist::Zilla::Plugin::DROLSKY::License",
"name" : "@DROLSKY/DROLSKY::License",
- "version" : "0.40"
+ "version" : "0.42"
},
{
"class" : "Dist::Zilla::Plugin::DROLSKY::TidyAll",
"name" : "@DROLSKY/DROLSKY::TidyAll",
- "version" : "0.40"
+ "version" : "0.42"
},
{
"class" : "Dist::Zilla::Plugin::DROLSKY::VersionProvider",
"name" : "@DROLSKY/DROLSKY::VersionProvider",
- "version" : "0.40"
+ "version" : "0.42"
},
{
"class" :
"Dist::Zilla::Plugin::DROLSKY::Git::CheckFor::CorrectBranch",
@@ -392,7 +395,7 @@
}
},
"name" : "@DROLSKY/DROLSKY::Git::CheckFor::CorrectBranch",
- "version" : "0.40"
+ "version" : "0.42"
},
{
"class" : "Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts",
@@ -417,7 +420,7 @@
}
},
"name" : "@DROLSKY/Git::Contributors",
- "version" : "0.017"
+ "version" : "0.020"
},
{
"class" : "Dist::Zilla::Plugin::InstallGuide",
@@ -525,6 +528,11 @@
"version" : "5.043"
},
{
+ "class" : "Dist::Zilla::Plugin::Test::CPAN::Meta::JSON",
+ "name" : "@DROLSKY/Test::CPAN::Meta::JSON",
+ "version" : "0.004"
+ },
+ {
"class" : "Dist::Zilla::Plugin::Test::EOL",
"config" : {
"Dist::Zilla::Plugin::Test::EOL" : {
@@ -650,7 +658,7 @@
"branch" : null,
"changelog" : "Changes",
"signed" : 0,
- "tag" : "v1.63",
+ "tag" : "v1.64",
"tag_format" : "v%v",
"tag_message" : "v%v"
},
@@ -693,7 +701,7 @@
}
},
"name" : "@DROLSKY/BumpVersionAfterRelease",
- "version" : "0.012"
+ "version" : "0.013"
},
{
"class" : "Dist::Zilla::Plugin::Git::Commit",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.63/META.yml
new/DateTime-Format-Strptime-1.64/META.yml
--- old/DateTime-Format-Strptime-1.63/META.yml 2016-01-13 20:12:07.000000000
+0100
+++ new/DateTime-Format-Strptime-1.64/META.yml 2016-02-21 21:43:49.000000000
+0100
@@ -24,14 +24,13 @@
provides:
DateTime::Format::Strptime:
file: lib/DateTime/Format/Strptime.pm
- version: '1.63'
+ version: '1.64'
requires:
Carp: '0'
DateTime: '1.00'
DateTime::Locale: '0.45'
DateTime::TimeZone: '0.79'
Exporter: '0'
- JSON::PP: '2.27300'
Package::DeprecationManager: '0.15'
Params::Validate: '1.20'
Try::Tiny: '0'
@@ -42,7 +41,7 @@
bugtracker:
http://rt.cpan.org/Public/Dist/Display.html?Name=DateTime-Format-Strptime
homepage: http://metacpan.org/release/DateTime-Format-Strptime
repository: git://github.com/autarch/DateTime-Format-Strptime.git
-version: '1.63'
+version: '1.64'
x_Dist_Zilla:
perl:
version: '5.022001'
@@ -89,14 +88,14 @@
-
class: Dist::Zilla::Plugin::GitHub::Meta
name: '@DROLSKY/GitHub::Meta'
- version: '0.41'
+ version: '0.42'
-
class: Dist::Zilla::Plugin::GitHub::Update
config:
Dist::Zilla::Plugin::GitHub::Update:
metacpan: 1
name: '@DROLSKY/GitHub::Update'
- version: '0.41'
+ version: '0.42'
-
class: Dist::Zilla::Plugin::MetaResources
name: '@DROLSKY/MetaResources'
@@ -256,26 +255,26 @@
-
class: Dist::Zilla::Plugin::DROLSKY::Contributors
name: '@DROLSKY/DROLSKY::Contributors'
- version: '0.40'
+ version: '0.42'
-
class: Dist::Zilla::Plugin::DROLSKY::License
name: '@DROLSKY/DROLSKY::License'
- version: '0.40'
+ version: '0.42'
-
class: Dist::Zilla::Plugin::DROLSKY::TidyAll
name: '@DROLSKY/DROLSKY::TidyAll'
- version: '0.40'
+ version: '0.42'
-
class: Dist::Zilla::Plugin::DROLSKY::VersionProvider
name: '@DROLSKY/DROLSKY::VersionProvider'
- version: '0.40'
+ version: '0.42'
-
class: Dist::Zilla::Plugin::DROLSKY::Git::CheckFor::CorrectBranch
config:
Dist::Zilla::Role::Git::Repo:
repo_root: .
name: '@DROLSKY/DROLSKY::Git::CheckFor::CorrectBranch'
- version: '0.40'
+ version: '0.42'
-
class: Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts
config:
@@ -293,7 +292,7 @@
paths:
- .
name: '@DROLSKY/Git::Contributors'
- version: '0.017'
+ version: '0.020'
-
class: Dist::Zilla::Plugin::InstallGuide
name: '@DROLSKY/InstallGuide'
@@ -377,6 +376,10 @@
name: '@DROLSKY/PodSyntaxTests'
version: '5.043'
-
+ class: Dist::Zilla::Plugin::Test::CPAN::Meta::JSON
+ name: '@DROLSKY/Test::CPAN::Meta::JSON'
+ version: '0.004'
+ -
class: Dist::Zilla::Plugin::Test::EOL
config:
Dist::Zilla::Plugin::Test::EOL:
@@ -474,7 +477,7 @@
branch: ~
changelog: Changes
signed: 0
- tag: v1.63
+ tag: v1.64
tag_format: v%v
tag_message: v%v
Dist::Zilla::Role::Git::Repo:
@@ -504,7 +507,7 @@
global: 0
munge_makefile_pl: 1
name: '@DROLSKY/BumpVersionAfterRelease'
- version: '0.012'
+ version: '0.013'
-
class: Dist::Zilla::Plugin::Git::Commit
config:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.63/Makefile.PL
new/DateTime-Format-Strptime-1.64/Makefile.PL
--- old/DateTime-Format-Strptime-1.63/Makefile.PL 2016-01-13
20:12:07.000000000 +0100
+++ new/DateTime-Format-Strptime-1.64/Makefile.PL 2016-02-21
21:43:49.000000000 +0100
@@ -21,7 +21,6 @@
"DateTime::Locale" => "0.45",
"DateTime::TimeZone" => "0.79",
"Exporter" => 0,
- "JSON::PP" => "2.27300",
"Package::DeprecationManager" => "0.15",
"Params::Validate" => "1.20",
"Try::Tiny" => 0,
@@ -39,7 +38,7 @@
"lib" => 0,
"utf8" => 0
},
- "VERSION" => "1.63",
+ "VERSION" => "1.64",
"test" => {
"TESTS" => "t/*.t"
}
@@ -54,7 +53,6 @@
"Exporter" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
- "JSON::PP" => "2.27300",
"Package::DeprecationManager" => "0.15",
"Params::Validate" => "1.20",
"Test::Builder" => 0,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.63/README.md
new/DateTime-Format-Strptime-1.64/README.md
--- old/DateTime-Format-Strptime-1.63/README.md 2016-01-13 20:12:07.000000000
+0100
+++ new/DateTime-Format-Strptime-1.64/README.md 2016-02-21 21:43:49.000000000
+0100
@@ -5,7 +5,7 @@
VERSION
- version 1.63
+ version 1.64
SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.63/cpanfile
new/DateTime-Format-Strptime-1.64/cpanfile
--- old/DateTime-Format-Strptime-1.63/cpanfile 2016-01-13 20:12:07.000000000
+0100
+++ new/DateTime-Format-Strptime-1.64/cpanfile 2016-02-21 21:43:49.000000000
+0100
@@ -3,7 +3,6 @@
requires "DateTime::Locale" => "0.45";
requires "DateTime::TimeZone" => "0.79";
requires "Exporter" => "0";
-requires "JSON::PP" => "2.27300";
requires "Package::DeprecationManager" => "0.15";
requires "Params::Validate" => "1.20";
requires "Try::Tiny" => "0";
@@ -30,6 +29,10 @@
requires "ExtUtils::MakeMaker" => "0";
};
+on 'configure' => sub {
+ suggests "JSON::PP" => "2.27300";
+};
+
on 'develop' => sub {
requires "Code::TidyAll" => "0.24";
requires "File::Spec" => "0";
@@ -38,6 +41,7 @@
requires "Perl::Critic" => "1.123";
requires "Perl::Tidy" => "20140711";
requires "Pod::Coverage::TrustPod" => "0";
+ requires "Test::CPAN::Meta::JSON" => "0.16";
requires "Test::Code::TidyAll" => "0.24";
requires "Test::EOL" => "0";
requires "Test::Fatal" => "0";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/DateTime-Format-Strptime-1.63/lib/DateTime/Format/Strptime.pm
new/DateTime-Format-Strptime-1.64/lib/DateTime/Format/Strptime.pm
--- old/DateTime-Format-Strptime-1.63/lib/DateTime/Format/Strptime.pm
2016-01-13 20:12:07.000000000 +0100
+++ new/DateTime-Format-Strptime-1.64/lib/DateTime/Format/Strptime.pm
2016-02-21 21:43:49.000000000 +0100
@@ -3,7 +3,7 @@
use strict;
use warnings;
-our $VERSION = '1.63';
+our $VERSION = '1.64';
use Carp qw( carp croak );
use DateTime 1.00;
@@ -231,12 +231,16 @@
# We need to copy the %args here because _munge_args will delete keys in
# order to turn this into something that can be passed to a DateTime
# constructor.
- my ( $constructor, $args ) = $self->_munge_args( {%args} )
- or return;
+ my ( $constructor, $args, $post_construct )
+ = $self->_munge_args( {%args} );
+ return unless $constructor && $args;
my $dt = try { DateTime->$constructor($args) };
$self->_our_croak('Parsed values did not produce a valid date')
unless $dt;
+ if ($post_construct) {
+ $post_construct->($dt);
+ }
return unless $dt && $self->_check_dt( $dt, \%args );
$dt->set_time_zone( $self->{time_zone} )
@@ -274,7 +278,6 @@
my $regex;
my @fields;
- my @postprocess;
while (
$pattern =~ /
@@ -640,24 +643,39 @@
$args->{$k} =~ s/^\s+//;
}
- # If we parsed "12345" we treat it as "123450000" but if we parsed
- # "000123456" we treat it as 123,456 nanoseconds. This is all a bit
- # weird and confusing but it matches how this module has always
- # worked.
- $args->{nanosecond} *= 10**( 9 - length $args->{nanosecond} )
- if defined $args->{nanosecond} && length $args->{nanosecond} != 9;
+ if ( defined $args->{nanosecond} ) {
+
+ # If we parsed "12345" we treat it as "123450000" but if we parsed
+ # "000123456" we treat it as 123,456 nanoseconds. This is all a bit
+ # weird and confusing but it matches how this module has always
+ # worked.
+ $args->{nanosecond} *= 10**( 9 - length $args->{nanosecond} )
+ if length $args->{nanosecond} != 9;
+
+ # If we parsed 000000123 we want to turn this into a number.
+ $args->{nanosecond} += 0;
+ }
for my $k (qw( year month day )) {
$args->{$k} = 1 unless defined $args->{$k};
}
if ( defined $args->{epoch} ) {
- $args->{epoch} .= q{.} . $args->{nanosecond}
- if defined $args->{nanosecond};
+
+ # We don't want to pass a non-integer epoch value since that gets
+ # truncated as of DateTime 1.22. Instead, we'll set the nanosecond
+ # to parsed value after constructing the object. This is a hack,
+ # but it's the best I can come up with.
+ my $post_construct;
+ if ( my $nano = $args->{nanosecond} ) {
+ $post_construct = sub { $_[0]->set( nanosecond => $nano ) };
+ }
+
delete @{$args}{
qw( day_of_year year month day hour minute second nanosecond )
};
- return ( 'from_epoch', $args );
+
+ return ( 'from_epoch', $args, $post_construct );
}
elsif ( $args->{day_of_year} ) {
delete @{$args}{qw( epoch month day )};
@@ -1008,7 +1026,7 @@
=head1 VERSION
-version 1.63
+version 1.64
=head1 SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.63/t/00-report-prereqs.dd
new/DateTime-Format-Strptime-1.64/t/00-report-prereqs.dd
--- old/DateTime-Format-Strptime-1.63/t/00-report-prereqs.dd 2016-01-13
20:12:07.000000000 +0100
+++ new/DateTime-Format-Strptime-1.64/t/00-report-prereqs.dd 2016-02-21
21:43:49.000000000 +0100
@@ -2,6 +2,9 @@
'configure' => {
'requires' => {
'ExtUtils::MakeMaker' => '0'
+ },
+ 'suggests' => {
+ 'JSON::PP' => '2.27300'
}
},
'develop' => {
@@ -13,6 +16,7 @@
'Perl::Critic' => '1.123',
'Perl::Tidy' => '20140711',
'Pod::Coverage::TrustPod' => '0',
+ 'Test::CPAN::Meta::JSON' => '0.16',
'Test::Code::TidyAll' => '0.24',
'Test::EOL' => '0',
'Test::Fatal' => '0',
@@ -33,7 +37,6 @@
'DateTime::Locale' => '0.45',
'DateTime::TimeZone' => '0.79',
'Exporter' => '0',
- 'JSON::PP' => '2.27300',
'Package::DeprecationManager' => '0.15',
'Params::Validate' => '1.20',
'Try::Tiny' => '0',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.63/t/author-eol.t
new/DateTime-Format-Strptime-1.64/t/author-eol.t
--- old/DateTime-Format-Strptime-1.63/t/author-eol.t 2016-01-13
20:12:07.000000000 +0100
+++ new/DateTime-Format-Strptime-1.64/t/author-eol.t 2016-02-21
21:43:49.000000000 +0100
@@ -32,6 +32,7 @@
't/import.t',
't/lib/T.pm',
't/locales.t',
+ 't/release-meta-json.t',
't/release-pod-coverage.t',
't/release-pod-linkcheck.t',
't/release-portability.t',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.63/t/author-no-tabs.t
new/DateTime-Format-Strptime-1.64/t/author-no-tabs.t
--- old/DateTime-Format-Strptime-1.63/t/author-no-tabs.t 2016-01-13
20:12:07.000000000 +0100
+++ new/DateTime-Format-Strptime-1.64/t/author-no-tabs.t 2016-02-21
21:43:49.000000000 +0100
@@ -32,6 +32,7 @@
't/import.t',
't/lib/T.pm',
't/locales.t',
+ 't/release-meta-json.t',
't/release-pod-coverage.t',
't/release-pod-linkcheck.t',
't/release-portability.t',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.63/t/release-meta-json.t
new/DateTime-Format-Strptime-1.64/t/release-meta-json.t
--- old/DateTime-Format-Strptime-1.63/t/release-meta-json.t 1970-01-01
01:00:00.000000000 +0100
+++ new/DateTime-Format-Strptime-1.64/t/release-meta-json.t 2016-02-21
21:43:49.000000000 +0100
@@ -0,0 +1,12 @@
+#!perl
+
+BEGIN {
+ unless ($ENV{RELEASE_TESTING}) {
+ require Test::More;
+ Test::More::plan(skip_all => 'these tests are for release candidate
testing');
+ }
+}
+
+
+use Test::CPAN::Meta::JSON;
+meta_json_ok();