Update to 1.47

- New upstream release 1.47
  - DateTime::Duration->multiply now only allows integer multipliers (GH#73)
  - Added is_last_day_of_quarter() and is_last_day_of_year() methods (GH#72)
  - When an exception was thrown while adding a duration, the object could be
    left in a broken state with the duration partially applied; subsequent
    addition or subtraction would produce the wrong results (GH#74)
- Add patch to support use without Sub::Util (GH#77, GH#78)
This commit is contained in:
Paul Howarth 2018-03-26 12:24:13 +01:00
parent 65d29e9f85
commit abbb4713a7
3 changed files with 31 additions and 2 deletions

View File

@ -0,0 +1,16 @@
--- lib/DateTime/Duration.pm
+++ lib/DateTime/Duration.pm
@@ -274,9 +274,10 @@ sub subtract_duration { return $_[0]->ad
{
my $check = validation_for(
- name => '_check_multiply_params',
- slurpy => 1,
- params => [
+ name => '_check_multiply_params',
+ name_is_optional => 1,
+ slurpy => 1,
+ params => [
{ type => t('Int') },
],
);

View File

@ -3,12 +3,13 @@
Name: perl-DateTime
Epoch: 2
Version: 1.46
Version: 1.47
Release: 1%{?dist}
Summary: Date and time object for Perl
License: Artistic 2.0
URL: http://search.cpan.org/dist/DateTime/
Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-%{version}.tar.gz
Patch0: DateTime-1.47-no-Sub::Util.patch
# Build:
BuildRequires: coreutils
BuildRequires: findutils
@ -79,6 +80,9 @@ believed to be the birth of Jesus Christ.
%prep
%setup -q -n DateTime-%{version}
# Support use without Sub::Util (GH#77, GH#78)
%patch0
%build
perl Makefile.PL \
INSTALLDIRS=vendor \
@ -108,6 +112,15 @@ make test
%{_mandir}/man3/DateTime::Types.3*
%changelog
* Mon Mar 26 2018 Paul Howarth <paul@city-fan.org> - 2:1.47-1
- Update to 1.47
- DateTime::Duration->multiply now only allows integer multipliers (GH#73)
- Added is_last_day_of_quarter() and is_last_day_of_year() methods (GH#72)
- When an exception was thrown while adding a duration, the object could be
left in a broken state with the duration partially applied; subsequent
addition or subtraction would produce the wrong results (GH#74)
- Add patch to support use without Sub::Util (GH#77, GH#78)
* Mon Feb 12 2018 Paul Howarth <paul@city-fan.org> - 2:1.46-1
- Update to 1.46
- Fixed the formatting for the CLDR "S" symbol, which in some cases would

View File

@ -1 +1 @@
SHA512 (DateTime-1.46.tar.gz) = 20914a5267112b28a63e7cab6199bd4312ff354db9408f33f5d72f797a084c3fdfa7c50d43362323105091d827f2bdc4771250a5d6960cd951623b5739be233d
SHA512 (DateTime-1.47.tar.gz) = f08fe5b74af00c92df8b125e590672fa6d54cf78e991c800f567920b1b175e0f1e6668baf4030fbdcc201fde01923f889b0b47343353a76786e223293b71145b