From 570ff6639e4f2959905cb85e7f920c306692f03b Mon Sep 17 00:00:00 2001 From: Petr Písař Date: Sep 18 2020 10:07:30 +0000 Subject: 1.57 bump --- diff --git a/.gitignore b/.gitignore index 0fcec71..ce5e514 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ DBD-Mock-1.39.tar.gz /DBD-Mock-1.53.tar.gz /DBD-Mock-1.55.tar.gz /DBD-Mock-1.56.tar.gz +/DBD-Mock-1.57.tar.gz diff --git a/DBD-Mock-1.56-Fixed-bug-with-some-old-versions-of-DBI-wanting-at-l.patch b/DBD-Mock-1.56-Fixed-bug-with-some-old-versions-of-DBI-wanting-at-l.patch deleted file mode 100644 index bacc578..0000000 --- a/DBD-Mock-1.56-Fixed-bug-with-some-old-versions-of-DBI-wanting-at-l.patch +++ /dev/null @@ -1,39 +0,0 @@ -From 05f71911b55f11e4cb5da96dfd307106ccae1599 Mon Sep 17 00:00:00 2001 -From: Jason Cooper -Date: Fri, 18 Sep 2020 07:42:44 +0100 -Subject: [PATCH] Fixed bug with some old versions of DBI wanting at least 4 - parameters for last_insert_id. -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Signed-off-by: Petr Písař ---- - t/016_mock_add_resultset_test.t | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/t/016_mock_add_resultset_test.t b/t/016_mock_add_resultset_test.t -index 9ddf98a..eac27e1 100644 ---- a/t/016_mock_add_resultset_test.t -+++ b/t/016_mock_add_resultset_test.t -@@ -338,7 +338,7 @@ $dbh->{mock_add_resultset} = { - - $sth->execute( 'test' ); - -- is( $dbh->last_insert_id(), 4, "last_insert_id should return the next Id value after an insert as our callback doesn't override it") -+ is( $dbh->last_insert_id( (undef) x 4 ), 4, "last_insert_id should return the next Id value after an insert as our callback doesn't override it") - } - - -@@ -362,7 +362,7 @@ $dbh->{mock_add_resultset} = { - - $sth->execute( 'test' ); - -- is( $dbh->last_insert_id(), 99, "last_insert_id should return the id the callback has provided"); -+ is( $dbh->last_insert_id( (undef) x 4 ), 99, "last_insert_id should return the id the callback has provided"); - - is( $dbh->{mock_last_insert_ids}{y}, 5, "If we provide a last_insert_id value then the one stored against the table shouldn't be updated"); - } --- -2.25.4 - diff --git a/perl-DBD-Mock.spec b/perl-DBD-Mock.spec index 949061c..30898a0 100644 --- a/perl-DBD-Mock.spec +++ b/perl-DBD-Mock.spec @@ -2,14 +2,12 @@ %bcond_without perl_DBD_Mock_enabled_optional_test Name: perl-DBD-Mock -Version: 1.56 +Version: 1.57 Release: 1%{?dist} Summary: Mock database driver for testing License: GPL+ or Artistic URL: https://metacpan.org/release/DBD-Mock Source0: https://cpan.metacpan.org/modules/by-module/DBD/DBD-Mock-%{version}.tar.gz -# Adjust tests to old DBI, CPAN RT#133358, in upstream after 1.56 -Patch0: DBD-Mock-1.56-Fixed-bug-with-some-old-versions-of-DBI-wanting-at-l.patch BuildArch: noarch BuildRequires: coreutils BuildRequires: findutils @@ -51,7 +49,6 @@ instead of DBD::Foo (like DBD::Pg or DBD::mysql) in your framework. %prep %setup -q -n DBD-Mock-%{version} -%patch0 -p1 %build perl Build.PL --installdirs=vendor @@ -73,6 +70,9 @@ unset REPORT_TEST_ENVIRONMENT %{_mandir}/man3/* %changelog +* Fri Sep 18 2020 Petr Pisar - 1.57-1 +- 1.57 bump + * Fri Sep 18 2020 Petr Pisar - 1.56-1 - 1.56 bump diff --git a/sources b/sources index db360dc..75326ea 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (DBD-Mock-1.56.tar.gz) = ac7eafcdb463d2711ca181ead9d75e31df4b9117c399f8003e58e4ccb37b0e745ac102949cfc94cf3c32d7c7f9b1327c8cad3269dca9d967e6bf1542a333c724 +SHA512 (DBD-Mock-1.57.tar.gz) = e1576c9b7ca54e877c15daf4f2e4cf64b34e6050e2a0e78260216c449b17cb1f4d2901d0ebdd8db2840b32e24437bfd85d213a62832eee6904cf51a08d37b1db