Hello community,
here is the log from the commit of package perl-Test-Synopsis for
openSUSE:Factory checked in at 2016-02-25 22:03:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Test-Synopsis (Old)
and /work/SRC/openSUSE:Factory/.perl-Test-Synopsis.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Test-Synopsis"
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Test-Synopsis/perl-Test-Synopsis.changes
2016-01-11 19:11:46.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.perl-Test-Synopsis.new/perl-Test-Synopsis.changes
2016-02-26 00:40:10.000000000 +0100
@@ -1,0 +2,12 @@
+Fri Feb 19 11:04:33 UTC 2016 - [email protected]
+
+- updated to 0.14
+ see /usr/share/doc/packages/perl-Test-Synopsis/Changes
+
+ 0.14 2016-02-16
+ - Complete rewrite by dolmen
+ [BREAKING CHANGES]
+ - The undocumented PRIVATE subroutine extract_synopsis
+ has been renamed. Any code using it will break
+
+-------------------------------------------------------------------
Old:
----
Test-Synopsis-0.13.tar.gz
New:
----
Test-Synopsis-0.14.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Test-Synopsis.spec ++++++
--- /var/tmp/diff_new_pack.xqUmyH/_old 2016-02-26 00:40:11.000000000 +0100
+++ /var/tmp/diff_new_pack.xqUmyH/_new 2016-02-26 00:40:11.000000000 +0100
@@ -17,7 +17,7 @@
Name: perl-Test-Synopsis
-Version: 0.13
+Version: 0.14
Release: 0
%define cpan_name Test-Synopsis
Summary: Test your SYNOPSIS code
@@ -30,7 +30,11 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
+BuildRequires: perl(Pod::Simple)
BuildRequires: perl(Test::Builder) >= 0.34
+BuildRequires: perl(parent)
+Requires: perl(Pod::Simple)
+Requires: perl(parent)
%{perl_requires}
%description
++++++ Test-Synopsis-0.13.tar.gz -> Test-Synopsis-0.14.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Synopsis-0.13/Changes
new/Test-Synopsis-0.14/Changes
--- old/Test-Synopsis-0.13/Changes 2016-01-04 23:59:35.000000000 +0100
+++ new/Test-Synopsis-0.14/Changes 2016-02-17 03:10:15.000000000 +0100
@@ -1,5 +1,11 @@
Revision history for Perl extension Test::Synopsis
+0.14 2016-02-16
+ - Complete rewrite by dolmen
+ [BREAKING CHANGES]
+ - The undocumented PRIVATE subroutine extract_synopsis
+ has been renamed. Any code using it will break
+
0.13 2016-01-04
- Fix #12 conflict with multiple chunks (by turnstep)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Synopsis-0.13/MANIFEST
new/Test-Synopsis-0.14/MANIFEST
--- old/Test-Synopsis-0.13/MANIFEST 2016-01-04 23:59:35.000000000 +0100
+++ new/Test-Synopsis-0.14/MANIFEST 2016-02-17 03:10:15.000000000 +0100
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest
v5.042.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest
v5.043.
Changes
INSTALL
LICENSE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Synopsis-0.13/META.json
new/Test-Synopsis-0.14/META.json
--- old/Test-Synopsis-0.13/META.json 2016-01-04 23:59:35.000000000 +0100
+++ new/Test-Synopsis-0.14/META.json 2016-02-17 03:10:15.000000000 +0100
@@ -4,7 +4,7 @@
"Tatsuhiko Miyagawa <[email protected]>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 5.042, CPAN::Meta::Converter version
2.150001",
+ "generated_by" : "Dist::Zilla version 5.043, CPAN::Meta::Converter version
2.150001",
"license" : [
"perl_5"
],
@@ -54,9 +54,9 @@
"runtime" : {
"requires" : {
"ExtUtils::Manifest" : "0",
- "Pod::Parser" : "0",
+ "Pod::Simple" : "0",
"Test::Builder::Module" : "0",
- "base" : "0",
+ "parent" : "0",
"perl" : "5.008_001",
"strict" : "0",
"warnings" : "0"
@@ -78,7 +78,7 @@
"provides" : {
"Test::Synopsis" : {
"file" : "lib/Test/Synopsis.pm",
- "version" : "0.13"
+ "version" : "0.14"
}
},
"release_status" : "stable",
@@ -93,10 +93,10 @@
"web" : "https://github.com/miyagawa/test-synopsis"
}
},
- "version" : "0.13",
+ "version" : "0.14",
"x_Dist_Zilla" : {
"perl" : {
- "version" : "5.022000"
+ "version" : "5.022001"
},
"plugins" : [
{
@@ -144,42 +144,42 @@
}
},
"name" : "@Author::ZOFFIX/GatherDir",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::PruneCruft",
"name" : "@Author::ZOFFIX/PruneCruft",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
"name" : "@Author::ZOFFIX/ManifestSkip",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@Author::ZOFFIX/MetaYAML",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@Author::ZOFFIX/License",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
"name" : "@Author::ZOFFIX/Readme",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@Author::ZOFFIX/ExecDir",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@Author::ZOFFIX/ShareDir",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
@@ -189,22 +189,22 @@
}
},
"name" : "@Author::ZOFFIX/MakeMaker",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@Author::ZOFFIX/Manifest",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::AutoPrereqs",
"name" : "@Author::ZOFFIX/AutoPrereqs",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@Author::ZOFFIX/MetaConfig",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs::AuthorDeps",
@@ -224,11 +224,12 @@
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" :
"@Author::ZOFFIX/MetaProvides::Package/AUTOVIV/:InstallModulesPM",
- "version" : "5.042"
+ "version" : "5.043"
}
]
},
"Dist::Zilla::Role::MetaProvider::Provider" : {
+ "Dist::Zilla::Role::MetaProvider::Provider::VERSION" :
"2.001011",
"inherit_missing" : "1",
"inherit_version" : "1",
"meta_noindex" : "1"
@@ -314,7 +315,7 @@
{
"class" : "Dist::Zilla::Plugin::MetaTests",
"name" : "@Author::ZOFFIX/MetaTests",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::Test::CPAN::Meta::JSON",
@@ -344,12 +345,12 @@
{
"class" : "Dist::Zilla::Plugin::PodCoverageTests",
"name" : "@Author::ZOFFIX/PodCoverageTests",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@Author::ZOFFIX/PodSyntaxTests",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::Test::Portability",
@@ -421,7 +422,7 @@
{
"class" : "Dist::Zilla::Plugin::TestRelease",
"name" : "@Author::ZOFFIX/TestRelease",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::InstallRelease",
@@ -431,12 +432,12 @@
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
"name" : "@Author::ZOFFIX/ConfirmRelease",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
"name" : "@Author::ZOFFIX/UploadToCPAN",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -447,7 +448,7 @@
}
},
"name" : "TestRequires",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -458,7 +459,7 @@
}
},
"name" : "DevelopRequires",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::AutoMetaResources",
@@ -492,7 +493,7 @@
"branch" : null,
"changelog" : "Changes",
"signed" : 0,
- "tag" : "0.13",
+ "tag" : "0.14",
"tag_format" : "%v",
"tag_message" : "%v"
},
@@ -571,62 +572,62 @@
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "MetaJSON",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":IncModules",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExtraTestFiles",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":PerlExecFiles",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":MainModule",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":AllFiles",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":NoFiles",
- "version" : "5.042"
+ "version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" :
"@Author::ZOFFIX/MetaProvides::Package/AUTOVIV/:InstallModulesPM",
- "version" : "5.042"
+ "version" : "5.043"
}
],
"zilla" : {
@@ -634,7 +635,7 @@
"config" : {
"is_trial" : "0"
},
- "version" : "5.042"
+ "version" : "5.043"
}
},
"x_contributors" : [
@@ -643,7 +644,8 @@
"Mike Doherty <[email protected]>",
"Patrice Clement <[email protected]>",
"Greg Sabino Mullane <[email protected]>",
- "Zoffix Znet <[email protected]>"
+ "Zoffix Znet <[email protected]>",
+ "Olivier Mengué <[email protected]>"
]
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Synopsis-0.13/META.yml
new/Test-Synopsis-0.14/META.yml
--- old/Test-Synopsis-0.13/META.yml 2016-01-04 23:59:35.000000000 +0100
+++ new/Test-Synopsis-0.14/META.yml 2016-02-17 03:10:15.000000000 +0100
@@ -15,7 +15,7 @@
ExtUtils::MakeMaker: '0'
perl: 5.008_001
dynamic_config: 0
-generated_by: 'Dist::Zilla version 5.042, CPAN::Meta::Converter version
2.150001'
+generated_by: 'Dist::Zilla version 5.043, CPAN::Meta::Converter version
2.150001'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -24,12 +24,12 @@
provides:
Test::Synopsis:
file: lib/Test/Synopsis.pm
- version: '0.13'
+ version: '0.14'
requires:
ExtUtils::Manifest: '0'
- Pod::Parser: '0'
+ Pod::Simple: '0'
Test::Builder::Module: '0'
- base: '0'
+ parent: '0'
perl: 5.008_001
strict: '0'
warnings: '0'
@@ -37,10 +37,10 @@
bugtracker: https://github.com/miyagawa/test-synopsis/issues
homepage: http://metacpan.org/release/Test-Synopsis
repository: git://github.com/miyagawa/test-synopsis.git
-version: '0.13'
+version: '0.14'
x_Dist_Zilla:
perl:
- version: '5.022000'
+ version: '5.022001'
plugins:
-
class: Dist::Zilla::Plugin::OurPkgVersion
@@ -79,54 +79,54 @@
prune_directory: []
root: .
name: '@Author::ZOFFIX/GatherDir'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::PruneCruft
name: '@Author::ZOFFIX/PruneCruft'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@Author::ZOFFIX/ManifestSkip'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@Author::ZOFFIX/MetaYAML'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::License
name: '@Author::ZOFFIX/License'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::Readme
name: '@Author::ZOFFIX/Readme'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::ExecDir
name: '@Author::ZOFFIX/ExecDir'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::ShareDir
name: '@Author::ZOFFIX/ShareDir'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::MakeMaker
config:
Dist::Zilla::Role::TestRunner:
default_jobs: 1
name: '@Author::ZOFFIX/MakeMaker'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::Manifest
name: '@Author::ZOFFIX/Manifest'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::AutoPrereqs
name: '@Author::ZOFFIX/AutoPrereqs'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@Author::ZOFFIX/MetaConfig'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::Prereqs::AuthorDeps
name: '@Author::ZOFFIX/Prereqs::AuthorDeps'
@@ -143,8 +143,9 @@
-
class: Dist::Zilla::Plugin::FinderCode
name:
'@Author::ZOFFIX/MetaProvides::Package/AUTOVIV/:InstallModulesPM'
- version: '5.042'
+ version: '5.043'
Dist::Zilla::Role::MetaProvider::Provider:
+ Dist::Zilla::Role::MetaProvider::Provider::VERSION: '2.001011'
inherit_missing: '1'
inherit_version: '1'
meta_noindex: '1'
@@ -209,7 +210,7 @@
-
class: Dist::Zilla::Plugin::MetaTests
name: '@Author::ZOFFIX/MetaTests'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::Test::CPAN::Meta::JSON
name: '@Author::ZOFFIX/Test::CPAN::Meta::JSON'
@@ -232,11 +233,11 @@
-
class: Dist::Zilla::Plugin::PodCoverageTests
name: '@Author::ZOFFIX/PodCoverageTests'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@Author::ZOFFIX/PodSyntaxTests'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::Test::Portability
name: '@Author::ZOFFIX/Test::Portability'
@@ -290,7 +291,7 @@
-
class: Dist::Zilla::Plugin::TestRelease
name: '@Author::ZOFFIX/TestRelease'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::InstallRelease
name: '@Author::ZOFFIX/InstallRelease'
@@ -298,11 +299,11 @@
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@Author::ZOFFIX/ConfirmRelease'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@Author::ZOFFIX/UploadToCPAN'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -310,7 +311,7 @@
phase: test
type: requires
name: TestRequires
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -318,7 +319,7 @@
phase: develop
type: requires
name: DevelopRequires
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::AutoMetaResources
name: AutoMetaResources
@@ -345,7 +346,7 @@
branch: ~
changelog: Changes
signed: 0
- tag: '0.13'
+ tag: '0.14'
tag_format: '%v'
tag_message: '%v'
Dist::Zilla::Role::Git::Repo:
@@ -401,56 +402,56 @@
-
class: Dist::Zilla::Plugin::MetaJSON
name: MetaJSON
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':IncModules'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExtraTestFiles'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':PerlExecFiles'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':MainModule'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':AllFiles'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':NoFiles'
- version: '5.042'
+ version: '5.043'
-
class: Dist::Zilla::Plugin::FinderCode
name: '@Author::ZOFFIX/MetaProvides::Package/AUTOVIV/:InstallModulesPM'
- version: '5.042'
+ version: '5.043'
zilla:
class: Dist::Zilla::Dist::Builder
config:
is_trial: '0'
- version: '5.042'
+ version: '5.043'
x_contributors:
- 'Kevin Ryde <[email protected]>'
- 'Marcel Grünauer <[email protected]>'
@@ -458,3 +459,4 @@
- 'Patrice Clement <[email protected]>'
- 'Greg Sabino Mullane <[email protected]>'
- 'Zoffix Znet <[email protected]>'
+ - 'Olivier Mengué <[email protected]>'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Synopsis-0.13/Makefile.PL
new/Test-Synopsis-0.14/Makefile.PL
--- old/Test-Synopsis-0.13/Makefile.PL 2016-01-04 23:59:35.000000000 +0100
+++ new/Test-Synopsis-0.14/Makefile.PL 2016-02-17 03:10:15.000000000 +0100
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker
v5.042.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker
v5.043.
use strict;
use warnings;
@@ -18,9 +18,9 @@
"NAME" => "Test::Synopsis",
"PREREQ_PM" => {
"ExtUtils::Manifest" => 0,
- "Pod::Parser" => 0,
+ "Pod::Simple" => 0,
"Test::Builder::Module" => 0,
- "base" => 0,
+ "parent" => 0,
"strict" => 0,
"warnings" => 0
},
@@ -33,7 +33,7 @@
"Test::More" => 0,
"blib" => "1.01"
},
- "VERSION" => "0.13",
+ "VERSION" => "0.14",
"test" => {
"TESTS" => "t/*.t"
}
@@ -45,13 +45,13 @@
"File::Spec" => 0,
"IO::Handle" => 0,
"IPC::Open3" => 0,
- "Pod::Parser" => 0,
+ "Pod::Simple" => 0,
"Test::Builder" => "0.34",
"Test::Builder::Module" => 0,
"Test::Builder::Tester" => 0,
"Test::More" => 0,
- "base" => 0,
"blib" => "1.01",
+ "parent" => 0,
"strict" => 0,
"warnings" => 0
);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Synopsis-0.13/README
new/Test-Synopsis-0.14/README
--- old/Test-Synopsis-0.13/README 2016-01-04 23:59:35.000000000 +0100
+++ new/Test-Synopsis-0.14/README 2016-02-17 03:10:15.000000000 +0100
@@ -1,7 +1,7 @@
This archive contains the distribution Test-Synopsis,
-version 0.13:
+version 0.14:
Test your SYNOPSIS code
@@ -11,5 +11,5 @@
the same terms as the Perl 5 programming language system itself.
-This README file was generated by Dist::Zilla::Plugin::Readme v5.042.
+This README file was generated by Dist::Zilla::Plugin::Readme v5.043.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Synopsis-0.13/README.md
new/Test-Synopsis-0.14/README.md
--- old/Test-Synopsis-0.13/README.md 2016-01-04 23:59:35.000000000 +0100
+++ new/Test-Synopsis-0.14/README.md 2016-02-17 03:10:15.000000000 +0100
@@ -183,6 +183,7 @@
- Patrice Clement ([monsieurp](https://github.com/monsieurp))
- Greg Sabino Mullane ([TURNSTEP](https://metacpan.org/author/TURNSTEP))
- Zoffix Znet ([ZOFFIX](https://metacpan.org/author/ZOFFIX))
+- Olivier Mengué ([DOLMEN](https://metacpan.org/author/DOLMEN))
# LICENSE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Synopsis-0.13/dist.ini
new/Test-Synopsis-0.14/dist.ini
--- old/Test-Synopsis-0.13/dist.ini 2016-01-04 23:59:35.000000000 +0100
+++ new/Test-Synopsis-0.14/dist.ini 2016-02-17 03:10:15.000000000 +0100
@@ -32,6 +32,7 @@
contributor = Patrice Clement <[email protected]>
contributor = Greg Sabino Mullane <[email protected]>
contributor = Zoffix Znet <[email protected]>
+contributor = Olivier Mengué <[email protected]>
[Git::NextVersion]
first_version = 0.07
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Synopsis-0.13/lib/Test/Synopsis.pm
new/Test-Synopsis-0.14/lib/Test/Synopsis.pm
--- old/Test-Synopsis-0.13/lib/Test/Synopsis.pm 2016-01-04 23:59:35.000000000
+0100
+++ new/Test-Synopsis-0.14/lib/Test/Synopsis.pm 2016-02-17 03:10:15.000000000
+0100
@@ -4,9 +4,9 @@
use warnings;
use 5.008_001;
-our $VERSION = '0.13'; # VERSION
+our $VERSION = '0.14'; # VERSION
-use base qw( Test::Builder::Module );
+use parent qw( Test::Builder::Module );
our @EXPORT = qw( synopsis_ok all_synopsis_ok );
use ExtUtils::Manifest qw( maniread );
@@ -25,48 +25,51 @@
}
sub synopsis_ok {
- my @modules = @_;
+ my @files = @_;
- for my $module (@modules) {
- my($codes, $line, @option) = extract_synopsis($module);
- unless (keys %$codes) {
+ for my $file (@files) {
+ my $blocks = _extract_synopsis($file);
+ unless (@$blocks) {
__PACKAGE__->builder->ok(1, "No SYNOPSIS code");
next;
}
- my $option = join(";", @option);
-
- for my $entry (sort { $a <=> $b } keys %$codes) {
- for my $file (sort keys %{$codes->{$entry}}) {
- my $number_sections = keys %{ $codes->{$entry}{$file} };
- for my $section (sort { $a <=> $b } keys %{ $codes->{$entry}{$file} })
{
- my $code = $codes->{$entry}{$file}{$section};
- my $test = qq(#line $line "$module"\n$option; sub { $code });
- my $ok = _compile($test);
-
- # See if the user is trying to skip this test using the =for block
- if ( !$ok and $@=~/^SKIP:.+BEGIN failed--compilation aborted/si ) {
- $@ =~ s/^SKIP:\s*//;
- $@ =~ s/\nBEGIN failed--compilation aborted at.+//s;
- __PACKAGE__->builder->skip($@, 1);
- }
- else {
- my $sectionname = $file;
- ## Show section number if more than one section only
- if ($number_sections > 1) {
- $sectionname .= " (section $section)";
+ my $block_num = 0;
+ for my $block (@$blocks) {
+ $block_num++;
+ my ($line, $code, $options) = @$block;
+
+ # don't want __END__ blocks in SYNOPSIS chopping our '}' in
wrapper sub
+ # same goes for __DATA__ and although we'll be sticking an extra
'}'
+ # into its contents; it shouldn't matter since the code shouldn't
be
+ # run anyways.
+ $code =~ s/(?=(?:__END__|__DATA__)\s*$)/}\n/m;
+
+ $options = join(";", @$options);
+ my $test = qq($options;\nsub{\n#line $line "$file"\n$code\n;});
+ #use Test::More (); Test::More::note "=========\n$test\n========";
+ my $ok = _compile($test);
+
+ # See if the user is trying to skip this test using the =for block
+ if ( !$ok and $@=~/^SKIP:.+BEGIN failed--compilation aborted/si ) {
+ $@ =~ s/^SKIP:\s*//;
+ $@ =~ s/\nBEGIN failed--compilation aborted at.+//s;
+ __PACKAGE__->builder->skip($@, 1);
+ } else {
+ my $block_name = $file;
+ ## Show block number only if more than one block
+ if (@$blocks > 1) {
+ $block_name .= " (section $block_num)";
+ }
+ __PACKAGE__->builder->ok($ok, $block_name)
+ or __PACKAGE__->builder->diag(
+ $ARGS{dump_all_code_on_error}
+ ? "$@\nEVALED CODE:\n$test"
+ : $@
+ );
}
- __PACKAGE__->builder->ok($ok, $sectionname);
- __PACKAGE__->builder->diag(
- $ARGS{dump_all_code_on_error}
- ? "$@\nEVALED CODE:\n$test"
- : $@
- ) unless $ok;
- }
}
- }
}
- }
}
my $sandbox = 0;
@@ -77,148 +80,91 @@
++$sandbox, $_[0]; ## no critic
}
-### WARNING: DESPITE THE NAME OF THIS SUBROUTINE (no underscore)
-### IT'S A PRIVATE SUB; DO NOT USE IT DIRECTLY IN YOUR CODE!
-sub extract_synopsis {
+sub _extract_synopsis
+{
my $file = shift;
my $parser = Test::Synopsis::Parser->new;
- $parser->parse_from_file ($file);
-
- for my $entry (values %{$parser->{'test_synopsis_text'}}) {
- for my $sectionhash (values %{$entry}) {
- for my $section_text ( values %{$sectionhash}) {
-
- # don't want __END__ blocks in SYNOPSIS chopping our '}' in wrapper sub
- # same goes for __DATA__ and although we'll be sticking an extra '}'
- # into its contents; it shouldn't matter since the code shouldn't be
- # run anyways.
- $section_text =~ s/(?=(?:__END__|__DATA__)\s*$)/}\n/m;
-
- # trim indent whitespace to make HEREDOCs work properly
- # we'll assume the indent of the first line is the proper indent
- # to use for the whole block
- $section_text =~ s/(\A(\s+).+)/ (my $x = $1) =~ s{^$2}{}gm; $x /se;
- }
- }
- }
-
- # Correct the reported line number of the error, depending on what
- # =for options we were supplied with.
- my $options_lines = join '', @{ $parser->{'test_synopsis_options'} };
- $options_lines = $options_lines =~ tr/\n/\n/;
-
- return (
- $parser->{'test_synopsis_text'},
- ($parser->{'test_synopsis_linenum'} || 0) - ($options_lines || 0),
- @{ $parser->{'test_synopsis_options'} }
- );
+ $parser->parse_file($file);
+ $parser->{tsyn_blocks}
}
package
Test::Synopsis::Parser; # on new line to avoid indexing
-### Parser patch by Kevin Ryde
+use parent 'Pod::Simple';
-use base 'Pod::Parser';
-sub new {
- my $class = shift;
- my $self = $class->SUPER::new(
- @_,
- within_begin => '',
- test_synopsis_options => [],
- test_synopsis_section => {},
- test_synopsis_sequence => 1,
- test_synopsis_current_file => '',
- test_synopsis_text => {},
- );
- return $self;
+sub new
+{
+ my $self = shift->SUPER::new(@_);
+ $self->accept_targets('test_synopsis');
+ $self->merge_text(1);
+ $self->no_errata_section(1);
+ $self->strip_verbatim_indent(sub {
+ my $lines = shift;
+ my ($indent) = $lines->[0] =~ /^(\s*)/;
+ $indent
+ });
+
+ $self->{tsyn_stack} = [];
+ $self->{tsyn_options} = [];
+ $self->{tsyn_blocks} = [];
+ $self->{tsyn_in_synopsis} = '';
+
+ $self
}
-sub command {
- my $self = shift;
- my ($command, $text) = @_;
-
- if ($command eq 'for') {
- if ($text =~ /^test_synopsis\s+(.*)/s) {
- push @{$self->{'test_synopsis_options'}}, $1;
- }
- } elsif ($command eq 'begin') {
- $self->{'within_begin'} = $text;
- } elsif ($command eq 'end') {
- $self->{'within_begin'} = '';
- } elsif ($command eq 'pod') {
- # resuming pod, retain begin/end/synopsis state
- } else {
- # Synopsis is "=head1 SYNOPSIS" through to next command other than
- # the above "=for", "=begin", "=end", "=pod". This means
- # * "=for" directives for other programs are skipped
- # (eg. HTML::Scrubber)
- # * "=begin" to "=end" for other program are skipped
- # (eg. Date::Simple)
- # * "=cut" to "=pod" actual code is skipped (perhaps unlikely in
- # practice)
- #
- # Could think about not stopping at "=head2" etc subsections of a
- # synopsis, but a synopsis with subsections usually means different
- # sample bits meant for different places and so probably won't
- # actually run.
- #
- $self->{'within_synopsis'}
- = ($command eq 'head1' && $text =~ /^SYNOPSIS\s*$/);
- }
- return '';
+sub _handle_element_start
+{
+ my ($self, $element_name, $attrs) = @_;
+
+ #Test::More::note Test::More::explain($element_name);
+ #Test::More::note Test::More::explain($attrs);
+ push @{$self->{tsyn_stack}}, [ $element_name, $attrs ];
}
-sub verbatim {
- my ( $self, $text, $linenum ) = @_;
+sub _handle_element_end
+{
+ return unless $_[0]->{tsyn_stack};
+ pop @{ $_[0]->{tsyn_stack} };
+}
- ## If we are in a new file, adjust some things.
- if ($self->{_INFILE} ne $self->{test_synopsis_current_file}) {
- $self->{test_synopsis_current_file} = $self->{_INFILE};
- $self->{test_synopsis_section}{$self->{_INFILE}} = 0;
- $self->{test_synopsis_blocknumber} = 1;
- $self->{test_synopsis_oldblocknumber} = 0;
- }
-
- ## If we are starting a new section, adjust some things.
- if ($self->{test_synopsis_blocknumber} !=
$self->{test_synopsis_oldblocknumber}) {
- $self->{test_synopsis_oldblocknumber} = $self->{test_synopsis_blocknumber};
- $self->{test_synopsis_section}{$self->{_INFILE}}++;
- }
-
- if ( $self->{'within_begin'} =~ /^test_synopsis\b/ ) {
- push @{$self->{'test_synopsis_options'}}, $text;
-
- } elsif ( $self->{'within_synopsis'} && ! $self->{'within_begin'} ) {
- $self->{'test_synopsis_linenum'} = $linenum; # first occurance
- $self->{test_synopsis_text}{
- ## Maintain same order on checking as was read in:
- $self->{test_synopsis_sequence}
- }{
- ## Current file we are parsing:
- $self->{_INFILE}
- }{
- ## What section of the current file we are in:
- $self->{test_synopsis_section}{$self->{_INFILE}}
- } .= $text;
+sub _handle_text
+{
+ return unless $_[0]->{tsyn_stack};
+ my ($self, $text) = @_;
+ my $elt = $self->{tsyn_stack}[-1][0];
+ if ($elt eq 'head1') {
+ if ($self->{tsyn_in_synopsis}) {
+ # Exiting SYNOPSIS => Skip everything to the end
+ delete $self->{tsyn_stack};
+ }
+ $self->{tsyn_in_synopsis} = $text =~ /SYNOPSIS\s*$/;
+ } elsif ($elt eq 'Data') {
+ # use Test::More; Test::More::note "XXX";
+ my $up = $self->{tsyn_stack}[-2];
+ if ($up->[0] eq 'for' && $up->[1]->{target} eq 'test_synopsis') {
+ my $line = $up->[1]{start_line};
+ my $file = $self->source_filename;
+ push @{$self->{tsyn_options}}, qq<#line $line "$file"\n$text\n>;
+ }
+ } elsif ($elt eq 'Verbatim' && $self->{tsyn_in_synopsis}) {
+ my $line = $self->{tsyn_stack}[-1][1]{start_line};
+ push @{ $self->{tsyn_blocks} }, [
+ $line,
+ $text,
+ $self->{tsyn_options},
+ ];
+ $self->{tsyn_options} = [];
}
- return '';
-}
-sub textblock {
- # ignore text paragraphs, only take "verbatim" blocks to be code
- my $self = shift;
- $self->{test_synopsis_blocknumber}++;
- return '';
}
+
1;
__END__
=encoding utf-8
-=for Pod::Coverage extract_synopsis
-
=for stopwords Goro blogged Znet Zoffix DOHERTY Doherty
KRYDE Ryde ZOFFIX Gr nauer Grünauer pm HEREDOC HEREDOCs
@@ -417,6 +363,8 @@
=item * Zoffix Znet (L<ZOFFIX|https://metacpan.org/author/ZOFFIX>)
+=item * Olivier Mengué (L<DOLMEN|https://metacpan.org/author/DOLMEN>)
+
=back
=head1 LICENSE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Test-Synopsis-0.13/t/01-fail-if-SYNOPSIS-has-errors.t
new/Test-Synopsis-0.14/t/01-fail-if-SYNOPSIS-has-errors.t
--- old/Test-Synopsis-0.13/t/01-fail-if-SYNOPSIS-has-errors.t 2016-01-04
23:59:35.000000000 +0100
+++ new/Test-Synopsis-0.14/t/01-fail-if-SYNOPSIS-has-errors.t 2016-02-17
03:10:15.000000000 +0100
@@ -12,7 +12,7 @@
? ' (did you forget to declare "my $x"?)'
: ''
)
- . q{ at t/lib/BrokenSYNOPSIS01.pm line 20.},
+ . q{ at t/lib/BrokenSYNOPSIS01.pm line 18.},
);
synopsis_ok("t/lib/BrokenSYNOPSIS01.pm");
test_test("synopsis fail works");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Synopsis-0.13/t/02-END-token-errors.t
new/Test-Synopsis-0.14/t/02-END-token-errors.t
--- old/Test-Synopsis-0.13/t/02-END-token-errors.t 2016-01-04
23:59:35.000000000 +0100
+++ new/Test-Synopsis-0.14/t/02-END-token-errors.t 2016-02-17
03:10:15.000000000 +0100
@@ -12,7 +12,7 @@
? ' (did you forget to declare "my $x"?)'
: ''
)
- . q{ at t/lib/ENDInPodWithError.pm line 30.},
+ . q{ at t/lib/ENDInPodWithError.pm line 24.},
);
synopsis_ok("t/lib/ENDInPodWithError.pm");
test_test("synopsis fail works");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Synopsis-0.13/t/05-multi-chunks-clash.t
new/Test-Synopsis-0.14/t/05-multi-chunks-clash.t
--- old/Test-Synopsis-0.13/t/05-multi-chunks-clash.t 2016-01-04
23:59:35.000000000 +0100
+++ new/Test-Synopsis-0.14/t/05-multi-chunks-clash.t 2016-02-17
03:10:15.000000000 +0100
@@ -7,7 +7,7 @@
test_diag(q{ Failed test 't/lib/TestMultipleChunks.pm (section 2)'
# at t/05-multi-chunks-clash.t line 12.
-# Bareword "bob" not allowed while "strict subs" in use at
t/lib/TestMultipleChunks.pm line 31.});
+# Bareword "bob" not allowed while "strict subs" in use at
t/lib/TestMultipleChunks.pm line 29.});
synopsis_ok("t/lib/TestMultipleChunks.pm");
test_test("synopsis with multiple chunks fails");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Synopsis-0.13/t/12-DATA-token-errors.t
new/Test-Synopsis-0.14/t/12-DATA-token-errors.t
--- old/Test-Synopsis-0.13/t/12-DATA-token-errors.t 2016-01-04
23:59:35.000000000 +0100
+++ new/Test-Synopsis-0.14/t/12-DATA-token-errors.t 2016-02-17
03:10:15.000000000 +0100
@@ -12,7 +12,7 @@
? ' (did you forget to declare "my $x"?)'
: ''
)
- . q{ at t/lib/Test12DATAInPodWithError.pm line 28.},
+ . q{ at t/lib/Test12DATAInPodWithError.pm line 24.},
);
synopsis_ok("t/lib/Test12DATAInPodWithError.pm");
test_test("synopsis fail works");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Synopsis-0.13/xt/author/pod-spell.t
new/Test-Synopsis-0.14/xt/author/pod-spell.t
--- old/Test-Synopsis-0.13/xt/author/pod-spell.t 2016-01-04
23:59:35.000000000 +0100
+++ new/Test-Synopsis-0.14/xt/author/pod-spell.t 2016-02-17
03:10:15.000000000 +0100
@@ -32,6 +32,9 @@
Zoffix
Znet
zoffix
+Olivier
+Mengué
+dolmen
lib
Test
Synopsis