Hello community,
here is the log from the commit of package perl-Test-MockModule for
openSUSE:Factory checked in at 2020-06-18 10:35:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Test-MockModule (Old)
and /work/SRC/openSUSE:Factory/.perl-Test-MockModule.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Test-MockModule"
Thu Jun 18 10:35:38 2020 rev:12 rq:815254 version:0.173.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-Test-MockModule/perl-Test-MockModule.changes
2020-02-22 18:56:40.865202663 +0100
+++
/work/SRC/openSUSE:Factory/.perl-Test-MockModule.new.3606/perl-Test-MockModule.changes
2020-06-18 10:35:50.934300066 +0200
@@ -1,0 +2,12 @@
+Sat Jun 13 03:15:05 UTC 2020 - Tina Müller <[email protected]>
+
+- updated to 0.173.0
+ see /usr/share/doc/packages/perl-Test-MockModule/Changes
+
+ v0.173.0
+ - 4dacd82 Add warning when 'unmock' called without arguments - Matthew Hughes
+ - b20dc7c import warns when using unknown argument - Nicolas R
+ - 3b217ba Fix windows CI by installing SUPER - Nicolas R
+ - 0ef70c5 Add .whitesource configuration file -
whitesource-bolt-for-github[bot]
+
+-------------------------------------------------------------------
Old:
----
Test-MockModule-v0.172.0.tar.gz
New:
----
Test-MockModule-v0.173.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Test-MockModule.spec ++++++
--- /var/tmp/diff_new_pack.hTFDL4/_old 2020-06-18 10:35:52.762305972 +0200
+++ /var/tmp/diff_new_pack.hTFDL4/_new 2020-06-18 10:35:52.766305985 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-Test-MockModule
#
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,13 @@
Name: perl-Test-MockModule
-Version: 0.172.0
+Version: 0.173.0
Release: 0
%define cpan_name Test-MockModule
Summary: Override subroutines in a module for unit testing
License: Artistic-1.0 OR GPL-1.0-or-later
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
Source1: cpanspec.yml
BuildArch: noarch
++++++ Test-MockModule-v0.172.0.tar.gz -> Test-MockModule-v0.173.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Test-MockModule-v0.172.0/.github/workflows/windows.yml
new/Test-MockModule-v0.173.0/.github/workflows/windows.yml
--- old/Test-MockModule-v0.172.0/.github/workflows/windows.yml 2020-02-19
15:13:45.000000000 +0100
+++ new/Test-MockModule-v0.173.0/.github/workflows/windows.yml 2020-06-12
13:32:06.000000000 +0200
@@ -31,6 +31,11 @@
echo
"##[add-path]C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin"
- name: perl -V
run: perl -V
+ - name: install deps using cpanm
+ uses: perl-actions/[email protected]
+ with:
+ install: |
+ SUPER
- name: Build.PL
run: perl Build.PL
- name: ./Build test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockModule-v0.172.0/.whitesource
new/Test-MockModule-v0.173.0/.whitesource
--- old/Test-MockModule-v0.172.0/.whitesource 1970-01-01 01:00:00.000000000
+0100
+++ new/Test-MockModule-v0.173.0/.whitesource 2020-06-12 13:32:06.000000000
+0200
@@ -0,0 +1,8 @@
+{
+ "checkRunSettings": {
+ "vulnerableCheckRunConclusionLevel": "failure"
+ },
+ "issueSettings": {
+ "minSeverityLevel": "LOW"
+ }
+}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockModule-v0.172.0/Changes
new/Test-MockModule-v0.173.0/Changes
--- old/Test-MockModule-v0.172.0/Changes 2020-02-19 15:13:45.000000000
+0100
+++ new/Test-MockModule-v0.173.0/Changes 2020-06-12 13:32:06.000000000
+0200
@@ -1,5 +1,11 @@
Revision history for Test::MockModule
+v0.173.0
+- 4dacd82 Add warning when 'unmock' called without arguments - Matthew Hughes
+- b20dc7c import warns when using unknown argument - Nicolas R
+- 3b217ba Fix windows CI by installing SUPER - Nicolas R
+- 0ef70c5 Add .whitesource configuration file -
whitesource-bolt-for-github[bot]
+
v0.172.0
- 7558aa9 Make sure we can redefine a function in 'main' - Nicolas R
- 0538fe1 Plug GitHub workflow as additional CI - Nicolas R
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockModule-v0.172.0/MANIFEST
new/Test-MockModule-v0.173.0/MANIFEST
--- old/Test-MockModule-v0.172.0/MANIFEST 2020-02-19 15:13:45.000000000
+0100
+++ new/Test-MockModule-v0.173.0/MANIFEST 2020-06-12 13:32:06.000000000
+0200
@@ -1,6 +1,7 @@
.github/workflows/linux.yml
.github/workflows/macos.yml
.github/workflows/windows.yml
+.whitesource
Build.PL
Changes
ci/Dockerfile
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockModule-v0.172.0/META.json
new/Test-MockModule-v0.173.0/META.json
--- old/Test-MockModule-v0.172.0/META.json 2020-02-19 15:13:45.000000000
+0100
+++ new/Test-MockModule-v0.173.0/META.json 2020-06-12 13:32:06.000000000
+0200
@@ -38,7 +38,7 @@
"provides" : {
"Test::MockModule" : {
"file" : "lib/Test/MockModule.pm",
- "version" : "v0.172.0"
+ "version" : "v0.173.0"
}
},
"release_status" : "stable",
@@ -54,6 +54,6 @@
"url" : "git://github.com/geofffranks/test-mockmodule.git"
}
},
- "version" : "v0.172.0",
+ "version" : "v0.173.0",
"x_serialization_backend" : "JSON::PP version 2.27400_02"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockModule-v0.172.0/META.yml
new/Test-MockModule-v0.173.0/META.yml
--- old/Test-MockModule-v0.172.0/META.yml 2020-02-19 15:13:45.000000000
+0100
+++ new/Test-MockModule-v0.173.0/META.yml 2020-06-12 13:32:06.000000000
+0200
@@ -18,7 +18,7 @@
provides:
Test::MockModule:
file: lib/Test/MockModule.pm
- version: v0.172.0
+ version: v0.173.0
requires:
Carp: '0'
SUPER: '1.20'
@@ -29,5 +29,5 @@
homepage: https://github.com/geofffranks/test-mockmodule
license: http://dev.perl.org/licenses/
repository: git://github.com/geofffranks/test-mockmodule.git
-version: v0.172.0
+version: v0.173.0
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockModule-v0.172.0/lib/Test/MockModule.pm
new/Test-MockModule-v0.173.0/lib/Test/MockModule.pm
--- old/Test-MockModule-v0.172.0/lib/Test/MockModule.pm 2020-02-19
15:13:45.000000000 +0100
+++ new/Test-MockModule-v0.173.0/lib/Test/MockModule.pm 2020-06-12
13:32:06.000000000 +0200
@@ -5,14 +5,21 @@
use Scalar::Util qw/reftype weaken/;
use Carp;
use SUPER;
-$VERSION = '0.172.0';
+$VERSION = '0.173.0';
our $STRICT_MODE;
sub import {
my ( $class, @args ) = @_;
- $STRICT_MODE = 1 if ( grep { $_ =~ m/strict/i } @args );
+ foreach my $arg (@args) {
+ if ( $arg eq 'strict' ) {
+ $STRICT_MODE = 1;
+ }
+ else {
+ warn "Test::MockModule unknown import option '$arg'";
+ }
+ }
return;
}
@@ -150,6 +157,7 @@
sub unmock {
my $self = shift;
+ carp 'Nothing to unmock' unless @_;
for my $name (@_) {
croak "Invalid subroutine name: $name" unless
_valid_subname($name);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockModule-v0.172.0/t/mockmodule.t
new/Test-MockModule-v0.173.0/t/mockmodule.t
--- old/Test-MockModule-v0.172.0/t/mockmodule.t 2020-02-19 15:13:45.000000000
+0100
+++ new/Test-MockModule-v0.173.0/t/mockmodule.t 2020-06-12 13:32:06.000000000
+0200
@@ -103,6 +103,9 @@
$mcgi->unmock('Vars');
like($warn, qr/ was not mocked/, "... warns if a subroutine isn't
mocked");
+ $mcgi->unmock();
+ like($warn, qr/Nothing to unmock/, '... warns if no arguments passed to
unmock');
+
$mcgi->unmock('param');
is(\&{"ExampleModule::param"}, $orig_param, '... restores the original
subroutine');