diff -Nru libnumber-tolerant-perl-1.701/Changes libnumber-tolerant-perl-1.702/Changes --- libnumber-tolerant-perl-1.701/Changes 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/Changes 2013-10-07 14:22:23.000000000 +0000 @@ -1,5 +1,12 @@ Revision history for Number::Tolerant +1.702 2013-10-07 10:22:17 America/New_York + update bugtracker + + avoid circular loading problems (with a nasty hack) + + fix spelling error; thanks, Alexandre Mestiashvili! + 1.701 2010-11-29 include Test::Tolerant diff -Nru libnumber-tolerant-perl-1.701/LICENSE libnumber-tolerant-perl-1.702/LICENSE --- libnumber-tolerant-perl-1.701/LICENSE 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/LICENSE 2013-10-07 14:22:23.000000000 +0000 @@ -18,15 +18,16 @@ The GNU General Public License, Version 1, February 1989 - GNU GENERAL PUBLIC LICENSE - Version 1, February 1989 + GNU GENERAL PUBLIC LICENSE + Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA + 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA + Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - Preamble + Preamble The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public @@ -67,7 +68,7 @@ The precise terms and conditions for copying, distribution and modification follow. - GNU GENERAL PUBLIC LICENSE + GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any program or other work which @@ -185,7 +186,7 @@ of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. - NO WARRANTY + NO WARRANTY 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN @@ -207,9 +208,9 @@ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - END OF TERMS AND CONDITIONS + END OF TERMS AND CONDITIONS - Appendix: How to Apply These Terms to Your New Programs + Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it @@ -235,8 +236,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA + Also add information on how to contact you by electronic and paper mail. diff -Nru libnumber-tolerant-perl-1.701/MANIFEST libnumber-tolerant-perl-1.702/MANIFEST --- libnumber-tolerant-perl-1.701/MANIFEST 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/MANIFEST 2013-10-07 14:22:23.000000000 +0000 @@ -21,7 +21,8 @@ lib/Number/Tolerant/Type/to.pm lib/Number/Tolerant/Union.pm lib/Test/Tolerant.pm -t/00-load.t +t/00-compile.t +t/000-report-versions-tiny.t t/and_constant.t t/and_tolerance.t t/bad_method.t @@ -39,7 +40,6 @@ t/plusminus_0.t t/plusminus_pct.t t/plusminus_pct_0.t -t/release-pod-syntax.t t/stringify_as.t t/test.t t/union.t @@ -48,3 +48,5 @@ t/x_to_x.t t/x_to_y.t t/y_to_x.t +xt/release/changes_has_content.t +xt/release/pod-syntax.t diff -Nru libnumber-tolerant-perl-1.701/META.json libnumber-tolerant-perl-1.702/META.json --- libnumber-tolerant-perl-1.701/META.json 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/META.json 2013-10-07 14:22:23.000000000 +0000 @@ -4,7 +4,7 @@ "Ricardo Signes " ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 4.102345, CPAN::Meta::Converter version 2.102400", + "generated_by" : "Dist::Zilla version 4.300039, CPAN::Meta::Converter version 2.132661", "license" : [ "perl_5" ], @@ -16,147 +16,203 @@ "prereqs" : { "configure" : { "requires" : { - "ExtUtils::MakeMaker" : "6.31" + "ExtUtils::MakeMaker" : "6.30" + } + }, + "develop" : { + "requires" : { + "Test::Pod" : "1.41", + "version" : "0.9901" } }, "runtime" : { "requires" : { - "Carp" : 0, - "Math::BigFloat" : 0, - "Math::BigRat" : 0, - "Scalar::Util" : 0, + "Carp" : "0", + "Math::BigFloat" : "0", + "Math::BigRat" : "0", + "Scalar::Util" : "0", "Sub::Exporter" : "0.950", - "Sub::Exporter::Util" : 0, - "Test::Builder" : 0, - "overload" : 0 + "Sub::Exporter::Util" : "0", + "Test::Builder" : "0", + "overload" : "0", + "parent" : "0", + "strict" : "0", + "warnings" : "0" } }, "test" : { "requires" : { + "File::Spec" : "0", + "IO::Handle" : "0", + "IPC::Open3" : "0", "Test::More" : "0.96", - "Test::Tester" : 0 + "Test::Tester" : "0", + "base" : "0" } } }, "release_status" : "stable", "resources" : { + "bugtracker" : { + "web" : "https://github.com/rjbs/Number-Tolerant/issues" + }, + "homepage" : "https://github.com/rjbs/Number-Tolerant", "repository" : { "type" : "git", - "url" : "git://git.codesimply.com/Number-Tolerant.git" + "url" : "https://github.com/rjbs/Number-Tolerant.git", + "web" : "https://github.com/rjbs/Number-Tolerant" } }, - "version" : "1.701", + "version" : "1.702", "x_Dist_Zilla" : { + "perl" : { + "version" : "5.019004" + }, "plugins" : [ { - "class" : "Dist::Zilla::Plugin::GatherDir", - "name" : "@RJBS/@Basic/GatherDir", - "version" : "4.102345" + "class" : "Dist::Zilla::Plugin::Git::GatherDir", + "name" : "@RJBS/Git::GatherDir", + "version" : "2.014" + }, + { + "class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed", + "name" : "@RJBS/CheckPrereqsIndexed", + "version" : "0.009" + }, + { + "class" : "Dist::Zilla::Plugin::CheckExtraTests", + "name" : "@RJBS/CheckExtraTests", + "version" : "0.011" + }, + { + "class" : "Dist::Zilla::Plugin::PromptIfStale", + "name" : "@RJBS/RJBS-Outdated", + "version" : "0.007" + }, + { + "class" : "Dist::Zilla::Plugin::PromptIfStale", + "name" : "@RJBS/CPAN-Outdated", + "version" : "0.007" }, { "class" : "Dist::Zilla::Plugin::PruneCruft", - "name" : "@RJBS/@Basic/PruneCruft", - "version" : "4.102345" + "name" : "@RJBS/@Filter/PruneCruft", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", - "name" : "@RJBS/@Basic/ManifestSkip", - "version" : "4.102345" + "name" : "@RJBS/@Filter/ManifestSkip", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", - "name" : "@RJBS/@Basic/MetaYAML", - "version" : "4.102345" + "name" : "@RJBS/@Filter/MetaYAML", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::License", - "name" : "@RJBS/@Basic/License", - "version" : "4.102345" + "name" : "@RJBS/@Filter/License", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::Readme", - "name" : "@RJBS/@Basic/Readme", - "version" : "4.102345" - }, - { - "class" : "Dist::Zilla::Plugin::ExtraTests", - "name" : "@RJBS/@Basic/ExtraTests", - "version" : "4.102345" + "name" : "@RJBS/@Filter/Readme", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::ExecDir", - "name" : "@RJBS/@Basic/ExecDir", - "version" : "4.102345" + "name" : "@RJBS/@Filter/ExecDir", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::ShareDir", - "name" : "@RJBS/@Basic/ShareDir", - "version" : "4.102345" + "name" : "@RJBS/@Filter/ShareDir", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::MakeMaker", - "name" : "@RJBS/@Basic/MakeMaker", - "version" : "4.102345" + "name" : "@RJBS/@Filter/MakeMaker", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::Manifest", - "name" : "@RJBS/@Basic/Manifest", - "version" : "4.102345" + "name" : "@RJBS/@Filter/Manifest", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::TestRelease", - "name" : "@RJBS/@Basic/TestRelease", - "version" : "4.102345" + "name" : "@RJBS/@Filter/TestRelease", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", - "name" : "@RJBS/@Basic/ConfirmRelease", - "version" : "4.102345" + "name" : "@RJBS/@Filter/ConfirmRelease", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", - "name" : "@RJBS/@Basic/UploadToCPAN", - "version" : "4.102345" + "name" : "@RJBS/@Filter/UploadToCPAN", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@RJBS/AutoPrereqs", - "version" : "4.102345" + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::Git::NextVersion", "name" : "@RJBS/Git::NextVersion", - "version" : "1.102810" + "version" : "2.014" }, { "class" : "Dist::Zilla::Plugin::PkgVersion", "name" : "@RJBS/PkgVersion", - "version" : "4.102345" + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@RJBS/MetaConfig", - "version" : "4.102345" + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@RJBS/MetaJSON", - "version" : "4.102345" + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@RJBS/NextRelease", - "version" : "4.102345" + "version" : "4.300039" + }, + { + "class" : "Dist::Zilla::Plugin::Test::ChangesHasContent", + "name" : "@RJBS/Test::ChangesHasContent", + "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@RJBS/PodSyntaxTests", - "version" : "4.102345" + "version" : "4.300039" }, { - "class" : "Dist::Zilla::Plugin::Repository", - "name" : "@RJBS/Repository", - "version" : "0.14" + "class" : "Dist::Zilla::Plugin::ReportVersions::Tiny", + "name" : "@RJBS/ReportVersions::Tiny", + "version" : "1.10" + }, + { + "class" : "Dist::Zilla::Plugin::Test::Compile", + "config" : { + "Dist::Zilla::Plugin::Test::Compile" : { + "module_finder" : [ + ":InstallModules" + ], + "script_finder" : [ + ":ExecFiles" + ] + } + }, + "name" : "@RJBS/Test::Compile", + "version" : "2.034" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -167,60 +223,84 @@ } }, "name" : "@RJBS/TestMoreWithSubtests", - "version" : "4.102345" + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::PodWeaver", + "config" : { + "Dist::Zilla::Plugin::PodWeaver" : { + "config_plugin" : "@RJBS", + "finder" : [ + ":InstallModules", + ":ExecFiles" + ] + } + }, "name" : "@RJBS/PodWeaver", - "version" : "3.101641" + "version" : "3.102000" + }, + { + "class" : "Dist::Zilla::Plugin::GithubMeta", + "name" : "@RJBS/GithubMeta", + "version" : "0.42" }, { "class" : "Dist::Zilla::Plugin::Git::Check", "name" : "@RJBS/@Git/Check", - "version" : "1.102810" + "version" : "2.014" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "name" : "@RJBS/@Git/Commit", - "version" : "1.102810" + "version" : "2.014" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", "name" : "@RJBS/@Git/Tag", - "version" : "1.102810" + "version" : "2.014" }, { "class" : "Dist::Zilla::Plugin::Git::Push", "name" : "@RJBS/@Git/Push", - "version" : "1.102810" + "version" : "2.014" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", - "version" : "4.102345" + "version" : "4.300039" + }, + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : ":IncModules", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", - "version" : "4.102345" + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", - "version" : "4.102345" + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", - "version" : "4.102345" + "version" : "4.300039" + }, + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : ":MainModule", + "version" : "4.300039" } ], "zilla" : { "class" : "Dist::Zilla::Dist::Builder", "config" : { - "is_trial" : 0 + "is_trial" : "0" }, - "version" : "4.102345" + "version" : "4.300039" } } } diff -Nru libnumber-tolerant-perl-1.701/META.yml libnumber-tolerant-perl-1.702/META.yml --- libnumber-tolerant-perl-1.701/META.yml 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/META.yml 2013-10-07 14:22:23.000000000 +0000 @@ -3,12 +3,16 @@ author: - 'Ricardo Signes ' build_requires: + File::Spec: 0 + IO::Handle: 0 + IPC::Open3: 0 Test::More: 0.96 Test::Tester: 0 + base: 0 configure_requires: - ExtUtils::MakeMaker: 6.31 + ExtUtils::MakeMaker: 6.30 dynamic_config: 0 -generated_by: 'Dist::Zilla version 4.102345, CPAN::Meta::Converter version 2.102400' +generated_by: 'Dist::Zilla version 4.300039, CPAN::Meta::Converter version 2.132661' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -23,99 +27,132 @@ Sub::Exporter::Util: 0 Test::Builder: 0 overload: 0 + parent: 0 + strict: 0 + warnings: 0 resources: - repository: git://git.codesimply.com/Number-Tolerant.git -version: 1.701 + bugtracker: https://github.com/rjbs/Number-Tolerant/issues + homepage: https://github.com/rjbs/Number-Tolerant + repository: https://github.com/rjbs/Number-Tolerant.git +version: 1.702 x_Dist_Zilla: + perl: + version: 5.019004 plugins: - - class: Dist::Zilla::Plugin::GatherDir - name: '@RJBS/@Basic/GatherDir' - version: 4.102345 + class: Dist::Zilla::Plugin::Git::GatherDir + name: '@RJBS/Git::GatherDir' + version: 2.014 + - + class: Dist::Zilla::Plugin::CheckPrereqsIndexed + name: '@RJBS/CheckPrereqsIndexed' + version: 0.009 + - + class: Dist::Zilla::Plugin::CheckExtraTests + name: '@RJBS/CheckExtraTests' + version: 0.011 + - + class: Dist::Zilla::Plugin::PromptIfStale + name: '@RJBS/RJBS-Outdated' + version: 0.007 + - + class: Dist::Zilla::Plugin::PromptIfStale + name: '@RJBS/CPAN-Outdated' + version: 0.007 - class: Dist::Zilla::Plugin::PruneCruft - name: '@RJBS/@Basic/PruneCruft' - version: 4.102345 + name: '@RJBS/@Filter/PruneCruft' + version: 4.300039 - class: Dist::Zilla::Plugin::ManifestSkip - name: '@RJBS/@Basic/ManifestSkip' - version: 4.102345 + name: '@RJBS/@Filter/ManifestSkip' + version: 4.300039 - class: Dist::Zilla::Plugin::MetaYAML - name: '@RJBS/@Basic/MetaYAML' - version: 4.102345 + name: '@RJBS/@Filter/MetaYAML' + version: 4.300039 - class: Dist::Zilla::Plugin::License - name: '@RJBS/@Basic/License' - version: 4.102345 + name: '@RJBS/@Filter/License' + version: 4.300039 - class: Dist::Zilla::Plugin::Readme - name: '@RJBS/@Basic/Readme' - version: 4.102345 - - - class: Dist::Zilla::Plugin::ExtraTests - name: '@RJBS/@Basic/ExtraTests' - version: 4.102345 + name: '@RJBS/@Filter/Readme' + version: 4.300039 - class: Dist::Zilla::Plugin::ExecDir - name: '@RJBS/@Basic/ExecDir' - version: 4.102345 + name: '@RJBS/@Filter/ExecDir' + version: 4.300039 - class: Dist::Zilla::Plugin::ShareDir - name: '@RJBS/@Basic/ShareDir' - version: 4.102345 + name: '@RJBS/@Filter/ShareDir' + version: 4.300039 - class: Dist::Zilla::Plugin::MakeMaker - name: '@RJBS/@Basic/MakeMaker' - version: 4.102345 + name: '@RJBS/@Filter/MakeMaker' + version: 4.300039 - class: Dist::Zilla::Plugin::Manifest - name: '@RJBS/@Basic/Manifest' - version: 4.102345 + name: '@RJBS/@Filter/Manifest' + version: 4.300039 - class: Dist::Zilla::Plugin::TestRelease - name: '@RJBS/@Basic/TestRelease' - version: 4.102345 + name: '@RJBS/@Filter/TestRelease' + version: 4.300039 - class: Dist::Zilla::Plugin::ConfirmRelease - name: '@RJBS/@Basic/ConfirmRelease' - version: 4.102345 + name: '@RJBS/@Filter/ConfirmRelease' + version: 4.300039 - class: Dist::Zilla::Plugin::UploadToCPAN - name: '@RJBS/@Basic/UploadToCPAN' - version: 4.102345 + name: '@RJBS/@Filter/UploadToCPAN' + version: 4.300039 - class: Dist::Zilla::Plugin::AutoPrereqs name: '@RJBS/AutoPrereqs' - version: 4.102345 + version: 4.300039 - class: Dist::Zilla::Plugin::Git::NextVersion name: '@RJBS/Git::NextVersion' - version: 1.102810 + version: 2.014 - class: Dist::Zilla::Plugin::PkgVersion name: '@RJBS/PkgVersion' - version: 4.102345 + version: 4.300039 - class: Dist::Zilla::Plugin::MetaConfig name: '@RJBS/MetaConfig' - version: 4.102345 + version: 4.300039 - class: Dist::Zilla::Plugin::MetaJSON name: '@RJBS/MetaJSON' - version: 4.102345 + version: 4.300039 - class: Dist::Zilla::Plugin::NextRelease name: '@RJBS/NextRelease' - version: 4.102345 + version: 4.300039 + - + class: Dist::Zilla::Plugin::Test::ChangesHasContent + name: '@RJBS/Test::ChangesHasContent' + version: 0.006 - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@RJBS/PodSyntaxTests' - version: 4.102345 + version: 4.300039 - - class: Dist::Zilla::Plugin::Repository - name: '@RJBS/Repository' - version: 0.14 + class: Dist::Zilla::Plugin::ReportVersions::Tiny + name: '@RJBS/ReportVersions::Tiny' + version: 1.10 + - + class: Dist::Zilla::Plugin::Test::Compile + config: + Dist::Zilla::Plugin::Test::Compile: + module_finder: + - ':InstallModules' + script_finder: + - ':ExecFiles' + name: '@RJBS/Test::Compile' + version: 2.034 - class: Dist::Zilla::Plugin::Prereqs config: @@ -123,45 +160,63 @@ phase: test type: requires name: '@RJBS/TestMoreWithSubtests' - version: 4.102345 + version: 4.300039 - class: Dist::Zilla::Plugin::PodWeaver + config: + Dist::Zilla::Plugin::PodWeaver: + config_plugin: '@RJBS' + finder: + - ':InstallModules' + - ':ExecFiles' name: '@RJBS/PodWeaver' - version: 3.101641 + version: 3.102000 + - + class: Dist::Zilla::Plugin::GithubMeta + name: '@RJBS/GithubMeta' + version: 0.42 - class: Dist::Zilla::Plugin::Git::Check name: '@RJBS/@Git/Check' - version: 1.102810 + version: 2.014 - class: Dist::Zilla::Plugin::Git::Commit name: '@RJBS/@Git/Commit' - version: 1.102810 + version: 2.014 - class: Dist::Zilla::Plugin::Git::Tag name: '@RJBS/@Git/Tag' - version: 1.102810 + version: 2.014 - class: Dist::Zilla::Plugin::Git::Push name: '@RJBS/@Git/Push' - version: 1.102810 + version: 2.014 - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' - version: 4.102345 + version: 4.300039 + - + class: Dist::Zilla::Plugin::FinderCode + name: ':IncModules' + version: 4.300039 - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' - version: 4.102345 + version: 4.300039 - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' - version: 4.102345 + version: 4.300039 - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' - version: 4.102345 + version: 4.300039 + - + class: Dist::Zilla::Plugin::FinderCode + name: ':MainModule' + version: 4.300039 zilla: class: Dist::Zilla::Dist::Builder config: is_trial: 0 - version: 4.102345 + version: 4.300039 diff -Nru libnumber-tolerant-perl-1.701/Makefile.PL libnumber-tolerant-perl-1.702/Makefile.PL --- libnumber-tolerant-perl-1.701/Makefile.PL 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/Makefile.PL 2013-10-07 14:22:23.000000000 +0000 @@ -4,41 +4,62 @@ -use ExtUtils::MakeMaker 6.31; +use ExtUtils::MakeMaker 6.30; my %WriteMakefileArgs = ( - 'ABSTRACT' => 'tolerance ranges for inexact numbers', - 'AUTHOR' => 'Ricardo Signes ', - 'BUILD_REQUIRES' => { - 'Test::More' => '0.96', - 'Test::Tester' => '0' + "ABSTRACT" => "tolerance ranges for inexact numbers", + "AUTHOR" => "Ricardo Signes ", + "BUILD_REQUIRES" => {}, + "CONFIGURE_REQUIRES" => { + "ExtUtils::MakeMaker" => "6.30" }, - 'CONFIGURE_REQUIRES' => { - 'ExtUtils::MakeMaker' => '6.31' + "DISTNAME" => "Number-Tolerant", + "EXE_FILES" => [], + "LICENSE" => "perl", + "NAME" => "Number::Tolerant", + "PREREQ_PM" => { + "Carp" => 0, + "Math::BigFloat" => 0, + "Math::BigRat" => 0, + "Scalar::Util" => 0, + "Sub::Exporter" => "0.950", + "Sub::Exporter::Util" => 0, + "Test::Builder" => 0, + "overload" => 0, + "parent" => 0, + "strict" => 0, + "warnings" => 0 }, - 'DISTNAME' => 'Number-Tolerant', - 'EXE_FILES' => [], - 'LICENSE' => 'perl', - 'NAME' => 'Number::Tolerant', - 'PREREQ_PM' => { - 'Carp' => '0', - 'Math::BigFloat' => '0', - 'Math::BigRat' => '0', - 'Scalar::Util' => '0', - 'Sub::Exporter' => '0.950', - 'Sub::Exporter::Util' => '0', - 'Test::Builder' => '0', - 'overload' => '0' + "TEST_REQUIRES" => { + "File::Spec" => 0, + "IO::Handle" => 0, + "IPC::Open3" => 0, + "Test::More" => "0.96", + "Test::Tester" => 0, + "base" => 0 }, - 'VERSION' => '1.701', - 'test' => { - 'TESTS' => 't/*.t' + "VERSION" => "1.702", + "test" => { + "TESTS" => "t/*.t" } ); +unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { + my $tr = delete $WriteMakefileArgs{TEST_REQUIRES}; + my $br = $WriteMakefileArgs{BUILD_REQUIRES}; + for my $mod ( keys %$tr ) { + if ( exists $br->{$mod} ) { + $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod}; + } + else { + $br->{$mod} = $tr->{$mod}; + } + } +} + unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) { my $br = delete $WriteMakefileArgs{BUILD_REQUIRES}; my $pp = $WriteMakefileArgs{PREREQ_PM}; diff -Nru libnumber-tolerant-perl-1.701/README libnumber-tolerant-perl-1.702/README --- libnumber-tolerant-perl-1.701/README 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/README 2013-10-07 14:22:23.000000000 +0000 @@ -1,7 +1,7 @@ This archive contains the distribution Number-Tolerant, -version 1.701: +version 1.702: tolerance ranges for inexact numbers diff -Nru libnumber-tolerant-perl-1.701/debian/changelog libnumber-tolerant-perl-1.702/debian/changelog --- libnumber-tolerant-perl-1.701/debian/changelog 2013-04-27 19:31:47.000000000 +0000 +++ libnumber-tolerant-perl-1.702/debian/changelog 2013-10-10 14:30:03.000000000 +0000 @@ -1,3 +1,10 @@ +libnumber-tolerant-perl (1.702-1) unstable; urgency=low + + * Imported Upstream version 1.702 + * removed patch fixing spelling - applied by upstream + + -- Alexandre Mestiashvili Thu, 10 Oct 2013 15:01:28 +0200 + libnumber-tolerant-perl (1.701-1) unstable; urgency=low * Initial Release. (Closes: #702576) diff -Nru libnumber-tolerant-perl-1.701/debian/patches/series libnumber-tolerant-perl-1.702/debian/patches/series --- libnumber-tolerant-perl-1.701/debian/patches/series 2013-04-15 18:53:55.000000000 +0000 +++ libnumber-tolerant-perl-1.702/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -spelling.patch diff -Nru libnumber-tolerant-perl-1.701/debian/patches/spelling.patch libnumber-tolerant-perl-1.702/debian/patches/spelling.patch --- libnumber-tolerant-perl-1.701/debian/patches/spelling.patch 2013-04-24 18:27:20.000000000 +0000 +++ libnumber-tolerant-perl-1.702/debian/patches/spelling.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -From: Alexandre Mestiashvili -Subject: spelling error -Forwarded: https://rt.cpan.org/Ticket/Display.html?id=84827 -Last-Update: 2013-04-24 ---- Number-Tolerant-1.701.orig/lib/Number/Tolerant.pm -+++ Number-Tolerant-1.701/lib/Number/Tolerant.pm -@@ -285,7 +285,7 @@ - - my $range = tolerance( $x => $method => $y); - --The meaning of C<$x> and C<$y> are dependant on the value of C<$method>, which -+The meaning of C<$x> and C<$y> are dependent on the value of C<$method>, which - describes the nature of the tolerance. Tolerances can be defined in five ways, - at present: - diff -Nru libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Constant.pm libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Constant.pm --- libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Constant.pm 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Constant.pm 2013-10-07 14:22:23.000000000 +0000 @@ -1,15 +1,15 @@ use strict; use warnings; package Number::Tolerant::Constant; -BEGIN { - $Number::Tolerant::Constant::VERSION = '1.701'; +{ + $Number::Tolerant::Constant::VERSION = '1.702'; } # ABSTRACT: a blessed constant type package Number::Tolerant::Type::constant_obj; -use base qw(Number::Tolerant::Type); +use parent qw(Number::Tolerant::Type); sub construct { shift; { value => $_[0], min => $_[0], max => $_[0], constant => 1 } @@ -52,6 +52,7 @@ 1; __END__ + =pod =head1 NAME @@ -60,7 +61,7 @@ =head1 VERSION -version 1.701 +version 1.702 =head1 SYNOPSIS @@ -91,4 +92,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -Nru libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/constant.pm libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/constant.pm --- libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/constant.pm 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/constant.pm 2013-10-07 14:22:23.000000000 +0000 @@ -1,9 +1,10 @@ use strict; use warnings; +# ABSTRACT: a tolerance "m == n" package Number::Tolerant::Type::constant; -use base qw(Number::Tolerant::Type); +use parent qw(Number::Tolerant::Type); sub construct { shift; $_[0] } @@ -27,15 +28,16 @@ 1; __END__ + =pod =head1 NAME -Number::Tolerant::Type::constant +Number::Tolerant::Type::constant - a tolerance "m == n" =head1 VERSION -version 1.701 +version 1.702 =head1 AUTHOR @@ -49,4 +51,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -Nru libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/infinite.pm libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/infinite.pm --- libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/infinite.pm 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/infinite.pm 2013-10-07 14:22:23.000000000 +0000 @@ -1,9 +1,10 @@ use strict; use warnings; +# ABSTRACT: an infinite tolerance package Number::Tolerant::Type::infinite; -use base qw(Number::Tolerant::Type); +use parent qw(Number::Tolerant::Type); sub construct { shift; { value => 0 } } @@ -21,15 +22,16 @@ 1; __END__ + =pod =head1 NAME -Number::Tolerant::Type::infinite +Number::Tolerant::Type::infinite - an infinite tolerance =head1 VERSION -version 1.701 +version 1.702 =head1 AUTHOR @@ -43,4 +45,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -Nru libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/less_than.pm libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/less_than.pm --- libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/less_than.pm 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/less_than.pm 2013-10-07 14:22:23.000000000 +0000 @@ -1,9 +1,10 @@ use strict; use warnings; +# ABSTRACT: a tolerance "m < n" package Number::Tolerant::Type::less_than; -use base qw(Number::Tolerant::Type); +use parent qw(Number::Tolerant::Type); sub construct { shift; { value => $_[0], max => $_[0], exclude_max => 1 } } @@ -41,15 +42,16 @@ 1; __END__ + =pod =head1 NAME -Number::Tolerant::Type::less_than +Number::Tolerant::Type::less_than - a tolerance "m < n" =head1 VERSION -version 1.701 +version 1.702 =head1 AUTHOR @@ -63,4 +65,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -Nru libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/more_than.pm libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/more_than.pm --- libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/more_than.pm 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/more_than.pm 2013-10-07 14:22:23.000000000 +0000 @@ -1,9 +1,10 @@ use strict; use warnings; +# ABSTRACT: a tolerance "m > n" package Number::Tolerant::Type::more_than; -use base qw(Number::Tolerant::Type); +use parent qw(Number::Tolerant::Type); sub construct { shift; { value => $_[0], min => $_[0], exclude_min => 1 } } @@ -41,15 +42,16 @@ 1; __END__ + =pod =head1 NAME -Number::Tolerant::Type::more_than +Number::Tolerant::Type::more_than - a tolerance "m > n" =head1 VERSION -version 1.701 +version 1.702 =head1 AUTHOR @@ -63,4 +65,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -Nru libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/offset.pm libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/offset.pm --- libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/offset.pm 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/offset.pm 2013-10-07 14:22:23.000000000 +0000 @@ -1,9 +1,10 @@ use strict; use warnings; +# ABSTRACT: a tolerance "m (-l or +n)" package Number::Tolerant::Type::offset; -use base qw(Number::Tolerant::Type); +use parent qw(Number::Tolerant::Type); sub construct { shift; { @@ -51,15 +52,16 @@ 1; __END__ + =pod =head1 NAME -Number::Tolerant::Type::offset +Number::Tolerant::Type::offset - a tolerance "m (-l or +n)" =head1 VERSION -version 1.701 +version 1.702 =head1 AUTHOR @@ -73,4 +75,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -Nru libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/or_less.pm libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/or_less.pm --- libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/or_less.pm 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/or_less.pm 2013-10-07 14:22:23.000000000 +0000 @@ -1,9 +1,10 @@ use strict; use warnings; +# ABSTRACT: a tolerance "m <= n" package Number::Tolerant::Type::or_less; -use base qw(Number::Tolerant::Type); +use parent qw(Number::Tolerant::Type); sub construct { shift; { value => $_[0], max => $_[0] } } @@ -33,15 +34,16 @@ 1; __END__ + =pod =head1 NAME -Number::Tolerant::Type::or_less +Number::Tolerant::Type::or_less - a tolerance "m <= n" =head1 VERSION -version 1.701 +version 1.702 =head1 AUTHOR @@ -55,4 +57,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -Nru libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/or_more.pm libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/or_more.pm --- libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/or_more.pm 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/or_more.pm 2013-10-07 14:22:23.000000000 +0000 @@ -1,13 +1,14 @@ use strict; use warnings; +# ABSTRACT: a tolerance "m >= n" package Number::Tolerant::Type::or_more; -use base qw(Number::Tolerant::Type); +use parent qw(Number::Tolerant::Type); sub construct { shift; { value => $_[0], min => $_[0] } } -sub parse { +sub parse { my ($self, $string, $factory) = @_; my $number = $self->number_re; my $X = $self->variable_re; @@ -32,15 +33,16 @@ 1; __END__ + =pod =head1 NAME -Number::Tolerant::Type::or_more +Number::Tolerant::Type::or_more - a tolerance "m >= n" =head1 VERSION -version 1.701 +version 1.702 =head1 AUTHOR @@ -54,4 +56,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -Nru libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/plus_or_minus.pm libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/plus_or_minus.pm --- libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/plus_or_minus.pm 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/plus_or_minus.pm 2013-10-07 14:22:23.000000000 +0000 @@ -1,9 +1,10 @@ use strict; use warnings; +# ABSTRACT: a tolerance "m +/- n" package Number::Tolerant::Type::plus_or_minus; -use base qw(Number::Tolerant::Type); +use parent qw(Number::Tolerant::Type); sub construct { shift; { @@ -41,15 +42,16 @@ 1; __END__ + =pod =head1 NAME -Number::Tolerant::Type::plus_or_minus +Number::Tolerant::Type::plus_or_minus - a tolerance "m +/- n" =head1 VERSION -version 1.701 +version 1.702 =head1 AUTHOR @@ -63,4 +65,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -Nru libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/plus_or_minus_pct.pm libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/plus_or_minus_pct.pm --- libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/plus_or_minus_pct.pm 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/plus_or_minus_pct.pm 2013-10-07 14:22:23.000000000 +0000 @@ -1,9 +1,10 @@ use strict; use warnings; +# ABSTRACT: a tolerance "m +/- n%" package Number::Tolerant::Type::plus_or_minus_pct; -use base qw(Number::Tolerant::Type); +use parent qw(Number::Tolerant::Type); sub construct { shift; { @@ -40,15 +41,16 @@ 1; __END__ + =pod =head1 NAME -Number::Tolerant::Type::plus_or_minus_pct +Number::Tolerant::Type::plus_or_minus_pct - a tolerance "m +/- n%" =head1 VERSION -version 1.701 +version 1.702 =head1 AUTHOR @@ -62,4 +64,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -Nru libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/to.pm libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/to.pm --- libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type/to.pm 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type/to.pm 2013-10-07 14:22:23.000000000 +0000 @@ -1,9 +1,10 @@ use strict; use warnings; +# ABSTRACT: a tolerance "m to n" package Number::Tolerant::Type::to; -use base qw(Number::Tolerant::Type); +use parent qw(Number::Tolerant::Type); sub construct { shift; ($_[0],$_[1]) = sort { $a <=> $b } ($_[0],$_[1]); @@ -44,15 +45,16 @@ 1; __END__ + =pod =head1 NAME -Number::Tolerant::Type::to +Number::Tolerant::Type::to - a tolerance "m to n" =head1 VERSION -version 1.701 +version 1.702 =head1 AUTHOR @@ -66,4 +68,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -Nru libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type.pm libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type.pm --- libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Type.pm 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Type.pm 2013-10-07 14:22:23.000000000 +0000 @@ -1,10 +1,10 @@ use strict; use warnings; package Number::Tolerant::Type; -BEGIN { - $Number::Tolerant::Type::VERSION = '1.701'; +{ + $Number::Tolerant::Type::VERSION = '1.702'; } -use base qw(Number::Tolerant); +use parent qw(Number::Tolerant); # ABSTRACT: a type of tolerance use Math::BigFloat; @@ -57,6 +57,7 @@ 1; __END__ + =pod =head1 NAME @@ -65,7 +66,7 @@ =head1 VERSION -version 1.701 +version 1.702 =head1 SYNOPSIS @@ -133,4 +134,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -Nru libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Union.pm libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Union.pm --- libnumber-tolerant-perl-1.701/lib/Number/Tolerant/Union.pm 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/lib/Number/Tolerant/Union.pm 2013-10-07 14:22:23.000000000 +0000 @@ -1,8 +1,8 @@ use strict; use warnings; package Number::Tolerant::Union; -BEGIN { - $Number::Tolerant::Union::VERSION = '1.701'; +{ + $Number::Tolerant::Union::VERSION = '1.702'; } # ABSTRACT: unions of tolerance ranges @@ -53,6 +53,7 @@ 1; __END__ + =pod =head1 NAME @@ -61,7 +62,7 @@ =head1 VERSION -version 1.701 +version 1.702 =head1 SYNOPSIS @@ -159,4 +160,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -Nru libnumber-tolerant-perl-1.701/lib/Number/Tolerant.pm libnumber-tolerant-perl-1.702/lib/Number/Tolerant.pm --- libnumber-tolerant-perl-1.701/lib/Number/Tolerant.pm 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/lib/Number/Tolerant.pm 2013-10-07 14:22:23.000000000 +0000 @@ -1,8 +1,8 @@ use strict; use warnings; package Number::Tolerant; -BEGIN { - $Number::Tolerant::VERSION = '1.701'; +{ + $Number::Tolerant::VERSION = '1.702'; } # ABSTRACT: tolerance ranges for inexact numbers @@ -25,12 +25,14 @@ sub disable_plugin { my ($class, $plugin) = @_; + $class->_boot_up; delete $_plugins{ $plugin }; return; } sub enable_plugin { my ($class, $plugin) = @_; + $class->_boot_up; # XXX: there has to be a better test to use here -- rjbs, 2006-01-27 unless (eval { $plugin->can('construct') }) { @@ -38,7 +40,7 @@ } unless (eval { $class->validate_plugin($plugin); }) { - Carp::croak "class $class is not a valid Number::Tolerant plugin: $@"; + Carp::croak "class $plugin is not a valid Number::Tolerant plugin: $@"; } $_plugins{ $plugin } = undef; @@ -53,19 +55,25 @@ return 1; } -my @_default_plugins = - map { "Number::Tolerant::Type::$_" } - qw( - constant infinite less_than - more_than offset or_less - or_more plus_or_minus plus_or_minus_pct - to - ); +my $booted; +sub _boot_up { + return if $booted; + $booted = 1; + my @_default_plugins = + map { "Number::Tolerant::Type::$_" } + qw( + constant infinite less_than + more_than offset or_less + or_more plus_or_minus plus_or_minus_pct + to + ); -__PACKAGE__->enable_plugin($_) for @_default_plugins; + __PACKAGE__->enable_plugin($_) for @_default_plugins; +} sub new { my $class = shift; + $class->_boot_up; return unless @_; my $self; @@ -94,6 +102,7 @@ sub from_string { my ($class, $string) = @_; + $class->_boot_up; Carp::croak "from_string is a class method" if ref $class; for my $type (keys %_plugins) { if (defined(my $tolerance = $type->parse($string, $class))) { @@ -237,6 +246,7 @@ "1 +/- 0"; __END__ + =pod =head1 NAME @@ -245,7 +255,7 @@ =head1 VERSION -version 1.701 +version 1.702 =head1 SYNOPSIS @@ -285,7 +295,7 @@ my $range = tolerance( $x => $method => $y); -The meaning of C<$x> and C<$y> are dependant on the value of C<$method>, which +The meaning of C<$x> and C<$y> are dependent on the value of C<$method>, which describes the nature of the tolerance. Tolerances can be defined in five ways, at present: @@ -519,4 +529,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -Nru libnumber-tolerant-perl-1.701/lib/Test/Tolerant.pm libnumber-tolerant-perl-1.702/lib/Test/Tolerant.pm --- libnumber-tolerant-perl-1.701/lib/Test/Tolerant.pm 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/lib/Test/Tolerant.pm 2013-10-07 14:22:23.000000000 +0000 @@ -1,8 +1,8 @@ use strict; use warnings; package Test::Tolerant; -BEGIN { - $Test::Tolerant::VERSION = '1.701'; +{ + $Test::Tolerant::VERSION = '1.702'; } # ABSTRACT: test routines for testing numbers against tolerances @@ -53,6 +53,7 @@ 1; __END__ + =pod =head1 NAME @@ -61,7 +62,7 @@ =head1 VERSION -version 1.701 +version 1.702 =head1 SYNOPSIS @@ -111,4 +112,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -Nru libnumber-tolerant-perl-1.701/t/00-compile.t libnumber-tolerant-perl-1.702/t/00-compile.t --- libnumber-tolerant-perl-1.701/t/00-compile.t 1970-01-01 00:00:00.000000000 +0000 +++ libnumber-tolerant-perl-1.702/t/00-compile.t 2013-10-07 14:22:23.000000000 +0000 @@ -0,0 +1,60 @@ +use strict; +use warnings; + +# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.034 + +use Test::More 0.94 tests => 15; + + + +my @module_files = ( + 'Number/Tolerant.pm', + 'Number/Tolerant/Constant.pm', + 'Number/Tolerant/Type.pm', + 'Number/Tolerant/Type/constant.pm', + 'Number/Tolerant/Type/infinite.pm', + 'Number/Tolerant/Type/less_than.pm', + 'Number/Tolerant/Type/more_than.pm', + 'Number/Tolerant/Type/offset.pm', + 'Number/Tolerant/Type/or_less.pm', + 'Number/Tolerant/Type/or_more.pm', + 'Number/Tolerant/Type/plus_or_minus.pm', + 'Number/Tolerant/Type/plus_or_minus_pct.pm', + 'Number/Tolerant/Type/to.pm', + 'Number/Tolerant/Union.pm', + 'Test/Tolerant.pm' +); + + + +# no fake home requested + +use File::Spec; +use IPC::Open3; +use IO::Handle; + +my @warnings; +for my $lib (@module_files) +{ + # see L + open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!"; + my $stderr = IO::Handle->new; + + my $pid = open3($stdin, '>&STDERR', $stderr, $^X, '-Mblib', '-e', "require q[$lib]"); + binmode $stderr, ':crlf' if $^O eq 'MSWin32'; + my @_warnings = <$stderr>; + waitpid($pid, 0); + is($?, 0, "$lib loaded ok"); + + if (@_warnings) + { + warn @_warnings; + push @warnings, @_warnings; + } +} + + + +# no warning checks; + +BAIL_OUT("Compilation problems") if !Test::More->builder->is_passing; diff -Nru libnumber-tolerant-perl-1.701/t/00-load.t libnumber-tolerant-perl-1.702/t/00-load.t --- libnumber-tolerant-perl-1.701/t/00-load.t 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/t/00-load.t 1970-01-01 00:00:00.000000000 +0000 @@ -1,25 +0,0 @@ -#!perl -T - -use Test::More tests => 14; - -BEGIN { - use_ok( 'Number::Tolerant' ); - use_ok( 'Number::Tolerant::Type' ); - use_ok( 'Number::Tolerant::Type::constant' ); - use_ok( 'Number::Tolerant::Type::infinite' ); - use_ok( 'Number::Tolerant::Type::less_than' ); - use_ok( 'Number::Tolerant::Type::more_than' ); - use_ok( 'Number::Tolerant::Type::offset' ); - use_ok( 'Number::Tolerant::Type::or_less' ); - use_ok( 'Number::Tolerant::Type::or_more' ); - use_ok( 'Number::Tolerant::Type::plus_or_minus' ); - use_ok( 'Number::Tolerant::Type::plus_or_minus_pct' ); - use_ok( 'Number::Tolerant::Type::to' ); - use_ok( 'Number::Tolerant::Type' ); - use_ok( 'Number::Tolerant::Union' ); - - # vv removed due to Devel::Cover bug - # use_ok( 'Number::Tolerant::Constant' ); -} - -diag( "Testing Number::Tolerant $Number::Tolerant::VERSION" ); diff -Nru libnumber-tolerant-perl-1.701/t/000-report-versions-tiny.t libnumber-tolerant-perl-1.702/t/000-report-versions-tiny.t --- libnumber-tolerant-perl-1.701/t/000-report-versions-tiny.t 1970-01-01 00:00:00.000000000 +0000 +++ libnumber-tolerant-perl-1.702/t/000-report-versions-tiny.t 2013-10-07 14:22:23.000000000 +0000 @@ -0,0 +1,87 @@ +use strict; +use warnings; +use Test::More 0.88; +# This is a relatively nice way to avoid Test::NoWarnings breaking our +# expectations by adding extra tests, without using no_plan. It also helps +# avoid any other test module that feels introducing random tests, or even +# test plans, is a nice idea. +our $success = 0; +END { $success && done_testing; } + +# List our own version used to generate this +my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.10\n"; + +eval { # no excuses! + # report our Perl details + my $want = "any version"; + $v .= "perl: $] (wanted $want) on $^O from $^X\n\n"; +}; +defined($@) and diag("$@"); + +# Now, our module version dependencies: +sub pmver { + my ($module, $wanted) = @_; + $wanted = " (want $wanted)"; + my $pmver; + eval "require $module;"; + if ($@) { + if ($@ =~ m/Can't locate .* in \@INC/) { + $pmver = 'module not found.'; + } else { + diag("${module}: $@"); + $pmver = 'died during require.'; + } + } else { + my $version; + eval { $version = $module->VERSION; }; + if ($@) { + diag("${module}: $@"); + $pmver = 'died during VERSION check.'; + } elsif (defined $version) { + $pmver = "$version"; + } else { + $pmver = ''; + } + } + + # So, we should be good, right? + return sprintf('%-45s => %-10s%-15s%s', $module, $pmver, $wanted, "\n"); +} + +eval { $v .= pmver('Carp','any version') }; +eval { $v .= pmver('ExtUtils::MakeMaker','6.30') }; +eval { $v .= pmver('File::Spec','any version') }; +eval { $v .= pmver('IO::Handle','any version') }; +eval { $v .= pmver('IPC::Open3','any version') }; +eval { $v .= pmver('Math::BigFloat','any version') }; +eval { $v .= pmver('Math::BigRat','any version') }; +eval { $v .= pmver('Scalar::Util','any version') }; +eval { $v .= pmver('Sub::Exporter','0.950') }; +eval { $v .= pmver('Sub::Exporter::Util','any version') }; +eval { $v .= pmver('Test::Builder','any version') }; +eval { $v .= pmver('Test::More','0.96') }; +eval { $v .= pmver('Test::Tester','any version') }; +eval { $v .= pmver('base','any version') }; +eval { $v .= pmver('overload','any version') }; +eval { $v .= pmver('parent','any version') }; +eval { $v .= pmver('strict','any version') }; +eval { $v .= pmver('warnings','any version') }; + + +# All done. +$v .= <<'EOT'; + +Thanks for using my code. I hope it works for you. +If not, please try and include this output in the bug report. +That will help me reproduce the issue and solve your problem. + +EOT + +diag($v); +ok(1, "we really didn't test anything, just reporting data"); +$success = 1; + +# Work around another nasty module on CPAN. :/ +no warnings 'once'; +$Template::Test::NO_FLUSH = 1; +exit 0; diff -Nru libnumber-tolerant-perl-1.701/t/bad_plugin.t libnumber-tolerant-perl-1.702/t/bad_plugin.t --- libnumber-tolerant-perl-1.701/t/bad_plugin.t 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/t/bad_plugin.t 2013-10-07 14:22:23.000000000 +0000 @@ -1,4 +1,4 @@ -#!perl -T +#!perl use Test::More tests => 3; use strict; diff -Nru libnumber-tolerant-perl-1.701/t/constant.t libnumber-tolerant-perl-1.702/t/constant.t --- libnumber-tolerant-perl-1.701/t/constant.t 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/t/constant.t 2013-10-07 14:22:23.000000000 +0000 @@ -1,10 +1,10 @@ -use Test::More tests => 60; +use Test::More tests => 58; use strict; use warnings; -BEGIN { use_ok("Number::Tolerant"); } -BEGIN { use_ok("Number::Tolerant::Constant"); } +use Number::Tolerant; +use Number::Tolerant::Constant; { # constant (with Constant) { # integer diff -Nru libnumber-tolerant-perl-1.701/t/release-pod-syntax.t libnumber-tolerant-perl-1.702/t/release-pod-syntax.t --- libnumber-tolerant-perl-1.701/t/release-pod-syntax.t 2010-11-29 23:36:34.000000000 +0000 +++ libnumber-tolerant-perl-1.702/t/release-pod-syntax.t 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -#!perl - -BEGIN { - unless ($ENV{RELEASE_TESTING}) { - require Test::More; - Test::More::plan(skip_all => 'these tests are for release candidate testing'); - } -} - -use Test::More; - -eval "use Test::Pod 1.41"; -plan skip_all => "Test::Pod 1.41 required for testing POD" if $@; - -all_pod_files_ok(); diff -Nru libnumber-tolerant-perl-1.701/xt/release/changes_has_content.t libnumber-tolerant-perl-1.702/xt/release/changes_has_content.t --- libnumber-tolerant-perl-1.701/xt/release/changes_has_content.t 1970-01-01 00:00:00.000000000 +0000 +++ libnumber-tolerant-perl-1.702/xt/release/changes_has_content.t 2013-10-07 14:22:23.000000000 +0000 @@ -0,0 +1,41 @@ +#!perl + +use Test::More tests => 2; + +note 'Checking Changes'; +my $changes_file = 'Changes'; +my $newver = '1.702'; +my $trial_token = '-TRIAL'; + +SKIP: { + ok(-e $changes_file, "$changes_file file exists") + or skip 'Changes is missing', 1; + + ok(_get_changes($newver), "$changes_file has content for $newver"); +} + +done_testing; + +# _get_changes copied and adapted from Dist::Zilla::Plugin::Git::Commit +# by Jerome Quelin +sub _get_changes +{ + my $newver = shift; + + # parse changelog to find commit message + open(my $fh, '<', $changes_file) or die "cannot open $changes_file: $!"; + my $changelog = join('', <$fh>); + close $fh; + + my @content = + grep { /^$newver(?:$trial_token)?(?:\s+|$)/ ... /^\S/ } # from newver to un-indented + split /\n/, $changelog; + shift @content; # drop the version line + + # drop unindented last line and trailing blank lines + pop @content while ( @content && $content[-1] =~ /^(?:\S|\s*$)/ ); + + # return number of non-blank lines + return scalar @content; +} + diff -Nru libnumber-tolerant-perl-1.701/xt/release/pod-syntax.t libnumber-tolerant-perl-1.702/xt/release/pod-syntax.t --- libnumber-tolerant-perl-1.701/xt/release/pod-syntax.t 1970-01-01 00:00:00.000000000 +0000 +++ libnumber-tolerant-perl-1.702/xt/release/pod-syntax.t 2013-10-07 14:22:23.000000000 +0000 @@ -0,0 +1,7 @@ +#!perl +use Test::More; + +eval "use Test::Pod 1.41"; +plan skip_all => "Test::Pod 1.41 required for testing POD" if $@; + +all_pod_files_ok();