Hello community,
here is the log from the commit of package perl-DateTime-Format-ISO8601 for
openSUSE:Factory checked in at 2020-10-28 09:58:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-DateTime-Format-ISO8601 (Old)
and /work/SRC/openSUSE:Factory/.perl-DateTime-Format-ISO8601.new.3463
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-DateTime-Format-ISO8601"
Wed Oct 28 09:58:58 2020 rev:3 rq:844391 version:0.15
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-DateTime-Format-ISO8601/perl-DateTime-Format-ISO8601.changes
2020-08-21 19:18:27.148861198 +0200
+++
/work/SRC/openSUSE:Factory/.perl-DateTime-Format-ISO8601.new.3463/perl-DateTime-Format-ISO8601.changes
2020-10-28 09:59:12.483179421 +0100
@@ -1,0 +2,11 @@
+Sun Oct 25 03:07:01 UTC 2020 - Tina Müller <[email protected]>
+
+- updated to 0.15
+ see /usr/share/doc/packages/perl-DateTime-Format-ISO8601/Changes
+
+ 0.15 2020-10-24
+
+ - Fixed the SYNOPSIS, which showed calling parse_time with a string that
would
+ cause an error. Reported by Yuki Yoshida. GH #12.
+
+-------------------------------------------------------------------
Old:
----
DateTime-Format-ISO8601-0.14.tar.gz
New:
----
DateTime-Format-ISO8601-0.15.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-DateTime-Format-ISO8601.spec ++++++
--- /var/tmp/diff_new_pack.JHPxTv/_old 2020-10-28 09:59:13.087179844 +0100
+++ /var/tmp/diff_new_pack.JHPxTv/_new 2020-10-28 09:59:13.091179846 +0100
@@ -17,7 +17,7 @@
Name: perl-DateTime-Format-ISO8601
-Version: 0.14
+Version: 0.15
Release: 0
%define cpan_name DateTime-Format-ISO8601
Summary: Parses ISO8601 formats
++++++ DateTime-Format-ISO8601-0.14.tar.gz ->
DateTime-Format-ISO8601-0.15.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-ISO8601-0.14/Changes
new/DateTime-Format-ISO8601-0.15/Changes
--- old/DateTime-Format-ISO8601-0.14/Changes 2020-08-16 17:00:48.000000000
+0200
+++ new/DateTime-Format-ISO8601-0.15/Changes 2020-10-24 19:07:31.000000000
+0200
@@ -1,3 +1,9 @@
+0.15 2020-10-24
+
+- Fixed the SYNOPSIS, which showed calling parse_time with a string that would
+ cause an error. Reported by Yuki Yoshida. GH #12.
+
+
0.14 2020-08-16
- Require DateTime 1.45, which added a year_length() method that this package
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-ISO8601-0.14/META.json
new/DateTime-Format-ISO8601-0.15/META.json
--- old/DateTime-Format-ISO8601-0.14/META.json 2020-08-16 17:00:48.000000000
+0200
+++ new/DateTime-Format-ISO8601-0.15/META.json 2020-10-24 19:07:31.000000000
+0200
@@ -83,11 +83,11 @@
"provides" : {
"DateTime::Format::ISO8601" : {
"file" : "lib/DateTime/Format/ISO8601.pm",
- "version" : "0.14"
+ "version" : "0.15"
},
"DateTime::Format::ISO8601::Types" : {
"file" : "lib/DateTime/Format/ISO8601/Types.pm",
- "version" : "0.14"
+ "version" : "0.15"
}
},
"release_status" : "stable",
@@ -102,7 +102,7 @@
"web" : "https://github.com/houseabsolute/DateTime-Format-ISO8601"
}
},
- "version" : "0.14",
+ "version" : "0.15",
"x_Dist_Zilla" : {
"perl" : {
"version" : "5.030001"
@@ -132,7 +132,7 @@
}
},
"name" : "@DROLSKY/Git::GatherDir",
- "version" : "2.046"
+ "version" : "2.047"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
@@ -864,14 +864,15 @@
}
},
"name" : "@DROLSKY/Git::Check",
- "version" : "2.046"
+ "version" : "2.047"
},
{
"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",
+ "signoff" : 0
},
"Dist::Zilla::Role::Git::DirtyFiles" : {
"allow_dirty" : [
@@ -896,7 +897,7 @@
}
},
"name" : "@DROLSKY/Commit generated files",
- "version" : "2.046"
+ "version" : "2.047"
},
{
"class" : "Dist::Zilla::Plugin::Git::Tag",
@@ -905,7 +906,7 @@
"branch" : null,
"changelog" : "Changes",
"signed" : 0,
- "tag" : "v0.14",
+ "tag" : "v0.15",
"tag_format" : "v%V",
"tag_message" : "v%V"
},
@@ -918,7 +919,7 @@
}
},
"name" : "@DROLSKY/Git::Tag",
- "version" : "2.046"
+ "version" : "2.047"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
@@ -935,7 +936,7 @@
}
},
"name" : "@DROLSKY/Git::Push",
- "version" : "2.046"
+ "version" : "2.047"
},
{
"class" : "Dist::Zilla::Plugin::BumpVersionAfterRelease",
@@ -957,7 +958,8 @@
"config" : {
"Dist::Zilla::Plugin::Git::Commit" : {
"add_files_in" : [],
- "commit_msg" : "Bump version after release"
+ "commit_msg" : "Bump version after release",
+ "signoff" : 0
},
"Dist::Zilla::Role::Git::DirtyFiles" : {
"allow_dirty" : [
@@ -978,7 +980,7 @@
}
},
"name" : "@DROLSKY/Commit version bump",
- "version" : "2.046"
+ "version" : "2.047"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
@@ -995,7 +997,7 @@
}
},
"name" : "@DROLSKY/Push version bump",
- "version" : "2.046"
+ "version" : "2.047"
},
{
"class" : "Dist::Zilla::Plugin::DROLSKY::MakeMaker",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-ISO8601-0.14/META.yml
new/DateTime-Format-ISO8601-0.15/META.yml
--- old/DateTime-Format-ISO8601-0.14/META.yml 2020-08-16 17:00:48.000000000
+0200
+++ new/DateTime-Format-ISO8601-0.15/META.yml 2020-10-24 19:07:31.000000000
+0200
@@ -20,10 +20,10 @@
provides:
DateTime::Format::ISO8601:
file: lib/DateTime/Format/ISO8601.pm
- version: '0.14'
+ version: '0.15'
DateTime::Format::ISO8601::Types:
file: lib/DateTime/Format/ISO8601/Types.pm
- version: '0.14'
+ version: '0.15'
requires:
Carp: '0'
DateTime: '1.45'
@@ -41,7 +41,7 @@
bugtracker: https://github.com/houseabsolute/DateTime-Format-ISO8601/issues
homepage: https://metacpan.org/release/DateTime-HiRes
repository: git://github.com/houseabsolute/DateTime-Format-ISO8601.git
-version: '0.14'
+version: '0.15'
x_Dist_Zilla:
perl:
version: '5.030001'
@@ -66,7 +66,7 @@
Dist::Zilla::Plugin::Git::GatherDir:
include_untracked: 0
name: '@DROLSKY/Git::GatherDir'
- version: '2.046'
+ version: '2.047'
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@DROLSKY/ManifestSkip'
@@ -640,13 +640,14 @@
git_version: 2.20.1
repo_root: .
name: '@DROLSKY/Git::Check'
- version: '2.046'
+ version: '2.047'
-
class: Dist::Zilla::Plugin::Git::Commit
config:
Dist::Zilla::Plugin::Git::Commit:
add_files_in: []
commit_msg: v%V%n%n%c
+ signoff: 0
Dist::Zilla::Role::Git::DirtyFiles:
allow_dirty:
- CODE_OF_CONDUCT.md
@@ -665,7 +666,7 @@
Dist::Zilla::Role::Git::StringFormatter:
time_zone: local
name: '@DROLSKY/Commit generated files'
- version: '2.046'
+ version: '2.047'
-
class: Dist::Zilla::Plugin::Git::Tag
config:
@@ -673,7 +674,7 @@
branch: ~
changelog: Changes
signed: 0
- tag: v0.14
+ tag: v0.15
tag_format: v%V
tag_message: v%V
Dist::Zilla::Role::Git::Repo:
@@ -682,7 +683,7 @@
Dist::Zilla::Role::Git::StringFormatter:
time_zone: local
name: '@DROLSKY/Git::Tag'
- version: '2.046'
+ version: '2.047'
-
class: Dist::Zilla::Plugin::Git::Push
config:
@@ -694,7 +695,7 @@
git_version: 2.20.1
repo_root: .
name: '@DROLSKY/Git::Push'
- version: '2.046'
+ version: '2.047'
-
class: Dist::Zilla::Plugin::BumpVersionAfterRelease
config:
@@ -712,6 +713,7 @@
Dist::Zilla::Plugin::Git::Commit:
add_files_in: []
commit_msg: 'Bump version after release'
+ signoff: 0
Dist::Zilla::Role::Git::DirtyFiles:
allow_dirty:
- Changes
@@ -725,7 +727,7 @@
Dist::Zilla::Role::Git::StringFormatter:
time_zone: local
name: '@DROLSKY/Commit version bump'
- version: '2.046'
+ version: '2.047'
-
class: Dist::Zilla::Plugin::Git::Push
config:
@@ -737,7 +739,7 @@
git_version: 2.20.1
repo_root: .
name: '@DROLSKY/Push version bump'
- version: '2.046'
+ version: '2.047'
-
class: Dist::Zilla::Plugin::DROLSKY::MakeMaker
config:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-ISO8601-0.14/Makefile.PL
new/DateTime-Format-ISO8601-0.15/Makefile.PL
--- old/DateTime-Format-ISO8601-0.14/Makefile.PL 2020-08-16
17:00:48.000000000 +0200
+++ new/DateTime-Format-ISO8601-0.15/Makefile.PL 2020-10-24
19:07:31.000000000 +0200
@@ -37,7 +37,7 @@
"Test2::V0" => 0,
"Test::More" => "1.302015"
},
- "VERSION" => "0.14",
+ "VERSION" => "0.15",
"test" => {
"TESTS" => "t/*.t"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-ISO8601-0.14/README.md
new/DateTime-Format-ISO8601-0.15/README.md
--- old/DateTime-Format-ISO8601-0.14/README.md 2020-08-16 17:00:48.000000000
+0200
+++ new/DateTime-Format-ISO8601-0.15/README.md 2020-10-24 19:07:31.000000000
+0200
@@ -4,24 +4,32 @@
# VERSION
-version 0.14
+version 0.15
# SYNOPSIS
use DateTime::Format::ISO8601;
- my $str = '2020-07-25T11:32:31';
-
- my $dt = DateTime::Format::ISO8601->parse_datetime($str);
- $dt = DateTime::Format::ISO8601->parse_time($str);
+ my $datetime_str = '2020-07-25T11:32:31';
+ my $dt = DateTime::Format::ISO8601->parse_datetime($datetime_str);
+ say $dt;
+
+ # This format is ambiguous and could be either a date or time, so use the
+ # parse_time method.
+ my $time_str = '113231';
+ $dt = DateTime::Format::ISO8601->parse_time($time_str);
+ say $dt;
# or
my $iso8601 = DateTime::Format::ISO8601->new;
- $dt = $iso8601->parse_datetime($str);
- $dt = $iso8601->parse_time($str);
+ $dt = $iso8601->parse_datetime($datetime_str);
+ say $dt;
+
+ $dt = $iso8601->parse_time($time_str);
+ say $dt;
- $str = DateTime::Format::ISO8601->format_datetime($dt);
+ say DateTime::Format::ISO8601->format_datetime($dt);
# DESCRIPTION
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/DateTime-Format-ISO8601-0.14/lib/DateTime/Format/ISO8601/Types.pm
new/DateTime-Format-ISO8601-0.15/lib/DateTime/Format/ISO8601/Types.pm
--- old/DateTime-Format-ISO8601-0.14/lib/DateTime/Format/ISO8601/Types.pm
2020-08-16 17:00:48.000000000 +0200
+++ new/DateTime-Format-ISO8601-0.15/lib/DateTime/Format/ISO8601/Types.pm
2020-10-24 19:07:31.000000000 +0200
@@ -4,7 +4,7 @@
use warnings;
use namespace::autoclean;
-our $VERSION = '0.14';
+our $VERSION = '0.15';
use parent 'Specio::Exporter';
@@ -49,7 +49,7 @@
=head1 VERSION
-version 0.14
+version 0.15
=head1 DESCRIPTION
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/DateTime-Format-ISO8601-0.14/lib/DateTime/Format/ISO8601.pm
new/DateTime-Format-ISO8601-0.15/lib/DateTime/Format/ISO8601.pm
--- old/DateTime-Format-ISO8601-0.14/lib/DateTime/Format/ISO8601.pm
2020-08-16 17:00:48.000000000 +0200
+++ new/DateTime-Format-ISO8601-0.15/lib/DateTime/Format/ISO8601.pm
2020-10-24 19:07:31.000000000 +0200
@@ -5,7 +5,7 @@
use warnings;
use namespace::autoclean;
-our $VERSION = '0.14';
+our $VERSION = '0.15';
use Carp qw( croak );
use DateTime 1.45;
@@ -366,7 +366,7 @@
regex => qr/^ (\d\d) -?? W (\d\d) -?? (\d) $/x,
params => [qw( year week day_of_week )],
postprocess => [ \&_fix_2_digit_year, \&_normalize_week ],
- constructor => [ 'DateTime', 'from_day_of_year' ],
+ constructor => [ 'DateTime', 'from_day_of_year' ],
},
{
#YYWww 85W15
@@ -375,7 +375,7 @@
regex => qr/^ (\d\d) -?? W (\d\d) $/x,
params => [qw( year week )],
postprocess => [ \&_fix_2_digit_year, \&_normalize_week ],
- constructor => [ 'DateTime', 'from_day_of_year' ],
+ constructor => [ 'DateTime', 'from_day_of_year' ],
},
{
#-YWwwD -5W155
@@ -384,7 +384,7 @@
regex => qr/^ - (\d) -?? W (\d\d) -?? (\d) $/x,
params => [qw( year week day_of_week )],
postprocess => [ \&_fix_1_digit_year, \&_normalize_week ],
- constructor => [ 'DateTime', 'from_day_of_year' ],
+ constructor => [ 'DateTime', 'from_day_of_year' ],
},
{
#-YWww -5W15
@@ -393,7 +393,7 @@
regex => qr/^ - (\d) -?? W (\d\d) $/x,
params => [qw( year week )],
postprocess => [ \&_fix_1_digit_year, \&_normalize_week ],
- constructor => [ 'DateTime', 'from_day_of_year' ],
+ constructor => [ 'DateTime', 'from_day_of_year' ],
},
{
#-WwwD -W155
@@ -402,7 +402,7 @@
regex => qr/^ - W (\d\d) -?? (\d) $/x,
params => [qw( week day_of_week )],
postprocess => [ \&_add_year, \&_normalize_week ],
- constructor => [ 'DateTime', 'from_day_of_year' ],
+ constructor => [ 'DateTime', 'from_day_of_year' ],
},
{
#-Www -W15
@@ -410,7 +410,7 @@
regex => qr/^ - W (\d\d) $/x,
params => [qw( week )],
postprocess => [ \&_add_year, \&_normalize_week ],
- constructor => [ 'DateTime', 'from_day_of_year' ],
+ constructor => [ 'DateTime', 'from_day_of_year' ],
},
{
#-W-D -W-5
@@ -817,7 +817,7 @@
T (\d\d) :?? (\d\d) ([+-] \d{2,4}) $/x,
params => [qw( year week day_of_week hour minute time_zone)],
postprocess => [ \&_normalize_week, \&_normalize_offset ],
- constructor => [ 'DateTime', 'from_day_of_year' ],
+ constructor => [ 'DateTime', 'from_day_of_year' ],
},
],
parse_time => [
@@ -1095,24 +1095,32 @@
=head1 VERSION
-version 0.14
+version 0.15
=head1 SYNOPSIS
use DateTime::Format::ISO8601;
- my $str = '2020-07-25T11:32:31';
-
- my $dt = DateTime::Format::ISO8601->parse_datetime($str);
- $dt = DateTime::Format::ISO8601->parse_time($str);
+ my $datetime_str = '2020-07-25T11:32:31';
+ my $dt = DateTime::Format::ISO8601->parse_datetime($datetime_str);
+ say $dt;
+
+ # This format is ambiguous and could be either a date or time, so use the
+ # parse_time method.
+ my $time_str = '113231';
+ $dt = DateTime::Format::ISO8601->parse_time($time_str);
+ say $dt;
# or
my $iso8601 = DateTime::Format::ISO8601->new;
- $dt = $iso8601->parse_datetime($str);
- $dt = $iso8601->parse_time($str);
+ $dt = $iso8601->parse_datetime($datetime_str);
+ say $dt;
+
+ $dt = $iso8601->parse_time($time_str);
+ say $dt;
- $str = DateTime::Format::ISO8601->format_datetime($dt);
+ say DateTime::Format::ISO8601->format_datetime($dt);
=head1 DESCRIPTION
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-ISO8601-0.14/t/time.t
new/DateTime-Format-ISO8601-0.15/t/time.t
--- old/DateTime-Format-ISO8601-0.14/t/time.t 2020-08-16 17:00:48.000000000
+0200
+++ new/DateTime-Format-ISO8601-0.15/t/time.t 2020-10-24 19:07:31.000000000
+0200
@@ -18,14 +18,14 @@
[qw( hh:mm 23:20 23:20:00 )],
[ 'hhmmss,ss', '232050,5', { nanosecond => 500_000_000 } ],
[ 'hh:mm:ss,ss', '23:20:50,5', { nanosecond => 500_000_000 } ],
- [ 'hhmm,mm', '2320,8', '23:20:48' ],
- [ 'hh:mm,mm', '23:20,8', '23:20:48' ],
- [ 'hh,hh', '23,3', '23:18:00' ],
+ [ 'hhmm,mm', '2320,8', '23:20:48' ],
+ [ 'hh:mm,mm', '23:20,8', '23:20:48' ],
+ [ 'hh,hh', '23,3', '23:18:00' ],
[qw( -mm:ss -20:50 00:20:50 )],
[ '-mmss,s', '-2050,5', '00:20:50', { nanosecond => 500_000_000 } ],
[ '-mm:ss,s', '-20:50,5', '00:20:50', { nanosecond => 500_000_000 } ],
- [ '-mm,m', '-20,8', '00:20:48' ],
- [ '--ss,s', '--50,5', '00:00:50', { nanosecond => 500_000_000 } ],
+ [ '-mm,m', '-20,8', '00:20:48' ],
+ [ '--ss,s', '--50,5', '00:00:50', { nanosecond => 500_000_000 } ],
[ qw( hhmmssZ 232050Z ), { time_zone => 'UTC' } ],
[
qw( hhmmss.ssZ 232050.5Z ),