Compare commits

...

10 Commits

Author SHA256 Message Date
f90ff17a6b Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-Mock?expand=0&rev=19
2024-07-20 19:44:48 +00:00
0a91cdf15f Accepting request 874811 from devel:languages:perl:autoupdate
- updated to 1.59
   see /usr/share/doc/packages/perl-DBD-Mock/Changes
  1.59 2021-02-22T13:25:52Z
      - Added error detection for when a result set's callback doesn't return
        an arrayref or arrayrefs
      - Moved to GitLab for issue tracking

OBS-URL: https://build.opensuse.org/request/show/874811
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-Mock?expand=0&rev=18
2021-02-25 12:20:22 +00:00
4fe4184ff5 Accepting request 845641 from devel:languages:perl:autoupdate
- updated to 1.58
   see /usr/share/doc/packages/perl-DBD-Mock/Changes
  1.58 2020-11-02T13:34:48Z
      - Added the ability for mock result sets to set custom attributes for
        statement handles. Thanks to Erik Huelsmann for testing the new feature.

OBS-URL: https://build.opensuse.org/request/show/845641
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-Mock?expand=0&rev=17
2020-11-03 09:29:34 +00:00
181a99ba61 Accepting request 836260 from devel:languages:perl:autoupdate
- updated to 1.57
   see /usr/share/doc/packages/perl-DBD-Mock/Changes
  1.57 2020-09-18T06:57:48Z
      - Fixed bug rt133358 t/016_mock_add_resultset_test.t fails (with older DBI)

OBS-URL: https://build.opensuse.org/request/show/836260
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-Mock?expand=0&rev=16
2020-09-23 15:37:11 +00:00
6e8bed5658 Accepting request 835359 from devel:languages:perl:autoupdate
- updated to 1.56
   see /usr/share/doc/packages/perl-DBD-Mock/Changes
  1.56 2020-09-17T14:35:10Z
      - The DBD::st module now supports the last_insert_id method
      - Result sets with callbacks can now specify a last_insert_id

OBS-URL: https://build.opensuse.org/request/show/835359
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-Mock?expand=0&rev=15
2020-09-18 08:55:45 +00:00
Lars Vogdt
221766d5a2 Accepting request 760163 from devel:languages:perl:autoupdate
- updated to 1.55
   see /usr/share/doc/packages/perl-DBD-Mock/Changes
  1.55 2019-12-30T14:20:00Z
      - Fixed bug rt131264 t/033_table_info.t fails (with older DBI)

