Hello community,
here is the log from the commit of package perl-Params-Validate for
openSUSE:Factory checked in at 2015-07-20 11:22:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Params-Validate (Old)
and /work/SRC/openSUSE:Factory/.perl-Params-Validate.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Params-Validate"
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-Params-Validate/perl-Params-Validate.changes
2015-06-30 10:19:10.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.perl-Params-Validate.new/perl-Params-Validate.changes
2015-07-20 11:22:48.000000000 +0200
@@ -1,0 +2,11 @@
+Sun Jul 19 09:09:30 UTC 2015 - [email protected]
+
+- updated to 1.21
+ see /usr/share/doc/packages/perl-Params-Validate/Changes
+
+ 1.21 2015-07-18
+
+ - Attribute::Params::Validate is now in its own distro, and needs a new
+ maintainer. If you would like to maintain it, please contact me.
+
+-------------------------------------------------------------------
Old:
----
Params-Validate-1.20.tar.gz
New:
----
Params-Validate-1.21.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Params-Validate.spec ++++++
--- /var/tmp/diff_new_pack.Rymwuw/_old 2015-07-20 11:22:50.000000000 +0200
+++ /var/tmp/diff_new_pack.Rymwuw/_new 2015-07-20 11:22:50.000000000 +0200
@@ -17,7 +17,7 @@
Name: perl-Params-Validate
-Version: 1.20
+Version: 1.21
Release: 0
%define cpan_name Params-Validate
Summary: Validate method/function parameters
@@ -29,13 +29,11 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
-BuildRequires: perl(Attribute::Handlers) >= 0.79
BuildRequires: perl(Module::Build) >= 0.280000
BuildRequires: perl(Module::Implementation)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(Test::Requires)
-Requires: perl(Attribute::Handlers) >= 0.79
Requires: perl(Module::Implementation)
%{perl_requires}
++++++ Params-Validate-1.20.tar.gz -> Params-Validate-1.21.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/Build.PL
new/Params-Validate-1.21/Build.PL
--- old/Params-Validate-1.20/Build.PL 2015-06-28 16:34:36.000000000 +0200
+++ new/Params-Validate-1.21/Build.PL 2015-07-18 17:38:41.000000000 +0200
@@ -20,19 +20,17 @@
"Ilya Martynov <ilya\@martynov.org>"
],
"dist_name" => "Params-Validate",
- "dist_version" => "1.20",
+ "dist_version" => "1.21",
"license" => "artistic_2",
"module_name" => "Params::Validate",
"recommends" => {},
"recursive_test_files" => 1,
"requires" => {
- "Attribute::Handlers" => "0.79",
"Carp" => 0,
"Exporter" => 0,
"Module::Implementation" => 0,
"Scalar::Util" => "1.10",
"XSLoader" => 0,
- "attributes" => 0,
"perl" => "5.008001",
"strict" => 0,
"vars" => 0,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/Changes
new/Params-Validate-1.21/Changes
--- old/Params-Validate-1.20/Changes 2015-06-28 16:34:36.000000000 +0200
+++ new/Params-Validate-1.21/Changes 2015-07-18 17:38:41.000000000 +0200
@@ -1,3 +1,9 @@
+1.21 2015-07-18
+
+- Attribute::Params::Validate is now in its own distro, and needs a new
+ maintainer. If you would like to maintain it, please contact me.
+
+
1.20 2015-06-28
- Fixed a bug with stack handling in the XS code. If a callback sub caused
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/MANIFEST
new/Params-Validate-1.21/MANIFEST
--- old/Params-Validate-1.20/MANIFEST 2015-06-28 16:34:36.000000000 +0200
+++ new/Params-Validate-1.21/MANIFEST 2015-07-18 17:38:41.000000000 +0200
@@ -13,7 +13,6 @@
cpanfile
dist.ini
inc/MyModuleBuild.pm
-lib/Attribute/Params/Validate.pm
lib/Params/Validate.pm
lib/Params/Validate/Constants.pm
lib/Params/Validate/PP.pm
@@ -27,7 +26,6 @@
t/00-report-prereqs.t
t/01-validate.t
t/02-noop.t
-t/03-attribute.t
t/04-defaults.t
t/05-noop_default.t
t/06-options.t
@@ -81,7 +79,6 @@
t/release-portability.t
t/release-pp-01-validate.t
t/release-pp-02-noop.t
-t/release-pp-03-attribute.t
t/release-pp-04-defaults.t
t/release-pp-05-noop_default.t
t/release-pp-06-options.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/META.json
new/Params-Validate-1.21/META.json
--- old/Params-Validate-1.20/META.json 2015-06-28 16:34:36.000000000 +0200
+++ new/Params-Validate-1.21/META.json 2015-07-18 17:38:41.000000000 +0200
@@ -42,6 +42,8 @@
"Test::NoTabs" : "0",
"Test::Pod" : "1.41",
"Test::Pod::Coverage" : "1.08",
+ "Test::Pod::LinkCheck" : "0",
+ "Test::Pod::No404s" : "0",
"Test::Spelling" : "0.12",
"Test::Synopsis" : "0",
"Test::Taint" : "0.02"
@@ -49,13 +51,11 @@
},
"runtime" : {
"requires" : {
- "Attribute::Handlers" : "0.79",
"Carp" : "0",
"Exporter" : "0",
"Module::Implementation" : "0",
"Scalar::Util" : "1.10",
"XSLoader" : "0",
- "attributes" : "0",
"perl" : "5.008001",
"strict" : "0",
"vars" : "0",
@@ -83,25 +83,21 @@
}
},
"provides" : {
- "Attribute::Params::Validate" : {
- "file" : "lib/Attribute/Params/Validate.pm",
- "version" : "1.20"
- },
"Params::Validate" : {
"file" : "lib/Params/Validate.pm",
- "version" : "1.20"
+ "version" : "1.21"
},
"Params::Validate::Constants" : {
"file" : "lib/Params/Validate/Constants.pm",
- "version" : "1.20"
+ "version" : "1.21"
},
"Params::Validate::PP" : {
"file" : "lib/Params/Validate/PP.pm",
- "version" : "1.20"
+ "version" : "1.21"
},
"Params::Validate::XS" : {
"file" : "lib/Params/Validate/XS.pm",
- "version" : "1.20"
+ "version" : "1.21"
}
},
"release_status" : "stable",
@@ -117,10 +113,10 @@
"web" : "https://github.com/autarch/Params-Validate"
}
},
- "version" : "1.20",
+ "version" : "1.21",
"x_Dist_Zilla" : {
"perl" : {
- "version" : "5.020001"
+ "version" : "5.022000"
},
"plugins" : [
{
@@ -143,11 +139,11 @@
"config" : {
"Dist::Zilla::Plugin::GatherDir" : {
"exclude_filename" : [
+ "Build.PL",
+ "LICENSE",
"README.md",
"cpanfile",
- "LICENSE",
- "Makefile.PL",
- "Build.PL"
+ "Makefile.PL"
],
"exclude_match" : [],
"follow_symlinks" : "0",
@@ -157,11 +153,11 @@
"root" : "."
},
"Dist::Zilla::Plugin::Git::GatherDir" : {
- "include_untracked" : "0"
+ "include_untracked" : 0
}
},
"name" : "@DROLSKY/Git::GatherDir",
- "version" : "2.035"
+ "version" : "2.036"
},
{
"class" : "Dist::Zilla::Plugin::GitHub::Meta",
@@ -246,11 +242,21 @@
},
{
"class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod",
+ "config" : {
+ "Dist::Zilla::Role::FileWatcher" : {
+ "version" : "0.006"
+ }
+ },
"name" : "@DROLSKY/README.md in build",
"version" : "0.150250"
},
{
"class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod",
+ "config" : {
+ "Dist::Zilla::Role::FileWatcher" : {
+ "version" : "0.006"
+ }
+ },
"name" : "@DROLSKY/README.md in root",
"version" : "0.150250"
},
@@ -337,17 +343,17 @@
{
"class" : "Dist::Zilla::Plugin::DROLSKY::Contributors",
"name" : "@DROLSKY/DROLSKY::Contributors",
- "version" : "0.34"
+ "version" : "0.36"
},
{
"class" : "Dist::Zilla::Plugin::DROLSKY::License",
"name" : "@DROLSKY/DROLSKY::License",
- "version" : "0.34"
+ "version" : "0.36"
},
{
"class" : "Dist::Zilla::Plugin::DROLSKY::TidyAll",
"name" : "@DROLSKY/DROLSKY::TidyAll",
- "version" : "0.34"
+ "version" : "0.36"
},
{
"class" : "Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch",
@@ -373,14 +379,16 @@
"class" : "Dist::Zilla::Plugin::Git::Contributors",
"config" : {
"Dist::Zilla::Plugin::Git::Contributors" : {
- "include_authors" : "0",
- "include_releaser" : "1",
+ "include_authors" : 0,
+ "include_releaser" : 1,
"order_by" : "name",
- "paths" : []
+ "paths" : [
+ "."
+ ]
}
},
"name" : "@DROLSKY/Git::Contributors",
- "version" : "0.011"
+ "version" : "0.012"
},
{
"class" : "Dist::Zilla::Plugin::InstallGuide",
@@ -419,52 +427,52 @@
{
"class" : "Pod::Weaver::Plugin::EnsurePod5",
"name" : "@CorePrep/EnsurePod5",
- "version" : "4.010"
+ "version" : "4.012"
},
{
"class" : "Pod::Weaver::Plugin::H1Nester",
"name" : "@CorePrep/H1Nester",
- "version" : "4.010"
+ "version" : "4.012"
},
{
"class" : "Pod::Weaver::Section::Name",
"name" : "Name",
- "version" : "4.010"
+ "version" : "4.012"
},
{
"class" : "Pod::Weaver::Section::Version",
"name" : "Version",
- "version" : "4.010"
+ "version" : "4.012"
},
{
"class" : "Pod::Weaver::Section::Region",
"name" : "prelude",
- "version" : "4.010"
+ "version" : "4.012"
},
{
"class" : "Pod::Weaver::Section::Generic",
"name" : "SYNOPSIS",
- "version" : "4.010"
+ "version" : "4.012"
},
{
"class" : "Pod::Weaver::Section::Generic",
"name" : "DESCRIPTION",
- "version" : "4.010"
+ "version" : "4.012"
},
{
"class" : "Pod::Weaver::Section::Leftovers",
"name" : "Leftovers",
- "version" : "4.010"
+ "version" : "4.012"
},
{
"class" : "Pod::Weaver::Section::Region",
"name" : "postlude",
- "version" : "4.010"
+ "version" : "4.012"
},
{
"class" : "Pod::Weaver::Section::Authors",
"name" : "Authors",
- "version" : "4.010"
+ "version" : "4.012"
},
{
"class" : "Pod::Weaver::Section::Contributors",
@@ -474,7 +482,7 @@
{
"class" : "Pod::Weaver::Section::Legal",
"name" : "Legal",
- "version" : "4.010"
+ "version" : "4.012"
}
]
}
@@ -524,16 +532,6 @@
"version" : "0.15"
},
{
- "class" : "Dist::Zilla::Plugin::Test::Pod::LinkCheck",
- "name" : "@DROLSKY/Test::Pod::LinkCheck",
- "version" : "1.001"
- },
- {
- "class" : "Dist::Zilla::Plugin::Test::Pod::No404s",
- "name" : "@DROLSKY/Test::Pod::No404s",
- "version" : "1.001"
- },
- {
"class" : "Dist::Zilla::Plugin::Test::Portability",
"name" : "@DROLSKY/Test::Portability",
"version" : "2.000006"
@@ -573,13 +571,13 @@
},
"Dist::Zilla::Role::Git::DirtyFiles" : {
"allow_dirty" : [
- "README.md",
- "cpanfile",
- "LICENSE",
- "Makefile.PL",
"Build.PL",
+ "CONTRIBUTING.md",
"Changes",
- "CONTRIBUTING.md"
+ "LICENSE",
+ "Makefile.PL",
+ "README.md",
+ "cpanfile"
],
"allow_dirty_match" : [],
"changelog" : "Changes"
@@ -589,53 +587,58 @@
}
},
"name" : "@DROLSKY/Git::Check",
- "version" : "2.035"
+ "version" : "2.036"
},
{
"class" : "Dist::Zilla::Plugin::Git::Commit",
"config" : {
"Dist::Zilla::Plugin::Git::Commit" : {
"add_files_in" : [],
- "commit_msg" : "v%v%n%n%c",
- "time_zone" : "local"
+ "commit_msg" : "v%v%n%n%c"
},
"Dist::Zilla::Role::Git::DirtyFiles" : {
"allow_dirty" : [
- "README.md",
- "cpanfile",
- "LICENSE",
- "Makefile.PL",
"Build.PL",
+ "CONTRIBUTING.md",
"Changes",
- "CONTRIBUTING.md"
+ "LICENSE",
+ "Makefile.PL",
+ "README.md",
+ "cpanfile"
],
"allow_dirty_match" : [],
"changelog" : "Changes"
},
"Dist::Zilla::Role::Git::Repo" : {
"repo_root" : "."
+ },
+ "Dist::Zilla::Role::Git::StringFormatter" : {
+ "time_zone" : "local"
}
},
"name" : "@DROLSKY/commit generated files",
- "version" : "2.035"
+ "version" : "2.036"
},
{
"class" : "Dist::Zilla::Plugin::Git::Tag",
"config" : {
"Dist::Zilla::Plugin::Git::Tag" : {
"branch" : null,
+ "changelog" : "Changes",
"signed" : 0,
- "tag" : "v1.20",
+ "tag" : "v1.21",
"tag_format" : "v%v",
- "tag_message" : "v%v",
- "time_zone" : "local"
+ "tag_message" : "v%v"
},
"Dist::Zilla::Role::Git::Repo" : {
"repo_root" : "."
+ },
+ "Dist::Zilla::Role::Git::StringFormatter" : {
+ "time_zone" : "local"
}
},
"name" : "@DROLSKY/Git::Tag",
- "version" : "2.035"
+ "version" : "2.036"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
@@ -651,7 +654,7 @@
}
},
"name" : "@DROLSKY/Git::Push",
- "version" : "2.035"
+ "version" : "2.036"
},
{
"class" : "Dist::Zilla::Plugin::BumpVersionAfterRelease",
@@ -663,13 +666,12 @@
"config" : {
"Dist::Zilla::Plugin::Git::Commit" : {
"add_files_in" : [],
- "commit_msg" : "Bump version after release",
- "time_zone" : "local"
+ "commit_msg" : "Bump version after release"
},
"Dist::Zilla::Role::Git::DirtyFiles" : {
"allow_dirty" : [
- "dist.ini",
- "Changes"
+ "Changes",
+ "dist.ini"
],
"allow_dirty_match" : [
"(?^:.+)"
@@ -678,10 +680,13 @@
},
"Dist::Zilla::Role::Git::Repo" : {
"repo_root" : "."
+ },
+ "Dist::Zilla::Role::Git::StringFormatter" : {
+ "time_zone" : "local"
}
},
"name" : "@DROLSKY/commit version bump",
- "version" : "2.035"
+ "version" : "2.036"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
@@ -697,7 +702,17 @@
}
},
"name" : "@DROLSKY/push version bump",
- "version" : "2.035"
+ "version" : "2.036"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Test::Pod::LinkCheck",
+ "name" : "@DROLSKY/Test::Pod::LinkCheck",
+ "version" : "1.002"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Test::Pod::No404s",
+ "name" : "@DROLSKY/Test::Pod::No404s",
+ "version" : "1.002"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/META.yml
new/Params-Validate-1.21/META.yml
--- old/Params-Validate-1.20/META.yml 2015-06-28 16:34:36.000000000 +0200
+++ new/Params-Validate-1.21/META.yml 2015-07-18 17:38:41.000000000 +0200
@@ -27,29 +27,24 @@
version: '1.4'
name: Params-Validate
provides:
- Attribute::Params::Validate:
- file: lib/Attribute/Params/Validate.pm
- version: '1.20'
Params::Validate:
file: lib/Params/Validate.pm
- version: '1.20'
+ version: '1.21'
Params::Validate::Constants:
file: lib/Params/Validate/Constants.pm
- version: '1.20'
+ version: '1.21'
Params::Validate::PP:
file: lib/Params/Validate/PP.pm
- version: '1.20'
+ version: '1.21'
Params::Validate::XS:
file: lib/Params/Validate/XS.pm
- version: '1.20'
+ version: '1.21'
requires:
- Attribute::Handlers: '0.79'
Carp: '0'
Exporter: '0'
Module::Implementation: '0'
Scalar::Util: '1.10'
XSLoader: '0'
- attributes: '0'
perl: '5.008001'
strict: '0'
vars: '0'
@@ -58,10 +53,10 @@
bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=Params-Validate
homepage: http://metacpan.org/release/Params-Validate
repository: git://github.com/autarch/Params-Validate.git
-version: '1.20'
+version: '1.21'
x_Dist_Zilla:
perl:
- version: '5.020001'
+ version: '5.022000'
plugins:
-
class: Dist::Zilla::Plugin::Authority
@@ -80,11 +75,11 @@
config:
Dist::Zilla::Plugin::GatherDir:
exclude_filename:
+ - Build.PL
+ - LICENSE
- README.md
- cpanfile
- - LICENSE
- Makefile.PL
- - Build.PL
exclude_match: []
follow_symlinks: '0'
include_dotfiles: '0'
@@ -92,9 +87,9 @@
prune_directory: []
root: .
Dist::Zilla::Plugin::Git::GatherDir:
- include_untracked: '0'
+ include_untracked: 0
name: '@DROLSKY/Git::GatherDir'
- version: '2.035'
+ version: '2.036'
-
class: Dist::Zilla::Plugin::GitHub::Meta
name: '@DROLSKY/GitHub::Meta'
@@ -158,10 +153,16 @@
version: '0.045'
-
class: Dist::Zilla::Plugin::ReadmeAnyFromPod
+ config:
+ Dist::Zilla::Role::FileWatcher:
+ version: '0.006'
name: '@DROLSKY/README.md in build'
version: '0.150250'
-
class: Dist::Zilla::Plugin::ReadmeAnyFromPod
+ config:
+ Dist::Zilla::Role::FileWatcher:
+ version: '0.006'
name: '@DROLSKY/README.md in root'
version: '0.150250'
-
@@ -231,15 +232,15 @@
-
class: Dist::Zilla::Plugin::DROLSKY::Contributors
name: '@DROLSKY/DROLSKY::Contributors'
- version: '0.34'
+ version: '0.36'
-
class: Dist::Zilla::Plugin::DROLSKY::License
name: '@DROLSKY/DROLSKY::License'
- version: '0.34'
+ version: '0.36'
-
class: Dist::Zilla::Plugin::DROLSKY::TidyAll
name: '@DROLSKY/DROLSKY::TidyAll'
- version: '0.34'
+ version: '0.36'
-
class: Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch
config:
@@ -258,12 +259,13 @@
class: Dist::Zilla::Plugin::Git::Contributors
config:
Dist::Zilla::Plugin::Git::Contributors:
- include_authors: '0'
- include_releaser: '1'
+ include_authors: 0
+ include_releaser: 1
order_by: name
- paths: []
+ paths:
+ - .
name: '@DROLSKY/Git::Contributors'
- version: '0.011'
+ version: '0.012'
-
class: Dist::Zilla::Plugin::InstallGuide
name: '@DROLSKY/InstallGuide'
@@ -295,43 +297,43 @@
-
class: Pod::Weaver::Plugin::EnsurePod5
name: '@CorePrep/EnsurePod5'
- version: '4.010'
+ version: '4.012'
-
class: Pod::Weaver::Plugin::H1Nester
name: '@CorePrep/H1Nester'
- version: '4.010'
+ version: '4.012'
-
class: Pod::Weaver::Section::Name
name: Name
- version: '4.010'
+ version: '4.012'
-
class: Pod::Weaver::Section::Version
name: Version
- version: '4.010'
+ version: '4.012'
-
class: Pod::Weaver::Section::Region
name: prelude
- version: '4.010'
+ version: '4.012'
-
class: Pod::Weaver::Section::Generic
name: SYNOPSIS
- version: '4.010'
+ version: '4.012'
-
class: Pod::Weaver::Section::Generic
name: DESCRIPTION
- version: '4.010'
+ version: '4.012'
-
class: Pod::Weaver::Section::Leftovers
name: Leftovers
- version: '4.010'
+ version: '4.012'
-
class: Pod::Weaver::Section::Region
name: postlude
- version: '4.010'
+ version: '4.012'
-
class: Pod::Weaver::Section::Authors
name: Authors
- version: '4.010'
+ version: '4.012'
-
class: Pod::Weaver::Section::Contributors
name: Contributors
@@ -339,7 +341,7 @@
-
class: Pod::Weaver::Section::Legal
name: Legal
- version: '4.010'
+ version: '4.012'
name: '@DROLSKY/SurgicalPodWeaver'
version: '0.0023'
-
@@ -374,14 +376,6 @@
name: '@DROLSKY/Test::NoTabs'
version: '0.15'
-
- class: Dist::Zilla::Plugin::Test::Pod::LinkCheck
- name: '@DROLSKY/Test::Pod::LinkCheck'
- version: '1.001'
- -
- class: Dist::Zilla::Plugin::Test::Pod::No404s
- name: '@DROLSKY/Test::Pod::No404s'
- version: '1.001'
- -
class: Dist::Zilla::Plugin::Test::Portability
name: '@DROLSKY/Test::Portability'
version: '2.000006'
@@ -413,55 +407,58 @@
untracked_files: die
Dist::Zilla::Role::Git::DirtyFiles:
allow_dirty:
- - README.md
- - cpanfile
- - LICENSE
- - Makefile.PL
- Build.PL
- - Changes
- CONTRIBUTING.md
+ - Changes
+ - LICENSE
+ - Makefile.PL
+ - README.md
+ - cpanfile
allow_dirty_match: []
changelog: Changes
Dist::Zilla::Role::Git::Repo:
repo_root: .
name: '@DROLSKY/Git::Check'
- version: '2.035'
+ version: '2.036'
-
class: Dist::Zilla::Plugin::Git::Commit
config:
Dist::Zilla::Plugin::Git::Commit:
add_files_in: []
commit_msg: v%v%n%n%c
- time_zone: local
Dist::Zilla::Role::Git::DirtyFiles:
allow_dirty:
- - README.md
- - cpanfile
- - LICENSE
- - Makefile.PL
- Build.PL
- - Changes
- CONTRIBUTING.md
+ - Changes
+ - LICENSE
+ - Makefile.PL
+ - README.md
+ - cpanfile
allow_dirty_match: []
changelog: Changes
Dist::Zilla::Role::Git::Repo:
repo_root: .
+ Dist::Zilla::Role::Git::StringFormatter:
+ time_zone: local
name: '@DROLSKY/commit generated files'
- version: '2.035'
+ version: '2.036'
-
class: Dist::Zilla::Plugin::Git::Tag
config:
Dist::Zilla::Plugin::Git::Tag:
branch: ~
+ changelog: Changes
signed: 0
- tag: v1.20
+ tag: v1.21
tag_format: v%v
tag_message: v%v
- time_zone: local
Dist::Zilla::Role::Git::Repo:
repo_root: .
+ Dist::Zilla::Role::Git::StringFormatter:
+ time_zone: local
name: '@DROLSKY/Git::Tag'
- version: '2.035'
+ version: '2.036'
-
class: Dist::Zilla::Plugin::Git::Push
config:
@@ -472,7 +469,7 @@
Dist::Zilla::Role::Git::Repo:
repo_root: .
name: '@DROLSKY/Git::Push'
- version: '2.035'
+ version: '2.036'
-
class: Dist::Zilla::Plugin::BumpVersionAfterRelease
name: '@DROLSKY/BumpVersionAfterRelease'
@@ -483,18 +480,19 @@
Dist::Zilla::Plugin::Git::Commit:
add_files_in: []
commit_msg: 'Bump version after release'
- time_zone: local
Dist::Zilla::Role::Git::DirtyFiles:
allow_dirty:
- - dist.ini
- Changes
+ - dist.ini
allow_dirty_match:
- (?^:.+)
changelog: Changes
Dist::Zilla::Role::Git::Repo:
repo_root: .
+ Dist::Zilla::Role::Git::StringFormatter:
+ time_zone: local
name: '@DROLSKY/commit version bump'
- version: '2.035'
+ version: '2.036'
-
class: Dist::Zilla::Plugin::Git::Push
config:
@@ -505,7 +503,15 @@
Dist::Zilla::Role::Git::Repo:
repo_root: .
name: '@DROLSKY/push version bump'
- version: '2.035'
+ version: '2.036'
+ -
+ class: Dist::Zilla::Plugin::Test::Pod::LinkCheck
+ name: '@DROLSKY/Test::Pod::LinkCheck'
+ version: '1.002'
+ -
+ class: Dist::Zilla::Plugin::Test::Pod::No404s
+ name: '@DROLSKY/Test::Pod::No404s'
+ version: '1.002'
-
class: Dist::Zilla::Plugin::Prereqs
config:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/README.md
new/Params-Validate-1.21/README.md
--- old/Params-Validate-1.20/README.md 2015-06-28 16:34:36.000000000 +0200
+++ new/Params-Validate-1.21/README.md 2015-07-18 17:38:41.000000000 +0200
@@ -4,7 +4,7 @@
VERSION
- version 1.20
+ version 1.21
SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/cpanfile
new/Params-Validate-1.21/cpanfile
--- old/Params-Validate-1.20/cpanfile 2015-06-28 16:34:36.000000000 +0200
+++ new/Params-Validate-1.21/cpanfile 2015-07-18 17:38:41.000000000 +0200
@@ -1,10 +1,8 @@
-requires "Attribute::Handlers" => "0.79";
requires "Carp" => "0";
requires "Exporter" => "0";
requires "Module::Implementation" => "0";
requires "Scalar::Util" => "1.10";
requires "XSLoader" => "0";
-requires "attributes" => "0";
requires "perl" => "5.008001";
requires "strict" => "0";
requires "vars" => "0";
@@ -53,6 +51,8 @@
requires "Test::NoTabs" => "0";
requires "Test::Pod" => "1.41";
requires "Test::Pod::Coverage" => "1.08";
+ requires "Test::Pod::LinkCheck" => "0";
+ requires "Test::Pod::No404s" => "0";
requires "Test::Spelling" => "0.12";
requires "Test::Synopsis" => "0";
requires "Test::Taint" => "0.02";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Params-Validate-1.20/lib/Attribute/Params/Validate.pm
new/Params-Validate-1.21/lib/Attribute/Params/Validate.pm
--- old/Params-Validate-1.20/lib/Attribute/Params/Validate.pm 2015-06-28
16:34:36.000000000 +0200
+++ new/Params-Validate-1.21/lib/Attribute/Params/Validate.pm 1970-01-01
01:00:00.000000000 +0100
@@ -1,208 +0,0 @@
-package Attribute::Params::Validate;
-
-use strict;
-use warnings;
-
-our $VERSION = '1.20';
-
-use attributes;
-
-use Attribute::Handlers 0.79;
-
-# this will all be re-exported
-use Params::Validate qw(:all);
-
-require Exporter;
-
-our @ISA = qw(Exporter);
-
-my %tags = (
- types => [
- qw( SCALAR ARRAYREF HASHREF CODEREF GLOB GLOBREF SCALARREF HANDLE
UNDEF OBJECT )
- ],
-);
-
-our %EXPORT_TAGS = (
- 'all' => [ qw( validation_options ), map { @{ $tags{$_} } } keys %tags ],
- %tags,
-);
-our @EXPORT_OK = ( @{ $EXPORT_TAGS{all} }, 'validation_options' );
-
-
-sub UNIVERSAL::Validate : ATTR(CODE, INIT) {
- _wrap_sub( 'named', @_ );
-}
-
-sub UNIVERSAL::ValidatePos : ATTR(CODE, INIT) {
- _wrap_sub( 'positional', @_ );
-}
-
-sub _wrap_sub {
- my ( $type, $package, $symbol, $referent, $attr, $params ) = @_;
-
- my @p = ref $params ? @{$params} : $params;
-
- my $subname = $package . '::' . *{$symbol}{NAME};
-
- my %attributes = map { $_ => 1 } attributes::get($referent);
- my $is_method = $attributes{method};
-
- {
- no warnings 'redefine';
- no strict 'refs';
-
- # An unholy mixture of closure and eval. This is done so that
- # the code to automatically create the relevant scalars from
- # the hash of params can create the scalars in the proper
- # place lexically.
-
- my $code = <<"EOF";
-sub
-{
- package $package;
-EOF
-
- $code .= " my \$object = shift;\n" if $is_method;
-
- if ( $type eq 'named' ) {
- $params = {@p};
- $code .= " Params::Validate::validate(\@_, \$params);\n";
- }
- else {
- $code .= " Params::Validate::validate_pos(\@_, \@p);\n";
- }
-
- $code .= " unshift \@_, \$object if \$object;\n" if $is_method;
-
- $code .= <<"EOF";
- \$referent->(\@_);
-}
-EOF
-
- my $sub = eval $code;
- die $@ if $@;
-
- *{$subname} = $sub;
- }
-}
-
-1;
-
-# ABSTRACT: Define validation through subroutine attributes
-
-__END__
-
-=pod
-
-=head1 NAME
-
-Attribute::Params::Validate - Define validation through subroutine attributes
-
-=head1 VERSION
-
-version 1.20
-
-=head1 SYNOPSIS
-
- use Attribute::Params::Validate qw(:all);
-
- # takes named params (hash or hashref)
- # foo is mandatory, bar is optional
- sub foo : Validate( foo => 1, bar => 0 )
- {
- # insert code here
- }
-
- # takes positional params
- # first two are mandatory, third is optional
- sub bar : ValidatePos( 1, 1, 0 )
- {
- # insert code here
- }
-
- # for some reason Perl insists that the entire attribute be on one line
- sub foo2 : Validate( foo => { type => ARRAYREF }, bar => { can => [ 'print',
'flush', 'frobnicate' ] }, baz => { type => SCALAR, callbacks => { 'numbers
only' => sub { shift() =~ /^\d+$/ }, 'less than 90' => sub { shift() < 90 } } }
)
- {
- # insert code here
- }
-
- # note that this is marked as a method. This is very important!
- sub baz : Validate( foo => { type => ARRAYREF }, bar => { isa =>
'Frobnicator' } ) method
- {
- # insert code here
- }
-
-=head1 DESCRIPTION
-
-The Attribute::Params::Validate module allows you to validate method
-or function call parameters just like Params::Validate does. However,
-this module allows you to specify your validation spec as an
-attribute, rather than by calling the C<validate> routine.
-
-Please see Params::Validate for more information on how you can
-specify what validation is performed.
-
-=head2 EXPORT
-
-This module exports everything that Params::Validate does except for
-the C<validate> and C<validate_pos> subroutines.
-
-=head2 ATTRIBUTES
-
-=over 4
-
-=item * Validate
-
-This attribute corresponds to the C<validate> subroutine in
-Params::Validate.
-
-=item * ValidatePos
-
-This attribute corresponds to the C<validate_pos> subroutine in
-Params::Validate.
-
-=back
-
-=head2 OO
-
-If you are using this module to mark B<methods> for validation, as
-opposed to subroutines, it is crucial that you mark these methods with
-the C<:method> attribute, as well as the C<Validate> or C<ValidatePos>
-attribute.
-
-If you do not do this, then the object or class used in the method
-call will be passed to the validation routines, which is probably not
-what you want.
-
-=head2 CAVEATS
-
-You B<must> put all the arguments to the C<Validate> or C<ValidatePos>
-attribute on a single line, or Perl will complain.
-
-=head1 SEE ALSO
-
-Params::Validate
-
-=head1 AUTHORS
-
-=over 4
-
-=item *
-
-Dave Rolsky <[email protected]>
-
-=item *
-
-Ilya Martynov <[email protected]>
-
-=back
-
-=head1 COPYRIGHT AND LICENSE
-
-This software is Copyright (c) 2001 - 2015 by Dave Rolsky and Ilya Martynov.
-
-This is free software, licensed under:
-
- The Artistic License 2.0 (GPL Compatible)
-
-=cut
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Params-Validate-1.20/lib/Params/Validate/Constants.pm
new/Params-Validate-1.21/lib/Params/Validate/Constants.pm
--- old/Params-Validate-1.20/lib/Params/Validate/Constants.pm 2015-06-28
16:34:36.000000000 +0200
+++ new/Params-Validate-1.21/lib/Params/Validate/Constants.pm 2015-07-18
17:38:41.000000000 +0200
@@ -3,7 +3,7 @@
use strict;
use warnings;
-our $VERSION = '1.20';
+our $VERSION = '1.21';
our @ISA = 'Exporter';
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/lib/Params/Validate/PP.pm
new/Params-Validate-1.21/lib/Params/Validate/PP.pm
--- old/Params-Validate-1.20/lib/Params/Validate/PP.pm 2015-06-28
16:34:36.000000000 +0200
+++ new/Params-Validate-1.21/lib/Params/Validate/PP.pm 2015-07-18
17:38:41.000000000 +0200
@@ -3,7 +3,7 @@
use strict;
use warnings;
-our $VERSION = '1.20';
+our $VERSION = '1.21';
use Params::Validate::Constants;
use Scalar::Util 1.10 ();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/lib/Params/Validate/XS.pm
new/Params-Validate-1.21/lib/Params/Validate/XS.pm
--- old/Params-Validate-1.20/lib/Params/Validate/XS.pm 2015-06-28
16:34:36.000000000 +0200
+++ new/Params-Validate-1.21/lib/Params/Validate/XS.pm 2015-07-18
17:38:41.000000000 +0200
@@ -3,7 +3,7 @@
use strict;
use warnings;
-our $VERSION = '1.20';
+our $VERSION = '1.21';
use Carp;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/lib/Params/Validate.pm
new/Params-Validate-1.21/lib/Params/Validate.pm
--- old/Params-Validate-1.20/lib/Params/Validate.pm 2015-06-28
16:34:36.000000000 +0200
+++ new/Params-Validate-1.21/lib/Params/Validate.pm 2015-07-18
17:38:41.000000000 +0200
@@ -5,7 +5,7 @@
use strict;
use warnings;
-our $VERSION = '1.20';
+our $VERSION = '1.21';
use Exporter;
use Module::Implementation;
@@ -75,7 +75,7 @@
=head1 VERSION
-version 1.20
+version 1.21
=head1 SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/lib/Params/ValidatePP.pm
new/Params-Validate-1.21/lib/Params/ValidatePP.pm
--- old/Params-Validate-1.20/lib/Params/ValidatePP.pm 2015-06-28
16:34:36.000000000 +0200
+++ new/Params-Validate-1.21/lib/Params/ValidatePP.pm 2015-07-18
17:38:41.000000000 +0200
@@ -1,7 +1,7 @@
package # hide from PAUSE
Params::Validate;
-our $VERSION = '1.20';
+our $VERSION = '1.21';
BEGIN { $ENV{PARAMS_VALIDATE_IMPLEMENTATION} = 'PP' }
use Params::Validate;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/lib/Params/ValidateXS.pm
new/Params-Validate-1.21/lib/Params/ValidateXS.pm
--- old/Params-Validate-1.20/lib/Params/ValidateXS.pm 2015-06-28
16:34:36.000000000 +0200
+++ new/Params-Validate-1.21/lib/Params/ValidateXS.pm 2015-07-18
17:38:41.000000000 +0200
@@ -1,7 +1,7 @@
package # hide from PAUSE
Params::Validate;
-our $VERSION = '1.20';
+our $VERSION = '1.21';
BEGIN { $ENV{PARAMS_VALIDATE_IMPLEMENTATION} = 'XS' }
use Params::Validate;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/t/00-report-prereqs.dd
new/Params-Validate-1.21/t/00-report-prereqs.dd
--- old/Params-Validate-1.20/t/00-report-prereqs.dd 2015-06-28
16:34:36.000000000 +0200
+++ new/Params-Validate-1.21/t/00-report-prereqs.dd 2015-07-18
17:38:41.000000000 +0200
@@ -26,6 +26,8 @@
'Test::NoTabs' => '0',
'Test::Pod' => '1.41',
'Test::Pod::Coverage' => '1.08',
+ 'Test::Pod::LinkCheck' => '0',
+ 'Test::Pod::No404s' => '0',
'Test::Spelling' => '0.12',
'Test::Synopsis' => '0',
'Test::Taint' => '0.02'
@@ -33,13 +35,11 @@
},
'runtime' => {
'requires' => {
- 'Attribute::Handlers' => '0.79',
'Carp' => '0',
'Exporter' => '0',
'Module::Implementation' => '0',
'Scalar::Util' => '1.10',
'XSLoader' => '0',
- 'attributes' => '0',
'perl' => '5.008001',
'strict' => '0',
'vars' => '0',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/t/03-attribute.t
new/Params-Validate-1.21/t/03-attribute.t
--- old/Params-Validate-1.20/t/03-attribute.t 2015-06-28 16:34:36.000000000
+0200
+++ new/Params-Validate-1.21/t/03-attribute.t 1970-01-01 01:00:00.000000000
+0100
@@ -1,101 +0,0 @@
-use strict;
-use warnings;
-
-use File::Spec;
-use lib File::Spec->catdir( 't', 'lib' );
-
-use PVTests;
-use Test::More;
-
-use Attribute::Params::Validate;
-use Params::Validate qw(:all);
-
-sub foo : Validate( c => { type => SCALAR } ) {
- my %data = @_;
- return $data{c};
-}
-
-sub bar : Validate( c => { type => SCALAR } ) method {
- my $self = shift;
- my %data = @_;
- return $data{c};
-}
-
-sub baz :
- Validate( foo => { type => ARRAYREF, callbacks => { '5 elements' => sub {
@{shift()} == 5 } } } )
-{
- my %data = @_;
- return $data{foo}->[0];
-}
-
-sub buz : ValidatePos( 1 ) {
- return $_[0];
-}
-
-sub quux : ValidatePos( { type => SCALAR }, 1 ) {
- return $_[0];
-}
-
-my $res = eval { foo( c => 1 ) };
-is(
- $@, q{},
- "Call foo with a scalar"
-);
-
-is(
- $res, 1,
- 'Check return value from foo( c => 1 )'
-);
-
-eval { foo( c => [] ) };
-
-like(
- $@, qr/The 'c' parameter .* was an 'arrayref'/,
- 'Check exception thrown from foo( c => [] )'
-);
-
-$res = eval { main->bar( c => 1 ) };
-is(
- $@, q{},
- 'Call bar with a scalar'
-);
-
-is(
- $res, 1,
- 'Check return value from bar( c => 1 )'
-);
-
-eval { baz( foo => [ 1, 2, 3, 4 ] ) };
-
-like(
- $@, qr/The 'foo' parameter .* did not pass the '5 elements' callback/,
- 'Check exception thrown from baz( foo => [1,2,3,4] )'
-);
-
-$res = eval { baz( foo => [ 5, 4, 3, 2, 1 ] ) };
-
-is(
- $@, q{},
- 'Call baz( foo => [5,4,3,2,1] )'
-);
-
-is(
- $res, 5,
- 'Check return value from baz( foo => [5,4,3,2,1] )'
-);
-
-eval { buz( [], 1 ) };
-
-like(
- $@, qr/2 parameters were passed to .* but 1 was expected/,
- 'Check exception thrown from quux( [], 1 )'
-);
-
-$res = eval { quux( 1, [] ) };
-
-is(
- $@, q{},
- 'Call quux'
-);
-
-done_testing();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/t/author-00-compile.t
new/Params-Validate-1.21/t/author-00-compile.t
--- old/Params-Validate-1.20/t/author-00-compile.t 2015-06-28
16:34:36.000000000 +0200
+++ new/Params-Validate-1.21/t/author-00-compile.t 2015-07-18
17:38:41.000000000 +0200
@@ -14,10 +14,9 @@
use Test::More;
-plan tests => 8;
+plan tests => 7;
my @module_files = (
- 'Attribute/Params/Validate.pm',
'Params/Validate.pm',
'Params/Validate/Constants.pm',
'Params/Validate/PP.pm',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/t/author-eol.t
new/Params-Validate-1.21/t/author-eol.t
--- old/Params-Validate-1.20/t/author-eol.t 2015-06-28 16:34:36.000000000
+0200
+++ new/Params-Validate-1.21/t/author-eol.t 2015-07-18 17:38:41.000000000
+0200
@@ -15,7 +15,6 @@
use Test::EOL;
my @files = (
- 'lib/Attribute/Params/Validate.pm',
'lib/Params/Validate.pm',
'lib/Params/Validate/Constants.pm',
'lib/Params/Validate/PP.pm',
@@ -26,7 +25,6 @@
't/00-report-prereqs.t',
't/01-validate.t',
't/02-noop.t',
- 't/03-attribute.t',
't/04-defaults.t',
't/05-noop_default.t',
't/06-options.t',
@@ -80,7 +78,6 @@
't/release-portability.t',
't/release-pp-01-validate.t',
't/release-pp-02-noop.t',
- 't/release-pp-03-attribute.t',
't/release-pp-04-defaults.t',
't/release-pp-05-noop_default.t',
't/release-pp-06-options.t',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/t/author-no-tabs.t
new/Params-Validate-1.21/t/author-no-tabs.t
--- old/Params-Validate-1.20/t/author-no-tabs.t 2015-06-28 16:34:36.000000000
+0200
+++ new/Params-Validate-1.21/t/author-no-tabs.t 2015-07-18 17:38:41.000000000
+0200
@@ -15,7 +15,6 @@
use Test::NoTabs;
my @files = (
- 'lib/Attribute/Params/Validate.pm',
'lib/Params/Validate.pm',
'lib/Params/Validate/Constants.pm',
'lib/Params/Validate/PP.pm',
@@ -26,7 +25,6 @@
't/00-report-prereqs.t',
't/01-validate.t',
't/02-noop.t',
- 't/03-attribute.t',
't/04-defaults.t',
't/05-noop_default.t',
't/06-options.t',
@@ -80,7 +78,6 @@
't/release-portability.t',
't/release-pp-01-validate.t',
't/release-pp-02-noop.t',
- 't/release-pp-03-attribute.t',
't/release-pp-04-defaults.t',
't/release-pp-05-noop_default.t',
't/release-pp-06-options.t',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/t/author-pod-spell.t
new/Params-Validate-1.21/t/author-pod-spell.t
--- old/Params-Validate-1.20/t/author-pod-spell.t 2015-06-28
16:34:36.000000000 +0200
+++ new/Params-Validate-1.21/t/author-pod-spell.t 2015-07-18
17:38:41.000000000 +0200
@@ -54,7 +54,6 @@
Pit
perl
lib
-Attribute
Params
Validate
Constants
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/t/release-memory-leak.t
new/Params-Validate-1.21/t/release-memory-leak.t
--- old/Params-Validate-1.20/t/release-memory-leak.t 2015-06-28
16:34:36.000000000 +0200
+++ new/Params-Validate-1.21/t/release-memory-leak.t 2015-07-18
17:38:41.000000000 +0200
@@ -9,14 +9,8 @@
use strict;
use warnings;
-use Test::More;
-
-BEGIN {
- plan skip_all => q{Test::LeakTrace doesn't install with blead (as of
5.21.8)}
- if $] >= 5.021008;
-}
-
use Test::LeakTrace qw( no_leaks_ok );
+use Test::More;
use Params::Validate qw( validate );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Params-Validate-1.20/t/release-pp-03-attribute.t
new/Params-Validate-1.21/t/release-pp-03-attribute.t
--- old/Params-Validate-1.20/t/release-pp-03-attribute.t 2015-06-28
16:34:36.000000000 +0200
+++ new/Params-Validate-1.21/t/release-pp-03-attribute.t 1970-01-01
01:00:00.000000000 +0100
@@ -1,114 +0,0 @@
-
-
-use Test::More;
-
-BEGIN {
- unless ( $ENV{RELEASE_TESTING} ) {
- plan skip_all => 'these tests are for release testing';
- }
-
- $ENV{PV_TEST_PERL} = 1;
-}
-
-use strict;
-use warnings;
-
-use File::Spec;
-use lib File::Spec->catdir( 't', 'lib' );
-
-use PVTests;
-use Test::More;
-
-use Attribute::Params::Validate;
-use Params::Validate qw(:all);
-
-sub foo : Validate( c => { type => SCALAR } ) {
- my %data = @_;
- return $data{c};
-}
-
-sub bar : Validate( c => { type => SCALAR } ) method {
- my $self = shift;
- my %data = @_;
- return $data{c};
-}
-
-sub baz :
- Validate( foo => { type => ARRAYREF, callbacks => { '5 elements' => sub {
@{shift()} == 5 } } } )
-{
- my %data = @_;
- return $data{foo}->[0];
-}
-
-sub buz : ValidatePos( 1 ) {
- return $_[0];
-}
-
-sub quux : ValidatePos( { type => SCALAR }, 1 ) {
- return $_[0];
-}
-
-my $res = eval { foo( c => 1 ) };
-is(
- $@, q{},
- "Call foo with a scalar"
-);
-
-is(
- $res, 1,
- 'Check return value from foo( c => 1 )'
-);
-
-eval { foo( c => [] ) };
-
-like(
- $@, qr/The 'c' parameter .* was an 'arrayref'/,
- 'Check exception thrown from foo( c => [] )'
-);
-
-$res = eval { main->bar( c => 1 ) };
-is(
- $@, q{},
- 'Call bar with a scalar'
-);
-
-is(
- $res, 1,
- 'Check return value from bar( c => 1 )'
-);
-
-eval { baz( foo => [ 1, 2, 3, 4 ] ) };
-
-like(
- $@, qr/The 'foo' parameter .* did not pass the '5 elements' callback/,
- 'Check exception thrown from baz( foo => [1,2,3,4] )'
-);
-
-$res = eval { baz( foo => [ 5, 4, 3, 2, 1 ] ) };
-
-is(
- $@, q{},
- 'Call baz( foo => [5,4,3,2,1] )'
-);
-
-is(
- $res, 5,
- 'Check return value from baz( foo => [5,4,3,2,1] )'
-);
-
-eval { buz( [], 1 ) };
-
-like(
- $@, qr/2 parameters were passed to .* but 1 was expected/,
- 'Check exception thrown from quux( [], 1 )'
-);
-
-$res = eval { quux( 1, [] ) };
-
-is(
- $@, q{},
- 'Call quux'
-);
-
-done_testing();
-