Hello community,
here is the log from the commit of package perl-Test-MockModule for
openSUSE:Factory checked in at 2020-02-22 18:56:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Test-MockModule (Old)
and /work/SRC/openSUSE:Factory/.perl-Test-MockModule.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Test-MockModule"
Sat Feb 22 18:56:34 2020 rev:11 rq:777610 version:0.172.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-Test-MockModule/perl-Test-MockModule.changes
2019-10-28 16:43:50.328507968 +0100
+++
/work/SRC/openSUSE:Factory/.perl-Test-MockModule.new.26092/perl-Test-MockModule.changes
2020-02-22 18:56:40.865202663 +0100
@@ -1,0 +2,11 @@
+Thu Feb 20 03:09:39 UTC 2020 - <[email protected]>
+
+- updated to 0.172.0
+ see /usr/share/doc/packages/perl-Test-MockModule/Changes
+
+ v0.172.0
+ - 7558aa9 Make sure we can redefine a function in 'main' - Nicolas R
+ - 0538fe1 Plug GitHub workflow as additional CI - Nicolas R
+ - 0e9d90b update parallel to use in_parallel instead ofaggregate - Geoff
Franks
+
+-------------------------------------------------------------------
Old:
----
Test-MockModule-v0.171.0.tar.gz
New:
----
Test-MockModule-v0.172.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Test-MockModule.spec ++++++
--- /var/tmp/diff_new_pack.IB5Gy1/_old 2020-02-22 18:56:42.897206598 +0100
+++ /var/tmp/diff_new_pack.IB5Gy1/_new 2020-02-22 18:56:42.897206598 +0100
@@ -1,7 +1,7 @@
#
# spec file for package perl-Test-MockModule
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: perl-Test-MockModule
-Version: 0.171.0
+Version: 0.172.0
Release: 0
%define cpan_name Test-MockModule
Summary: Override subroutines in a module for unit testing
@@ -31,10 +31,10 @@
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build) >= 0.380000
-BuildRequires: perl(SUPER)
+BuildRequires: perl(SUPER) >= 1.20
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Warnings)
-Requires: perl(SUPER)
+Requires: perl(SUPER) >= 1.20
%{perl_requires}
%description
@@ -48,7 +48,7 @@
%prep
%setup -q -n %{cpan_name}-v%{version}
-find . -type f ! -path "*/t/*" ! -name "*.pl" ! -name "*.sh" -print0 | xargs
-0 chmod 644
+find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path
"*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Build.PL installdirs=vendor
++++++ Test-MockModule-v0.171.0.tar.gz -> Test-MockModule-v0.172.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockModule-v0.171.0/.github/workflows/linux.yml
new/Test-MockModule-v0.172.0/.github/workflows/linux.yml
--- old/Test-MockModule-v0.171.0/.github/workflows/linux.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/Test-MockModule-v0.172.0/.github/workflows/linux.yml 2020-02-19
15:13:45.000000000 +0100
@@ -0,0 +1,50 @@
+name: linux
+
+on:
+ push:
+ branches:
+ - '*'
+ tags-ignore:
+ - '*'
+ pull_request:
+
+jobs:
+ perl:
+ env:
+ # some plugins still needs this to run their tests...
+ PERL_USE_UNSAFE_INC: 0
+ AUTHOR_TESTING: 1
+ AUTOMATED_TESTING: 1
+ RELEASE_TESTING: 1
+
+ runs-on: ubuntu-latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ perl-version:
+ - '5.30'
+ - '5.28'
+ - '5.26'
+ - '5.24'
+ - '5.22'
+ - '5.20'
+ - '5.18'
+ - '5.16'
+ - '5.14'
+ - '5.12'
+ - '5.10'
+
+ container:
+ image: cpanelos/tester-perl:v${{ matrix.perl-version }}
+
+ steps:
+ - uses: actions/checkout@v1
+ - name: perl -V
+ run: perl -V
+ - name: Build.PL
+ run: perl Build.PL
+ - name: ./Build
+ run: ./Build
+ - name: ./Build test
+ run: ./Build test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockModule-v0.171.0/.github/workflows/macos.yml
new/Test-MockModule-v0.172.0/.github/workflows/macos.yml
--- old/Test-MockModule-v0.171.0/.github/workflows/macos.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/Test-MockModule-v0.172.0/.github/workflows/macos.yml 2020-02-19
15:13:45.000000000 +0100
@@ -0,0 +1,37 @@
+name: macos
+
+on:
+ push:
+ branches:
+ - '*'
+ tags-ignore:
+ - '*'
+ pull_request:
+
+jobs:
+ perl:
+ env:
+ PERL_USE_UNSAFE_INC: 0
+ AUTHOR_TESTING: 1
+ AUTOMATED_TESTING: 1
+ RELEASE_TESTING: 1
+
+ runs-on: macOS-latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ perl-version: [latest]
+
+ steps:
+ - uses: actions/checkout@v1
+ - name: perl -V
+ run: perl -V
+ - name: install cpm + deps
+ run: curl -sL https://git.io/cpm | perl - install -g
--show-build-log-on-failure Module::Build
+ - name: Build.PL
+ run: perl Build.PL
+ - name: ./Build installdeps
+ run: ./Build installdeps
+ - name: ./Build test
+ run: ./Build test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Test-MockModule-v0.171.0/.github/workflows/windows.yml
new/Test-MockModule-v0.172.0/.github/workflows/windows.yml
--- old/Test-MockModule-v0.171.0/.github/workflows/windows.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/Test-MockModule-v0.172.0/.github/workflows/windows.yml 2020-02-19
15:13:45.000000000 +0100
@@ -0,0 +1,37 @@
+name: windows
+
+on:
+ push:
+ branches:
+ - '*'
+ tags-ignore:
+ - '*'
+ pull_request:
+
+jobs:
+ perl:
+ env:
+ PERL_USE_UNSAFE_INC: 0
+ AUTHOR_TESTING: 0
+ AUTOMATED_TESTING: 1
+ RELEASE_TESTING: 0
+
+ runs-on: windows-latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ perl-version: [latest]
+
+ steps:
+ - uses: actions/checkout@master
+ - name: Set up Perl
+ run: |
+ choco install strawberryperl
+ echo
"##[add-path]C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin"
+ - name: perl -V
+ run: perl -V
+ - name: Build.PL
+ run: perl Build.PL
+ - name: ./Build test
+ run: ./Build test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockModule-v0.171.0/Build.PL
new/Test-MockModule-v0.172.0/Build.PL
--- old/Test-MockModule-v0.171.0/Build.PL 2019-10-19 17:43:20.000000000
+0200
+++ new/Test-MockModule-v0.172.0/Build.PL 2020-02-19 15:13:45.000000000
+0100
@@ -19,10 +19,10 @@
'Module::Build' => '0.38',
},
requires => {
- 'perl' => 5.006,
+ 'perl' => 5.006,
'Carp' => 0,
'Scalar::Util' => 0,
- 'SUPER' => 0,
+ 'SUPER' => '1.20',
},
build_requires => {
'Test::More' => 0.88,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockModule-v0.171.0/Changes
new/Test-MockModule-v0.172.0/Changes
--- old/Test-MockModule-v0.171.0/Changes 2019-10-19 17:43:20.000000000
+0200
+++ new/Test-MockModule-v0.172.0/Changes 2020-02-19 15:13:45.000000000
+0100
@@ -1,5 +1,10 @@
Revision history for Test::MockModule
+v0.172.0
+- 7558aa9 Make sure we can redefine a function in 'main' - Nicolas R
+- 0538fe1 Plug GitHub workflow as additional CI - Nicolas R
+- 0e9d90b update parallel to use in_parallel instead ofaggregate - Geoff Franks
+
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
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockModule-v0.171.0/LICENSE
new/Test-MockModule-v0.172.0/LICENSE
--- old/Test-MockModule-v0.171.0/LICENSE 2019-10-19 17:43:20.000000000
+0200
+++ new/Test-MockModule-v0.172.0/LICENSE 2020-02-19 15:13:45.000000000
+0100
@@ -1,4 +1,4 @@
-This software is copyright (c) 2019 by Current Maintainer: Geoff Franks
<[email protected]> & Original Author: Simon Flack <simonflk _AT_ cpan.org>.
+This software is copyright (c) 2020 by Current Maintainer: Geoff Franks
<[email protected]> & Original Author: Simon Flack <simonflk _AT_ cpan.org>.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@
--- The GNU General Public License, Version 1, February 1989 ---
-This software is Copyright (c) 2019 by Current Maintainer: Geoff Franks
<[email protected]> & Original Author: Simon Flack <simonflk _AT_ cpan.org>.
+This software is Copyright (c) 2020 by Current Maintainer: Geoff Franks
<[email protected]> & Original Author: Simon Flack <simonflk _AT_ cpan.org>.
This is free software, licensed under:
@@ -272,7 +272,7 @@
--- The Artistic License 1.0 ---
-This software is Copyright (c) 2019 by Current Maintainer: Geoff Franks
<[email protected]> & Original Author: Simon Flack <simonflk _AT_ cpan.org>.
+This software is Copyright (c) 2020 by Current Maintainer: Geoff Franks
<[email protected]> & Original Author: Simon Flack <simonflk _AT_ cpan.org>.
This is free software, licensed under:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockModule-v0.171.0/MANIFEST
new/Test-MockModule-v0.172.0/MANIFEST
--- old/Test-MockModule-v0.171.0/MANIFEST 2019-10-19 17:43:20.000000000
+0200
+++ new/Test-MockModule-v0.172.0/MANIFEST 2020-02-19 15:13:45.000000000
+0100
@@ -1,3 +1,6 @@
+.github/workflows/linux.yml
+.github/workflows/macos.yml
+.github/workflows/windows.yml
Build.PL
Changes
ci/Dockerfile
@@ -15,6 +18,7 @@
t/define.t
t/inheritance.t
t/lib/ExampleModule.pm
+t/main.t
t/mock_strict.t
t/mockmodule.t
t/pod.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockModule-v0.171.0/META.json
new/Test-MockModule-v0.172.0/META.json
--- old/Test-MockModule-v0.171.0/META.json 2019-10-19 17:43:20.000000000
+0200
+++ new/Test-MockModule-v0.172.0/META.json 2020-02-19 15:13:45.000000000
+0100
@@ -29,7 +29,7 @@
"runtime" : {
"requires" : {
"Carp" : "0",
- "SUPER" : "0",
+ "SUPER" : "1.20",
"Scalar::Util" : "0",
"perl" : "5.006"
}
@@ -38,7 +38,7 @@
"provides" : {
"Test::MockModule" : {
"file" : "lib/Test/MockModule.pm",
- "version" : "v0.171.0"
+ "version" : "v0.172.0"
}
},
"release_status" : "stable",
@@ -54,6 +54,6 @@
"url" : "git://github.com/geofffranks/test-mockmodule.git"
}
},
- "version" : "v0.171.0",
+ "version" : "v0.172.0",
"x_serialization_backend" : "JSON::PP version 2.27400_02"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockModule-v0.171.0/META.yml
new/Test-MockModule-v0.172.0/META.yml
--- old/Test-MockModule-v0.171.0/META.yml 2019-10-19 17:43:20.000000000
+0200
+++ new/Test-MockModule-v0.172.0/META.yml 2020-02-19 15:13:45.000000000
+0100
@@ -18,10 +18,10 @@
provides:
Test::MockModule:
file: lib/Test/MockModule.pm
- version: v0.171.0
+ version: v0.172.0
requires:
Carp: '0'
- SUPER: '0'
+ SUPER: '1.20'
Scalar::Util: '0'
perl: '5.006'
resources:
@@ -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.171.0
+version: v0.172.0
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockModule-v0.171.0/ci/pipeline.yml
new/Test-MockModule-v0.172.0/ci/pipeline.yml
--- old/Test-MockModule-v0.171.0/ci/pipeline.yml 2019-10-19
17:43:20.000000000 +0200
+++ new/Test-MockModule-v0.172.0/ci/pipeline.yml 2020-02-19
15:13:45.000000000 +0100
@@ -58,7 +58,7 @@
serial: true
plan:
- do:
- - aggregate:
+ - in_parallel:
- { get: git, trigger: true }
- task: testflight
config:
@@ -200,7 +200,7 @@
public: true
plan:
- do:
- - aggregate:
+ - in_parallel:
- { get: git, trigger: true, passed: [pre] }
- { get: version, trigger: false, params: {pre: rc} }
- put: version
@@ -233,7 +233,7 @@
plan:
- do:
- name: inputs
- aggregate:
+ in_parallel:
- { get: version, passed: [rc], params: {bump: final} }
- { get: git, passed: [rc] }
- name: release
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockModule-v0.171.0/lib/Test/MockModule.pm
new/Test-MockModule-v0.172.0/lib/Test/MockModule.pm
--- old/Test-MockModule-v0.171.0/lib/Test/MockModule.pm 2019-10-19
17:43:20.000000000 +0200
+++ new/Test-MockModule-v0.172.0/lib/Test/MockModule.pm 2020-02-19
15:13:45.000000000 +0100
@@ -5,7 +5,7 @@
use Scalar::Util qw/reftype weaken/;
use Carp;
use SUPER;
-$VERSION = '0.171.0';
+$VERSION = '0.172.0';
our $STRICT_MODE;
@@ -30,7 +30,7 @@
croak "Invalid package name $package";
}
- unless ($package eq "CORE::GLOBAL" || $args{no_auto} ||
${"$package\::VERSION"}) {
+ unless ($package eq "CORE::GLOBAL" || $package eq 'main' ||
$args{no_auto} || ${"$package\::VERSION"}) {
(my $load_package = "$package.pm") =~ s{::}{/}g;
TRACE("$package is empty, loading $load_package");
require $load_package;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-MockModule-v0.171.0/t/main.t
new/Test-MockModule-v0.172.0/t/main.t
--- old/Test-MockModule-v0.171.0/t/main.t 1970-01-01 01:00:00.000000000
+0100
+++ new/Test-MockModule-v0.172.0/t/main.t 2020-02-19 15:13:45.000000000
+0100
@@ -0,0 +1,15 @@
+use warnings;
+use strict;
+
+use Test::More;
+use Test::Warnings;
+
+use Test::MockModule;
+
+sub fourofour { 404 }
+
+my $mocker = Test::MockModule->new('main')->redefine( fourofour => 200 );
+
+is fourofour(), 200, "can mock a function in main # need SUPER > 1.17";
+
+done_testing();