OBS-URL: https://build.opensuse.org/request/show/760163
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-Mock?expand=0&rev=14
2020-01-01 01:50:33 +00:00
Lars Vogdt
c04e645442 Accepting request 759133 from devel:languages:perl:autoupdate
- updated to 1.54
   see /usr/share/doc/packages/perl-DBD-Mock/Changes
  1.54 2019-12-23T12:44:22Z
      - Added Bernhard Graf's 'Feature: one shot failure' merge request.
      - Fixed description of the failure attribute of mock_add_resultset. It
        no longer claims to support a hash ref (as it doesn't). Thanks to
        Bernhard Graf for both the bug report and a merge request that fixes it.
      - Fixed bug where it wasn't possible to replace a regular expression 
        mock resultset. Thanks to Bernhard Graf for both the bug report and
        a merge request that fixes it.
      - Fixed bug where the failure attribute wasn't working with regular
        expression mock resultsets. Thanks to Bernhard Graf for both the bug
        report and a merge request that fixes it.

OBS-URL: https://build.opensuse.org/request/show/759133
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-Mock?expand=0&rev=13
2019-12-29 17:35:41 +00:00
30080ed888 Accepting request 753925 from devel:languages:perl:autoupdate
- updated to 1.53
   see /usr/share/doc/packages/perl-DBD-Mock/Changes
  1.53 2019-12-03T10:50:57Z
      - Error handling in mock_add_resultset is no longer experimental
      - Attribute Aliasing is no longer experimental

OBS-URL: https://build.opensuse.org/request/show/753925
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-Mock?expand=0&rev=12
2019-12-04 14:04:31 +00:00
Lars Vogdt
53ac5f6cbe Accepting request 743793 from devel:languages:perl:autoupdate
- updated to 1.52
   see /usr/share/doc/packages/perl-DBD-Mock/Changes
  1.52 2019-10-28T11:35:41Z
      - Added in callback feature for result sets so that their contents
        can be more dynamic.

OBS-URL: https://build.opensuse.org/request/show/743793
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-Mock?expand=0&rev=11
2019-10-29 22:17:17 +00:00
Lars Vogdt
c3033e40b4 Accepting request 742499 from devel:languages:perl:autoupdate
- updated to 1.51
   see /usr/share/doc/packages/perl-DBD-Mock/Changes
  1.51 2019-10-23T11:43:51Z
      - Fixed issue with using attribute aliases alongside a driver DSN
        in the DBI->connect call
  
  1.50 2019-10-22T19:37:26Z
      - Added attribute aliases support for MariaDB

OBS-URL: https://build.opensuse.org/request/show/742499
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-Mock?expand=0&rev=10
2019-10-27 14:19:21 +00:00
4 changed files with 128 additions and 17 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3c88bd9322d3d1a215b0c8dad8b27f06885a063f8f47fb8747f6e86f8b9d7116
size 69289

3
DBD-Mock-1.59.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0a5aa5953ab65cf790681e6c0452e318ad57d80ac27f575f84918c603aa47406
size 75533

View File

@@ -1,3 +1,103 @@
-------------------------------------------------------------------
Tue Feb 23 03:07:49 UTC 2021 - Tina Müller <timueller+perl@suse.de>
- updated to 1.59
see /usr/share/doc/packages/perl-DBD-Mock/Changes
1.59 2021-02-22T13:25:52Z
- Added error detection for when a result set's callback doesn't return
an arrayref or arrayrefs
- Moved to GitLab for issue tracking
-------------------------------------------------------------------
Tue Nov 3 03:09:48 UTC 2020 - Tina Müller <timueller+perl@suse.de>
- updated to 1.58
see /usr/share/doc/packages/perl-DBD-Mock/Changes
1.58 2020-11-02T13:34:48Z
- Added the ability for mock result sets to set custom attributes for
statement handles. Thanks to Erik Huelsmann for testing the new feature.
-------------------------------------------------------------------
Sat Sep 19 03:08:38 UTC 2020 - Tina Müller <timueller+perl@suse.de>
- updated to 1.57
see /usr/share/doc/packages/perl-DBD-Mock/Changes
1.57 2020-09-18T06:57:48Z
- Fixed bug rt133358 t/016_mock_add_resultset_test.t fails (with older DBI)
-------------------------------------------------------------------
Fri Sep 18 03:08:49 UTC 2020 - Tina Müller <timueller+perl@suse.de>
- updated to 1.56
see /usr/share/doc/packages/perl-DBD-Mock/Changes
1.56 2020-09-17T14:35:10Z
- The DBD::st module now supports the last_insert_id method
- Result sets with callbacks can now specify a last_insert_id
-------------------------------------------------------------------
Tue Dec 31 03:07:21 UTC 2019 - <timueller+perl@suse.de>
- updated to 1.55
see /usr/share/doc/packages/perl-DBD-Mock/Changes
1.55 2019-12-30T14:20:00Z
- Fixed bug rt131264 t/033_table_info.t fails (with older DBI)
-------------------------------------------------------------------
Tue Dec 24 03:07:20 UTC 2019 - <timueller+perl@suse.de>
- updated to 1.54
see /usr/share/doc/packages/perl-DBD-Mock/Changes
1.54 2019-12-23T12:44:22Z
- Added Bernhard Graf's 'Feature: one shot failure' merge request.
- Fixed description of the failure attribute of mock_add_resultset. It
no longer claims to support a hash ref (as it doesn't). Thanks to
Bernhard Graf for both the bug report and a merge request that fixes it.
- Fixed bug where it wasn't possible to replace a regular expression
mock resultset. Thanks to Bernhard Graf for both the bug report and
a merge request that fixes it.
- Fixed bug where the failure attribute wasn't working with regular
expression mock resultsets. Thanks to Bernhard Graf for both the bug
report and a merge request that fixes it.
-------------------------------------------------------------------
Wed Dec 4 03:07:45 UTC 2019 - <timueller+perl@suse.de>
- updated to 1.53
see /usr/share/doc/packages/perl-DBD-Mock/Changes
1.53 2019-12-03T10:50:57Z
- Error handling in mock_add_resultset is no longer experimental
- Attribute Aliasing is no longer experimental
-------------------------------------------------------------------
Tue Oct 29 09:37:35 UTC 2019 - <timueller+perl@suse.de>
- updated to 1.52
see /usr/share/doc/packages/perl-DBD-Mock/Changes
1.52 2019-10-28T11:35:41Z
- Added in callback feature for result sets so that their contents
can be more dynamic.
-------------------------------------------------------------------
Thu Oct 24 09:42:18 UTC 2019 - <timueller+perl@suse.de>
- updated to 1.51
see /usr/share/doc/packages/perl-DBD-Mock/Changes
1.51 2019-10-23T11:43:51Z
- Fixed issue with using attribute aliases alongside a driver DSN
in the DBI->connect call
1.50 2019-10-22T19:37:26Z
- Added attribute aliases support for MariaDB
-------------------------------------------------------------------
Fri Sep 13 07:29:16 UTC 2019 - <timueller+perl@suse.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-DBD-Mock
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,26 +16,37 @@
#
Name: perl-DBD-Mock
Version: 1.49
Release: 0
%define cpan_name DBD-Mock
Summary: Mock database driver for testing
Name: perl-DBD-Mock
Version: 1.590.0
Release: 0
# 1.59 -> normalize -> 1.590.0
%define cpan_version 1.59
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/J/JL/JLCOOPER/%{cpan_name}-%{version}.tar.gz
Summary: Mock database driver for testing
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/J/JL/JLCOOPER/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(DBI) >= 1.3
BuildRequires: perl(List::Util) >= 1.27
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Build::Tiny) >= 0.035
BuildRequires: perl(Test::Exception) >= 0.310000
BuildRequires: perl(Test::Exception) >= 0.31
Requires: perl(DBI) >= 1.3
Requires: perl(List::Util) >= 1.27
Provides: perl(DBD::Mock) = %{version}
Provides: perl(DBD::Mock::Pool)
Provides: perl(DBD::Mock::Pool::db)
Provides: perl(DBD::Mock::Session)
Provides: perl(DBD::Mock::StatementTrack)
Provides: perl(DBD::Mock::StatementTrack::Iterator)
Provides: perl(DBD::Mock::db)
Provides: perl(DBD::Mock::dr)
Provides: perl(DBD::Mock::st)
%undefine __perllib_provides
%{perl_requires}
%description
@@ -65,8 +76,9 @@ article by chromatic about using Test::MockObject in this and other ways,
strongly recommended. (See SEE ALSO for a link)
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%autosetup -n %{cpan_name}-%{cpan_version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Build.PL --installdirs=vendor
@@ -80,8 +92,7 @@ perl Build.PL --installdirs=vendor
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes CONTRIBUTING.md minil.toml README.md
%doc Changes CONTRIBUTING.md README.md
%license LICENSE
%changelog