forked from pool/perl-Test-MockModule
Accepting request 741578 from devel:languages:perl:autoupdate
- updated to 0.171.0 see /usr/share/doc/packages/perl-Test-MockModule/Changes v0.171.0 - 89dc5c0 Fixes #25 - mocking core::global no longer fails trying to load the module - Geoff Franks - 9bb081a update ci for fewer infinite loops - Geoff Franks - 289d014 Update release notes for all the newly merged PRs - Geoff Franks - fef9e74 Allow chaining of new with mock, redefine, define - Nicolas Rochelemagne - e136131 Prevent redefine() from triggering DESTROY. - Felipe Gasper - 311f6b4 Adjust Travis CI configuration to use travis-perl.github.io - Nicolas Rochelemagne - 2bed3e2 Add strict mode to ban the use of noop and mock. - Todd Rinaldo - 0298d8d Provide define method so the mock method is unneeded in tests. - Todd Rinaldo v0.171.0 - allow chaining of new with mock, redefine, define - redefine() no longer triggers errors if the object being mocked is not a hashref - Adds a define() method for mocking new functions that do not exist. Throws an error if a function does exist. - Adds `strict` mode to prevent usage of noop() and mock() functions, and force the usage of define/redefine if desired.: ``` use Test::MockModule qw/strict/; ``` - Mocking CORE::GLOBAL no longer throws errors indicating CORE::GLOBAL should have been installed/loaded OBS-URL: https://build.opensuse.org/request/show/741578 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-MockModule?expand=0&rev=26
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:9f79ba975cb049e1e807c36de1a31126079fffc4f22ee81526641a8969e6ef5d
|
|
||||||
size 24765
|
|
3
Test-MockModule-v0.171.0.tar.gz
Normal file
3
Test-MockModule-v0.171.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ebd4fd04e654cd0d5cd44eaeb2a0642cbb85c89fa6728a5ba9fe8f73c27a38ab
|
||||||
|
size 27134
|
@@ -1,3 +1,32 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 21 14:42:00 UTC 2019 - <timueller+perl@suse.de>
|
||||||
|
|
||||||
|
- updated to 0.171.0
|
||||||
|
see /usr/share/doc/packages/perl-Test-MockModule/Changes
|
||||||
|
|
||||||
|
v0.171.0
|
||||||
|
- 89dc5c0 Fixes #25 - mocking core::global no longer fails trying to load the module - Geoff Franks
|
||||||
|
- 9bb081a update ci for fewer infinite loops - Geoff Franks
|
||||||
|
- 289d014 Update release notes for all the newly merged PRs - Geoff Franks
|
||||||
|
- fef9e74 Allow chaining of new with mock, redefine, define - Nicolas Rochelemagne
|
||||||
|
- e136131 Prevent redefine() from triggering DESTROY. - Felipe Gasper
|
||||||
|
- 311f6b4 Adjust Travis CI configuration to use travis-perl.github.io - Nicolas Rochelemagne
|
||||||
|
- 2bed3e2 Add strict mode to ban the use of noop and mock. - Todd Rinaldo
|
||||||
|
- 0298d8d Provide define method so the mock method is unneeded in tests. - Todd Rinaldo
|
||||||
|
|
||||||
|
v0.171.0
|
||||||
|
- allow chaining of new with mock, redefine, define
|
||||||
|
- redefine() no longer triggers errors if the object being mocked is not a hashref
|
||||||
|
- Adds a define() method for mocking new functions that do not exist. Throws an
|
||||||
|
error if a function does exist.
|
||||||
|
- Adds `strict` mode to prevent usage of noop() and mock() functions, and force
|
||||||
|
the usage of define/redefine if desired.:
|
||||||
|
```
|
||||||
|
use Test::MockModule qw/strict/;
|
||||||
|
```
|
||||||
|
- Mocking CORE::GLOBAL no longer throws errors indicating CORE::GLOBAL should have
|
||||||
|
been installed/loaded
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 20 06:02:05 UTC 2018 - Stephan Kulow <coolo@suse.com>
|
Thu Sep 20 06:02:05 UTC 2018 - Stephan Kulow <coolo@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Test-MockModule
|
# spec file for package perl-Test-MockModule
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,11 +17,11 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: perl-Test-MockModule
|
Name: perl-Test-MockModule
|
||||||
Version: 0.170.0
|
Version: 0.171.0
|
||||||
Release: 0
|
Release: 0
|
||||||
%define cpan_name Test-MockModule
|
%define cpan_name Test-MockModule
|
||||||
Summary: Override subroutines in a module for unit testing
|
Summary: Override subroutines in a module for unit testing
|
||||||
License: Artistic-1.0 or GPL-1.0+
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: https://metacpan.org/release/%{cpan_name}
|
Url: https://metacpan.org/release/%{cpan_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/G/GF/GFRANKS/%{cpan_name}-v%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/G/GF/GFRANKS/%{cpan_name}-v%{version}.tar.gz
|
||||||
@@ -48,10 +48,10 @@ given module go out of scope, or when you 'unmock()' the subroutine.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-v%{version}
|
%setup -q -n %{cpan_name}-v%{version}
|
||||||
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -name "*.sh" -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Build.PL installdirs=vendor
|
perl Build.PL installdirs=vendor
|
||||||
./Build build flags=%{?_smp_mflags}
|
./Build build flags=%{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -63,7 +63,7 @@ find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
|||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,755)
|
%defattr(-,root,root,755)
|
||||||
%doc Changes ci README.md
|
%doc Changes README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user