Projects
Mega:23.09
perl-Class-Method-Modifiers
Sign Up
Log In
Username
Password
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 3
View file
_service:tar_scm:perl-Class-Method-Modifiers.spec
Changed
@@ -1,6 +1,6 @@ Name: perl-Class-Method-Modifiers -Version: 2.12 -Release: 12 +Version: 2.15 +Release: 1 Summary: Provides Moose-like method modifiers License: GPL+ or Artistic URL: https://metacpan.org/release/Class-Method-Modifiers @@ -50,5 +50,8 @@ %{_mandir}/man3/Class::Method::Modifiers.3* %changelog +* Mon Jul 10 2023 leeffo <liweiganga@uniontech.com> - 2.15-1 +- upgrade to version 2.15 + * Wed Jan 8 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.12-12 - Package init
View file
_service:tar_scm:perl-Class-Method-Modifiers.yaml
Changed
@@ -1,4 +1,4 @@ version_control: metacpan src_repo: Class-Method-Modifiers tag_prefix: ^v -seperator: . +separator: .
View file
_service
Changed
@@ -2,7 +2,7 @@ <service name="tar_scm"> <param name="url">git@gitee.com:src-openeuler/perl-Class-Method-Modifiers.git</param> <param name="scm">git</param> - <param name="revision">openEuler-23.09</param> + <param name="revision">master</param> <param name="exclude">*</param> <param name="extract">*</param> </service>
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/lib
Deleted
-(directory)
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/lib/Class
Deleted
-(directory)
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/xt
Deleted
-(directory)
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/xt/release/distmeta.t
Deleted
@@ -1,6 +0,0 @@ -#!perl -# This file was automatically generated by Dist::Zilla::Plugin::MetaTests. - -use Test::CPAN::Meta; - -meta_yaml_ok();
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/xt/release/minimum-version.t
Deleted
@@ -1,8 +0,0 @@ -#!perl - -use Test::More; - -eval "use Test::MinimumVersion"; -plan skip_all => "Test::MinimumVersion required for testing minimum versions" - if $@; -all_minimum_version_ok( qq{5.006000} );
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/xt/release/pod-no404s.t
Deleted
@@ -1,21 +0,0 @@ -#!perl - -use strict; -use warnings; -use Test::More; - -foreach my $env_skip ( qw( - SKIP_POD_NO404S - AUTOMATED_TESTING -) ){ - plan skip_all => "\$ENV{$env_skip} is set, skipping" - if $ENV{$env_skip}; -} - -eval "use Test::Pod::No404s"; -if ( $@ ) { - plan skip_all => 'Test::Pod::No404s required for testing POD'; -} -else { - all_pod_files_ok(); -}
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/xt/release/portability.t
Deleted
@@ -1,12 +0,0 @@ -#!perl - -use strict; -use warnings; - -use Test::More; - -eval 'use Test::Portability::Files'; -plan skip_all => 'Test::Portability::Files required for testing portability' - if $@; - -run_tests();
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/CONTRIBUTING -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/CONTRIBUTING
Changed
@@ -21,8 +21,8 @@ $ prove -lv t/some_test_file.t $ prove -lvr t/ -In most cases, 'prove' is entirely sufficent for you to test any -patches you have. +In most cases, 'prove' is entirely sufficient for you to test any patches you +have. You may need to satisfy some dependencies. The easiest way to satisfy dependencies is to install the last release -- this is available at @@ -72,13 +72,22 @@ You can learn more about Dist::Zilla at http://dzil.org/. The code for this distribution is hosted at GitHub. The repository is: + https://github.com/moose/Class-Method-Modifiers + You can submit code changes by forking the repository, pushing your code -changes to your clone, and then submitting a pull request. Detailed -instructions for doing that is available here: +changes to your clone, and then submitting a pull request. Please include a +suitable end-user-oriented entry in the Changes file describing your change. +Detailed instructions for doing that is available here: https://help.github.com/articles/creating-a-pull-request +All pull requests for this distribution will be automatically tested on Linux +by Travis at: https://travis-ci.com/moose/Class-Method-Modifiers +Results will be visible in the pull request on GitHub. Follow the appropriate +links for details when tests fail. Changes will not be mergeable until all +tests pass. + If you have found a bug, but do not have an accompanying patch to fix it, you can submit an issue report here: https://rt.cpan.org/Public/Dist/Display.html?Name=Class-Method-Modifiers @@ -92,5 +101,5 @@ request to the .mailmap file to contain the correct mapping. -This file was generated via Dist::Zilla::Plugin::GenerateFile::FromShareDir 0.009 from a -template file originating in Dist-Zilla-PluginBundle-Author-ETHER-0.111. +This file was generated via Dist::Zilla::Plugin::GenerateFile::FromShareDir 0.015 +from a template file originating in Dist-Zilla-PluginBundle-Author-ETHER-0.162.
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/Changes -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/Changes
Changed
@@ -1,5 +1,17 @@ Revision history for Class-Method-Modifiers +2.15 2023-03-05 23:42:48Z + - localize $SIG{__DIE__} before calling eval (closes RT#146848; Yves + Orton) + +2.14 2023-01-16 21:26:04Z + - remove Test::Fatal and Test::Needs from test prereqs (PRs #7, #8, + Graham Knop) + +2.13 2019-08-10 00:18:50Z + - bypass prototypes when testing for lvalue attribute + - fixed a class name in tests to avoid conflicting with a core module + 2.12 2016-03-04 22:12:15Z - minor documentation tweaks
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/INSTALL -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/INSTALL
Changed
@@ -8,10 +8,10 @@ % cpanm Class::Method::Modifiers -If you are installing into a system-wide directory, you may need to pass the -"-S" flag to cpanm, which uses sudo to install the module: - - % cpanm -S Class::Method::Modifiers +If it does not have permission to install modules to the current perl, cpanm +will automatically set up and install to a local::lib in your home directory. +See the local::lib documentation (https://metacpan.org/pod/local::lib) for +details on enabling it in your environment. ## Installing with the CPAN shell @@ -21,8 +21,11 @@ ## Manual installation -As a last resort, you can manually install it. Download the tarball, untar it, -then build it: +As a last resort, you can manually install it. If you have not already +downloaded the release tarball, you can find the download link on the module's +MetaCPAN page: https://metacpan.org/pod/Class::Method::Modifiers + +Untar the tarball, install configure prerequisites (see below), then build it: % perl Makefile.PL % make && make test @@ -31,13 +34,42 @@ % make install -If you are installing into a system-wide directory, you may need to run: +On Windows platforms, you should use `dmake` or `nmake`, instead of `make`. + +If your perl is system-managed, you can create a local::lib in your home +directory to install modules to. For details, see the local::lib documentation: +https://metacpan.org/pod/local::lib + +The prerequisites of this distribution will also have to be installed manually. The +prerequisites are listed in one of the files: `MYMETA.yml` or `MYMETA.json` generated +by running the manual build process described above. + +## Configure Prerequisites - % sudo make install +This distribution requires other modules to be installed before this +distribution's installer can be run. They can be found under the +"configure_requires" key of META.yml or the +"{prereqs}{configure}{requires}" key of META.json. + +## Other Prerequisites + +This distribution may require additional modules to be installed after running +Makefile.PL. +Look for prerequisites in the following phases: + +* to run make, PHASE = build +* to use the module code itself, PHASE = runtime +* to run tests, PHASE = test + +They can all be found in the "PHASE_requires" key of MYMETA.yml or the +"{prereqs}{PHASE}{requires}" key of MYMETA.json. ## Documentation Class-Method-Modifiers documentation is available as POD. -You can run perldoc from a shell to read the documentation: +You can run `perldoc` from a shell to read the documentation: % perldoc Class::Method::Modifiers + +For more information on installing Perl modules via CPAN, please see: +https://www.cpan.org/modules/INSTALL.html
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/LICENSE -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/LICENSE
Changed
@@ -292,21 +292,21 @@ - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through - textual modification. + textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright - Holder. + Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for - the package. + the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the - computing community at large as a market that must bear the fee.) + computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they - received it. + received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you @@ -373,7 +373,7 @@ 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF -MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/MANIFEST -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/MANIFEST
Changed
@@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.043. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.030. CONTRIBUTING Changes INSTALL @@ -42,16 +42,15 @@ t/140-lvalue.t xt/author/00-compile.t xt/author/clean-namespaces.t +xt/author/distmeta.t xt/author/eol.t xt/author/kwalitee.t +xt/author/minimum-version.t xt/author/mojibake.t xt/author/no-tabs.t xt/author/pod-coverage.t xt/author/pod-spell.t xt/author/pod-syntax.t +xt/author/portability.t xt/release/changes_has_content.t xt/release/cpan-changes.t -xt/release/distmeta.t -xt/release/minimum-version.t -xt/release/pod-no404s.t -xt/release/portability.t
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/META.json -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/META.json
Changed
@@ -4,7 +4,7 @@ "Shawn M Moore <sartak@gmail.com>" , "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 5.043, CPAN::Meta::Converter version 2.150005", + "generated_by" : "Dist::Zilla version 6.030, CPAN::Meta::Converter version 2.150010", "keywords" : "method", "wrap", @@ -34,28 +34,79 @@ }, "develop" : { "recommends" : { - "Dist::Zilla::PluginBundle::Author::ETHER" : "0.111" + "Dist::Zilla::PluginBundle::Author::ETHER" : "0.162", + "Dist::Zilla::PluginBundle::Git::VersionManager" : "0.007" }, "requires" : { + "Encode" : "0", + "File::Spec" : "0", + "IO::Handle" : "0", + "IPC::Open3" : "0", + "Perl::MinimumVersion" : "1.35", + "Pod::Coverage::TrustPod" : "0", + "Pod::Wordlist" : "0", + "Test::CPAN::Changes" : "0.19", + "Test::CPAN::Meta" : "0", + "Test::CleanNamespaces" : "0.15", + "Test::EOL" : "0", + "Test::Kwalitee" : "1.21", + "Test::MinimumVersion" : "0", + "Test::Mojibake" : "0", + "Test::More" : "0.96", + "Test::NoTabs" : "0", + "Test::Pod" : "1.41", + "Test::Pod::Coverage" : "1.08", + "Test::Portability::Files" : "0", + "Test::Spelling" : "0.12", + "Test::Warnings" : "0", + "perl" : "5.006" + } + }, + "runtime" : { + "requires" : { + "B" : "0", + "Carp" : "0", + "Exporter" : "0", + "base" : "0", + "perl" : "5.006", + "strict" : "0", + "warnings" : "0" + } + }, + "test" : { + "recommends" : { + "CPAN::Meta" : "2.120900" + }, + "requires" : { + "ExtUtils::MakeMaker" : "0", + "File::Spec" : "0", + "Test::More" : "0.88", + "if" : "0", + "perl" : "5.006" + } + }, + "x_Dist_Zilla" : { + "requires" : { "Dist::Zilla" : "5", "Dist::Zilla::Plugin::Authority" : "1.009", - "Dist::Zilla::Plugin::AuthorityFromModule" : "0.002", "Dist::Zilla::Plugin::AutoMetaResources" : "0", "Dist::Zilla::Plugin::AutoPrereqs" : "5.038", "Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional" : "0.004", "Dist::Zilla::Plugin::CheckIssues" : "0", - "Dist::Zilla::Plugin::CheckPrereqsIndexed" : "0", + "Dist::Zilla::Plugin::CheckMetaResources" : "0", + "Dist::Zilla::Plugin::CheckPrereqsIndexed" : "0.019", "Dist::Zilla::Plugin::CheckSelfDependency" : "0", "Dist::Zilla::Plugin::CheckStrictVersion" : "0", "Dist::Zilla::Plugin::ConfirmRelease" : "0", "Dist::Zilla::Plugin::CopyFilesFromRelease" : "0", + "Dist::Zilla::Plugin::EnsureLatestPerl" : "0", "Dist::Zilla::Plugin::FileFinder::ByName" : "0", "Dist::Zilla::Plugin::GenerateFile::FromShareDir" : "0", "Dist::Zilla::Plugin::Git::Check" : "0", "Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch" : "0.004", "Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts" : "0", "Dist::Zilla::Plugin::Git::Commit" : "2.020", - "Dist::Zilla::Plugin::Git::Contributors" : "0.004", + "Dist::Zilla::Plugin::Git::Contributors" : "0.029", "Dist::Zilla::Plugin::Git::Describe" : "0.004", "Dist::Zilla::Plugin::Git::GatherDir" : "2.016", "Dist::Zilla::Plugin::Git::Push" : "0", @@ -80,87 +131,41 @@ "Dist::Zilla::Plugin::OnlyCorePrereqs" : "0", "Dist::Zilla::Plugin::PodCoverageTests" : "5.040", "Dist::Zilla::Plugin::PodSyntaxTests" : "5.040", - "Dist::Zilla::Plugin::PodWeaver" : "4.005", + "Dist::Zilla::Plugin::PodWeaver" : "4.008", "Dist::Zilla::Plugin::Prereqs" : "0", - "Dist::Zilla::Plugin::Prereqs::AuthorDeps" : "0", + "Dist::Zilla::Plugin::Prereqs::AuthorDeps" : "0.006", "Dist::Zilla::Plugin::PromptIfStale" : "0", "Dist::Zilla::Plugin::Readme" : "0", "Dist::Zilla::Plugin::ReadmeAnyFromPod" : "0.142180", - "Dist::Zilla::Plugin::RewriteVersion::Transitional" : "0.004", - "Dist::Zilla::Plugin::Run::AfterBuild" : "0.038", + "Dist::Zilla::Plugin::RewriteVersion::Transitional" : "0.006", + "Dist::Zilla::Plugin::Run::AfterBuild" : "0.041", "Dist::Zilla::Plugin::Run::AfterRelease" : "0.038", "Dist::Zilla::Plugin::RunExtraTests" : "0.024", "Dist::Zilla::Plugin::StaticInstall" : "0.005", - "Dist::Zilla::Plugin::Test::CPAN::Changes" : "0.008", + "Dist::Zilla::Plugin::Test::CPAN::Changes" : "0.012", "Dist::Zilla::Plugin::Test::ChangesHasContent" : "0", "Dist::Zilla::Plugin::Test::CleanNamespaces" : "0.006", "Dist::Zilla::Plugin::Test::Compile" : "2.039", "Dist::Zilla::Plugin::Test::EOL" : "0.17", "Dist::Zilla::Plugin::Test::Kwalitee" : "2.10", - "Dist::Zilla::Plugin::Test::MinimumVersion" : "2.000003", + "Dist::Zilla::Plugin::Test::MinimumVersion" : "2.000010", "Dist::Zilla::Plugin::Test::NoTabs" : "0.08", - "Dist::Zilla::Plugin::Test::Pod::No404s" : "1.002", "Dist::Zilla::Plugin::Test::PodSpelling" : "2.006003", - "Dist::Zilla::Plugin::Test::Portability" : "0", - "Dist::Zilla::Plugin::Test::ReportPrereqs" : "0.019", + "Dist::Zilla::Plugin::Test::Portability" : "2.000007", + "Dist::Zilla::Plugin::Test::ReportPrereqs" : "0.022", "Dist::Zilla::Plugin::TestRelease" : "0", "Dist::Zilla::Plugin::UploadToCPAN" : "0", - "Dist::Zilla::PluginBundle::Author::ETHER" : "0.094", - "File::Spec" : "0", - "IO::Handle" : "0", - "IPC::Open3" : "0", - "Moose" : "0", - "Perl::MinimumVersion" : "1.35", - "Pod::Coverage::TrustPod" : "0", - "Pod::Wordlist" : "0", - "Software::License::Perl_5" : "0", - "Test::CPAN::Changes" : "0.19", - "Test::CPAN::Meta" : "0", - "Test::CleanNamespaces" : "0.15", - "Test::EOL" : "0", - "Test::Kwalitee" : "1.21", - "Test::Mojibake" : "0", - "Test::More" : "0.96", - "Test::NoTabs" : "0", - "Test::Pod" : "1.41", - "Test::Pod::Coverage" : "1.08", - "Test::Pod::No404s" : "0", - "Test::Spelling" : "0.12", - "Test::Warnings" : "0", - "blib" : "1.01", - "perl" : "5.006" - } - }, - "runtime" : { - "requires" : { - "B" : "0", - "Carp" : "0", - "Exporter" : "0", - "base" : "0", - "perl" : "5.006", - "strict" : "0", - "warnings" : "0" - } - }, - "test" : { - "recommends" : { - "CPAN::Meta" : "2.120900" - }, - "requires" : { - "ExtUtils::MakeMaker" : "0", - "File::Spec" : "0", - "Test::Fatal" : "0", - "Test::More" : "0.88", - "Test::Requires" : "0", - "if" : "0", - "perl" : "5.006" + "Dist::Zilla::Plugin::UseUnsafeInc" : "0", + "Dist::Zilla::PluginBundle::Author::ETHER" : "0.119", + "Dist::Zilla::PluginBundle::Git::VersionManager" : "0.007", + "Software::License::Perl_5" : "0" } } }, "provides" : { "Class::Method::Modifiers" : { "file" : "lib/Class/Method/Modifiers.pm", - "version" : "2.12" + "version" : "2.15" } }, "release_status" : "stable", @@ -176,10 +181,10 @@ "web" : "https://github.com/moose/Class-Method-Modifiers" } }, - "version" : "2.12", + "version" : "2.15",
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/META.yml -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/META.yml
Changed
@@ -5,16 +5,14 @@ build_requires: ExtUtils::MakeMaker: '0' File::Spec: '0' - Test::Fatal: '0' Test::More: '0.88' - Test::Requires: '0' if: '0' perl: '5.006' configure_requires: ExtUtils::MakeMaker: '0' perl: '5.006' dynamic_config: 0 -generated_by: 'Dist::Zilla version 5.043, CPAN::Meta::Converter version 2.150005' +generated_by: 'Dist::Zilla version 6.030, CPAN::Meta::Converter version 2.150010' keywords: - method - wrap @@ -32,7 +30,7 @@ provides: Class::Method::Modifiers: file: lib/Class/Method/Modifiers.pm - version: '2.12' + version: '2.15' requires: B: '0' Carp: '0' @@ -45,32 +43,19 @@ bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=Class-Method-Modifiers homepage: https://github.com/moose/Class-Method-Modifiers repository: https://github.com/moose/Class-Method-Modifiers.git -version: '2.12' +version: '2.15' x_Dist_Zilla: perl: - version: '5.023008' + version: '5.037009' plugins: - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: develop - type: requires - name: '@Author::ETHER/bundle_plugins' - version: '5.043' - - - class: Dist::Zilla::Plugin::RewriteVersion::Transitional - config: - Dist::Zilla::Plugin::RewriteVersion: - add_tarball_name: 0 - finders: - - ':ExecFiles' - - ':InstallModules' - global: 1 - skip_version_provider: 0 - Dist::Zilla::Plugin::RewriteVersion::Transitional: {} - name: '@Author::ETHER/RewriteVersion::Transitional' - version: '0.007' + type: recommends + name: '@Author::ETHER/pluginbundle version' + version: '6.030' - class: Dist::Zilla::Plugin::PromptIfStale config: @@ -80,30 +65,21 @@ modules: - Dist::Zilla::PluginBundle::Author::ETHER phase: build + run_under_travis: 0 skip: name: '@Author::ETHER/stale modules, build' - version: '0.047' - - - class: Dist::Zilla::Plugin::PromptIfStale - config: - Dist::Zilla::Plugin::PromptIfStale: - check_all_plugins: 1 - check_all_prereqs: 1 - modules: - phase: release - skip: - name: '@Author::ETHER/stale modules, release' - version: '0.047' + version: '0.057' - class: Dist::Zilla::Plugin::FileFinder::ByName name: '@Author::ETHER/Examples' - version: '5.043' + version: '6.030' - class: Dist::Zilla::Plugin::Git::GatherDir config: Dist::Zilla::Plugin::GatherDir: exclude_filename: - CONTRIBUTING + - INSTALL - LICENSE - README.pod exclude_match: @@ -115,27 +91,27 @@ Dist::Zilla::Plugin::Git::GatherDir: include_untracked: 0 name: '@Author::ETHER/Git::GatherDir' - version: '2.036' + version: '2.048' - class: Dist::Zilla::Plugin::MetaYAML name: '@Author::ETHER/MetaYAML' - version: '5.043' + version: '6.030' - class: Dist::Zilla::Plugin::MetaJSON name: '@Author::ETHER/MetaJSON' - version: '5.043' + version: '6.030' - class: Dist::Zilla::Plugin::Readme name: '@Author::ETHER/Readme' - version: '5.043' + version: '6.030' - class: Dist::Zilla::Plugin::Manifest name: '@Author::ETHER/Manifest' - version: '5.043' + version: '6.030' - class: Dist::Zilla::Plugin::License name: '@Author::ETHER/License' - version: '5.043' + version: '6.030' - class: Dist::Zilla::Plugin::GenerateFile::FromShareDir config: @@ -149,18 +125,22 @@ Dist::Zilla::Role::RepoFileInjector: allow_overwrite: 1 repo_root: . - version: '0.005' + version: '0.009' name: '@Author::ETHER/generate CONTRIBUTING' - version: '0.009' + version: '0.015' - class: Dist::Zilla::Plugin::InstallGuide + config: + Dist::Zilla::Role::ModuleMetadata: + Module::Metadata: '1.000037' + version: '0.006' name: '@Author::ETHER/InstallGuide' - version: '1.200006' + version: '1.200014' - class: Dist::Zilla::Plugin::Test::Compile config: Dist::Zilla::Plugin::Test::Compile: - bail_out_on_fail: '1' + bail_out_on_fail: 1 fail_on_warning: author fake_home: 0 filename: xt/author/00-compile.t @@ -172,8 +152,9 @@ - ':PerlExecFiles' - '@Author::ETHER/Examples' skips: + switch: name: '@Author::ETHER/Test::Compile' - version: '2.054' + version: '2.058' - class: Dist::Zilla::Plugin::Test::NoTabs config: @@ -193,53 +174,60 @@ Dist::Zilla::Plugin::Test::EOL: filename: xt/author/eol.t finder: - - ':InstallModules' - ':ExecFiles' - - '@Author::ETHER/Examples' - - ':TestFiles' - ':ExtraTestFiles' - trailing_whitespace: '1' + - ':InstallModules' + - ':TestFiles' + - '@Author::ETHER/Examples' + trailing_whitespace: 1 name: '@Author::ETHER/Test::EOL' - version: '0.18' + version: '0.19' - class: Dist::Zilla::Plugin::MetaTests name: '@Author::ETHER/MetaTests' - version: '5.043' + version: '6.030' - class: Dist::Zilla::Plugin::Test::CPAN::Changes + config: + Dist::Zilla::Plugin::Test::CPAN::Changes: + changelog: Changes name: '@Author::ETHER/Test::CPAN::Changes'
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/Makefile.PL -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/Makefile.PL
Changed
@@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.043. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.030. use strict; use warnings; @@ -27,12 +27,10 @@ "TEST_REQUIRES" => { "ExtUtils::MakeMaker" => 0, "File::Spec" => 0, - "Test::Fatal" => 0, "Test::More" => "0.88", - "Test::Requires" => 0, "if" => 0 }, - "VERSION" => "2.12", + "VERSION" => "2.15", "test" => { "TESTS" => "t/*.t" } @@ -45,9 +43,7 @@ "Exporter" => 0, "ExtUtils::MakeMaker" => 0, "File::Spec" => 0, - "Test::Fatal" => 0, "Test::More" => "0.88", - "Test::Requires" => 0, "base" => 0, "if" => 0, "strict" => 0,
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/README -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/README
Changed
@@ -1,7 +1,5 @@ - - This archive contains the distribution Class-Method-Modifiers, -version 2.12: +version 2.15: Provides Moose-like method modifiers @@ -11,5 +9,4 @@ the same terms as the Perl 5 programming language system itself. -This README file was generated by Dist::Zilla::Plugin::Readme v5.043. - +This README file was generated by Dist::Zilla::Plugin::Readme v6.030.
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/dist.ini -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/dist.ini
Changed
@@ -5,9 +5,9 @@ license = Perl_5 @Author::ETHER -:version = 0.094 -installer = MakeMaker ; MBT is not yet 5.6-friendly -Authority.authority = cpan:SARTAK +:version = 0.119 +installer = MakeMaker ; stay 5.6-friendly +authority = cpan:SARTAK Test::MinimumVersion.max_target_perl = 5.006000 Test::ReportPrereqs.include0 = Moose Test::ReportPrereqs.include1 = Moo @@ -16,17 +16,18 @@ Test::ReportPrereqs.include4 = Sub::Name Test::ReportPrereqs.include5 = namespace::clean Test::ReportPrereqs.include6 = namespace::autoclean +-remove = Test::Pod::No404s ; temporary? aaroncrane.co.uk is unreachable Prereqs / RuntimeRequires Exporter = 0 Prereqs / DevelopRequires Test::Warnings = 0 -Moose = 0 Perl::MinimumVersion = 1.35 ; for RT#89173 OnlyCorePrereqs phase = configure phase = build phase = runtime +phase = test check_dual_life_versions = 0
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/lib/Class/Method/Modifiers.pm -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/lib/Class/Method/Modifiers.pm
Changed
@@ -1,11 +1,11 @@ use strict; use warnings; -package Class::Method::Modifiers; # git description: v2.11-20-g6902f76 +package Class::Method::Modifiers; # git description: v2.14-6-gede37cf # ABSTRACT: Provides Moose-like method modifiers # KEYWORDS: method wrap modification patch # vim: set ts=8 sts=4 sw=4 tw=115 et : -our $VERSION = '2.12'; +our $VERSION = '2.15'; use base 'Exporter'; @@ -208,7 +208,10 @@ my ($coderef) = @_; local *_sub = $coderef; local $@; - (eval 'sub { _sub = 1 }') ? ':lvalue' : ''; + local $SIG{__DIE__}; + # this assignment will fail to compile if it isn't an lvalue sub. we + # never want to actually call the sub though, so we return early. + (eval 'return 1; &_sub = 1') ? ':lvalue' : ''; } sub _is_in_package { @@ -232,12 +235,12 @@ =head1 VERSION -version 2.12 +version 2.15 =head1 SYNOPSIS package Child; - use parent 'Parent'; + use parent 'MyParent'; use Class::Method::Modifiers; sub new_method { } @@ -277,7 +280,7 @@ C<after>. C<before> and C<after> are run just before and after the method they modify, but can not really affect that original method. C<around> is run in place of the original method, with a hook to easily call that original method. -See the C<MODIFIERS> section for more details on how the particular modifiers +See the L</MODIFIERS> section for more details on how the particular modifiers work. One clear benefit of using C<Class::Method::Modifiers> is that you can define @@ -295,7 +298,7 @@ call C<< $self->SUPER::foo(@_) >>, and provides a cleaner interface for it. As of version 1.00, C<Class::Method::Modifiers> is faster in some cases than -L<Moose>. See C<benchmark/method_modifiers.pl> in the L<Moose> distribution. +L<Moose>. See F<benchmark/method_modifiers.pl> in the L<Moose> distribution. C<Class::Method::Modifiers> also provides an additional "modifier" type, C<fresh>; see below. @@ -485,7 +488,7 @@ =item * -L<MRO::Compat>, +L<MRO::Compat> =item * @@ -493,7 +496,7 @@ =back -=head1 ACKNOWLEDGEMENTS +=head1 ACKNOWLEDGMENTS =for stopwords Stevan @@ -513,7 +516,7 @@ =head1 CONTRIBUTORS -=for stopwords Karen Etheridge Shawn M Moore Graham Knop Aaron Crane Peter Rabbitson Justin Hunter David Steinbrunner gfx mannih +=for stopwords Karen Etheridge Shawn M Moore Graham Knop Aaron Crane Peter Rabbitson David Steinbrunner gfx Justin Hunter mannih Yves Orton =over 4 @@ -539,20 +542,24 @@ =item * -Justin Hunter <justin.d.hunter@gmail.com> +David Steinbrunner <dsteinbrunner@pobox.com> =item * -David Steinbrunner <dsteinbrunner@pobox.com> +gfx <gfuji@cpan.org> =item * -gfx <gfuji@cpan.org> +Justin Hunter <justin.d.hunter@gmail.com> =item * mannih <github@lxxi.org> +=item * + +Yves Orton <demerphq@gmail.com> + =back =head1 COPYRIGHT AND LICENSE
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/00-report-prereqs.dd -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/00-report-prereqs.dd
Changed
@@ -7,100 +7,31 @@ }, 'develop' => { 'recommends' => { - 'Dist::Zilla::PluginBundle::Author::ETHER' => '0.111' + 'Dist::Zilla::PluginBundle::Author::ETHER' => '0.162', + 'Dist::Zilla::PluginBundle::Git::VersionManager' => '0.007' }, 'requires' => { - 'Dist::Zilla' => '5', - 'Dist::Zilla::Plugin::Authority' => '1.009', - 'Dist::Zilla::Plugin::AuthorityFromModule' => '0.002', - 'Dist::Zilla::Plugin::AutoMetaResources' => '0', - 'Dist::Zilla::Plugin::AutoPrereqs' => '5.038', - 'Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional' => '0.004', - 'Dist::Zilla::Plugin::CheckIssues' => '0', - 'Dist::Zilla::Plugin::CheckPrereqsIndexed' => '0', - 'Dist::Zilla::Plugin::CheckSelfDependency' => '0', - 'Dist::Zilla::Plugin::CheckStrictVersion' => '0', - 'Dist::Zilla::Plugin::ConfirmRelease' => '0', - 'Dist::Zilla::Plugin::CopyFilesFromRelease' => '0', - 'Dist::Zilla::Plugin::FileFinder::ByName' => '0', - 'Dist::Zilla::Plugin::GenerateFile::FromShareDir' => '0', - 'Dist::Zilla::Plugin::Git::Check' => '0', - 'Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch' => '0.004', - 'Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts' => '0', - 'Dist::Zilla::Plugin::Git::Commit' => '2.020', - 'Dist::Zilla::Plugin::Git::Contributors' => '0.004', - 'Dist::Zilla::Plugin::Git::Describe' => '0.004', - 'Dist::Zilla::Plugin::Git::GatherDir' => '2.016', - 'Dist::Zilla::Plugin::Git::Push' => '0', - 'Dist::Zilla::Plugin::Git::Remote::Check' => '0', - 'Dist::Zilla::Plugin::Git::Tag' => '0', - 'Dist::Zilla::Plugin::GitHub::Update' => '0.40', - 'Dist::Zilla::Plugin::GithubMeta' => '0.54', - 'Dist::Zilla::Plugin::InstallGuide' => '1.200005', - 'Dist::Zilla::Plugin::Keywords' => '0.004', - 'Dist::Zilla::Plugin::License' => '5.038', - 'Dist::Zilla::Plugin::MakeMaker' => '0', - 'Dist::Zilla::Plugin::Manifest' => '0', - 'Dist::Zilla::Plugin::MetaConfig' => '0', - 'Dist::Zilla::Plugin::MetaJSON' => '0', - 'Dist::Zilla::Plugin::MetaNoIndex' => '0', - 'Dist::Zilla::Plugin::MetaProvides::Package' => '1.15000002', - 'Dist::Zilla::Plugin::MetaTests' => '0', - 'Dist::Zilla::Plugin::MetaYAML' => '0', - 'Dist::Zilla::Plugin::MinimumPerl' => '1.006', - 'Dist::Zilla::Plugin::MojibakeTests' => '0.8', - 'Dist::Zilla::Plugin::NextRelease' => '5.033', - 'Dist::Zilla::Plugin::OnlyCorePrereqs' => '0', - 'Dist::Zilla::Plugin::PodCoverageTests' => '5.040', - 'Dist::Zilla::Plugin::PodSyntaxTests' => '5.040', - 'Dist::Zilla::Plugin::PodWeaver' => '4.005', - 'Dist::Zilla::Plugin::Prereqs' => '0', - 'Dist::Zilla::Plugin::Prereqs::AuthorDeps' => '0', - 'Dist::Zilla::Plugin::PromptIfStale' => '0', - 'Dist::Zilla::Plugin::Readme' => '0', - 'Dist::Zilla::Plugin::ReadmeAnyFromPod' => '0.142180', - 'Dist::Zilla::Plugin::RewriteVersion::Transitional' => '0.004', - 'Dist::Zilla::Plugin::Run::AfterBuild' => '0.038', - 'Dist::Zilla::Plugin::Run::AfterRelease' => '0.038', - 'Dist::Zilla::Plugin::RunExtraTests' => '0.024', - 'Dist::Zilla::Plugin::StaticInstall' => '0.005', - 'Dist::Zilla::Plugin::Test::CPAN::Changes' => '0.008', - 'Dist::Zilla::Plugin::Test::ChangesHasContent' => '0', - 'Dist::Zilla::Plugin::Test::CleanNamespaces' => '0.006', - 'Dist::Zilla::Plugin::Test::Compile' => '2.039', - 'Dist::Zilla::Plugin::Test::EOL' => '0.17', - 'Dist::Zilla::Plugin::Test::Kwalitee' => '2.10', - 'Dist::Zilla::Plugin::Test::MinimumVersion' => '2.000003', - 'Dist::Zilla::Plugin::Test::NoTabs' => '0.08', - 'Dist::Zilla::Plugin::Test::Pod::No404s' => '1.002', - 'Dist::Zilla::Plugin::Test::PodSpelling' => '2.006003', - 'Dist::Zilla::Plugin::Test::Portability' => '0', - 'Dist::Zilla::Plugin::Test::ReportPrereqs' => '0.019', - 'Dist::Zilla::Plugin::TestRelease' => '0', - 'Dist::Zilla::Plugin::UploadToCPAN' => '0', - 'Dist::Zilla::PluginBundle::Author::ETHER' => '0.094', + 'Encode' => '0', 'File::Spec' => '0', 'IO::Handle' => '0', 'IPC::Open3' => '0', - 'Moose' => '0', 'Perl::MinimumVersion' => '1.35', 'Pod::Coverage::TrustPod' => '0', 'Pod::Wordlist' => '0', - 'Software::License::Perl_5' => '0', 'Test::CPAN::Changes' => '0.19', 'Test::CPAN::Meta' => '0', 'Test::CleanNamespaces' => '0.15', 'Test::EOL' => '0', 'Test::Kwalitee' => '1.21', + 'Test::MinimumVersion' => '0', 'Test::Mojibake' => '0', 'Test::More' => '0.96', 'Test::NoTabs' => '0', 'Test::Pod' => '1.41', 'Test::Pod::Coverage' => '1.08', - 'Test::Pod::No404s' => '0', + 'Test::Portability::Files' => '0', 'Test::Spelling' => '0.12', 'Test::Warnings' => '0', - 'blib' => '1.01', 'perl' => '5.006' } }, @@ -122,13 +53,87 @@ 'requires' => { 'ExtUtils::MakeMaker' => '0', 'File::Spec' => '0', - 'Test::Fatal' => '0', 'Test::More' => '0.88', - 'Test::Requires' => '0', 'if' => '0', 'perl' => '5.006' } - } + }, + 'x_Dist_Zilla' => { + 'requires' => { + 'Dist::Zilla' => '5', + 'Dist::Zilla::Plugin::Authority' => '1.009', + 'Dist::Zilla::Plugin::AutoMetaResources' => '0', + 'Dist::Zilla::Plugin::AutoPrereqs' => '5.038', + 'Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional' => '0.004', + 'Dist::Zilla::Plugin::CheckIssues' => '0', + 'Dist::Zilla::Plugin::CheckMetaResources' => '0', + 'Dist::Zilla::Plugin::CheckPrereqsIndexed' => '0.019', + 'Dist::Zilla::Plugin::CheckSelfDependency' => '0', + 'Dist::Zilla::Plugin::CheckStrictVersion' => '0', + 'Dist::Zilla::Plugin::ConfirmRelease' => '0', + 'Dist::Zilla::Plugin::CopyFilesFromRelease' => '0', + 'Dist::Zilla::Plugin::EnsureLatestPerl' => '0', + 'Dist::Zilla::Plugin::FileFinder::ByName' => '0', + 'Dist::Zilla::Plugin::GenerateFile::FromShareDir' => '0', + 'Dist::Zilla::Plugin::Git::Check' => '0', + 'Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch' => '0.004', + 'Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts' => '0', + 'Dist::Zilla::Plugin::Git::Commit' => '2.020', + 'Dist::Zilla::Plugin::Git::Contributors' => '0.029', + 'Dist::Zilla::Plugin::Git::Describe' => '0.004', + 'Dist::Zilla::Plugin::Git::GatherDir' => '2.016', + 'Dist::Zilla::Plugin::Git::Push' => '0', + 'Dist::Zilla::Plugin::Git::Remote::Check' => '0', + 'Dist::Zilla::Plugin::Git::Tag' => '0', + 'Dist::Zilla::Plugin::GitHub::Update' => '0.40', + 'Dist::Zilla::Plugin::GithubMeta' => '0.54', + 'Dist::Zilla::Plugin::InstallGuide' => '1.200005', + 'Dist::Zilla::Plugin::Keywords' => '0.004', + 'Dist::Zilla::Plugin::License' => '5.038', + 'Dist::Zilla::Plugin::MakeMaker' => '0', + 'Dist::Zilla::Plugin::Manifest' => '0', + 'Dist::Zilla::Plugin::MetaConfig' => '0', + 'Dist::Zilla::Plugin::MetaJSON' => '0', + 'Dist::Zilla::Plugin::MetaNoIndex' => '0', + 'Dist::Zilla::Plugin::MetaProvides::Package' => '1.15000002', + 'Dist::Zilla::Plugin::MetaTests' => '0', + 'Dist::Zilla::Plugin::MetaYAML' => '0', + 'Dist::Zilla::Plugin::MinimumPerl' => '1.006', + 'Dist::Zilla::Plugin::MojibakeTests' => '0.8', + 'Dist::Zilla::Plugin::NextRelease' => '5.033', + 'Dist::Zilla::Plugin::OnlyCorePrereqs' => '0', + 'Dist::Zilla::Plugin::PodCoverageTests' => '5.040', + 'Dist::Zilla::Plugin::PodSyntaxTests' => '5.040', + 'Dist::Zilla::Plugin::PodWeaver' => '4.008', + 'Dist::Zilla::Plugin::Prereqs' => '0', + 'Dist::Zilla::Plugin::Prereqs::AuthorDeps' => '0.006', + 'Dist::Zilla::Plugin::PromptIfStale' => '0', + 'Dist::Zilla::Plugin::Readme' => '0', + 'Dist::Zilla::Plugin::ReadmeAnyFromPod' => '0.142180', + 'Dist::Zilla::Plugin::RewriteVersion::Transitional' => '0.006', + 'Dist::Zilla::Plugin::Run::AfterBuild' => '0.041', + 'Dist::Zilla::Plugin::Run::AfterRelease' => '0.038', + 'Dist::Zilla::Plugin::RunExtraTests' => '0.024', + 'Dist::Zilla::Plugin::StaticInstall' => '0.005', + 'Dist::Zilla::Plugin::Test::CPAN::Changes' => '0.012', + 'Dist::Zilla::Plugin::Test::ChangesHasContent' => '0', + 'Dist::Zilla::Plugin::Test::CleanNamespaces' => '0.006', + 'Dist::Zilla::Plugin::Test::Compile' => '2.039', + 'Dist::Zilla::Plugin::Test::EOL' => '0.17', + 'Dist::Zilla::Plugin::Test::Kwalitee' => '2.10', + 'Dist::Zilla::Plugin::Test::MinimumVersion' => '2.000010', + 'Dist::Zilla::Plugin::Test::NoTabs' => '0.08', + 'Dist::Zilla::Plugin::Test::PodSpelling' => '2.006003', + 'Dist::Zilla::Plugin::Test::Portability' => '2.000007', + 'Dist::Zilla::Plugin::Test::ReportPrereqs' => '0.022', + 'Dist::Zilla::Plugin::TestRelease' => '0', + 'Dist::Zilla::Plugin::UploadToCPAN' => '0', + 'Dist::Zilla::Plugin::UseUnsafeInc' => '0', + 'Dist::Zilla::PluginBundle::Author::ETHER' => '0.119', + 'Dist::Zilla::PluginBundle::Git::VersionManager' => '0.007', + 'Software::License::Perl_5' => '0' + } + } }; $x; } \ No newline at end of file
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/00-report-prereqs.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/00-report-prereqs.t
Changed
@@ -3,7 +3,7 @@ use strict; use warnings; -# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.024 +# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.029 use Test::More tests => 1; @@ -60,7 +60,14 @@ } my @include = qw( + Encode + File::Temp + JSON::PP + Module::Runtime Pod::Coverage + Sub::Name + YAML + autodie Moose Moo Role::Tiny @@ -75,7 +82,7 @@ ); # Add static prereqs to the included modules list -my $static_prereqs = do 't/00-report-prereqs.dd'; +my $static_prereqs = do './t/00-report-prereqs.dd'; # Merge all prereqs (either with ::Prereqs or a hashref) my $full_prereqs = _merge_prereqs( @@ -85,12 +92,14 @@ # Add dynamic prereqs to the included modules list (if we can) my ($source) = grep { -f } 'MYMETA.json', 'MYMETA.yml'; -if ( $source && $HAS_CPAN_META ) { - if ( my $meta = eval { CPAN::Meta->load_file($source) } ) { - $full_prereqs = _merge_prereqs($full_prereqs, $meta->prereqs); - } +my $cpan_meta_error; +if ( $source && $HAS_CPAN_META + && (my $meta = eval { CPAN::Meta->load_file($source) } ) +) { + $full_prereqs = _merge_prereqs($full_prereqs, $meta->prereqs); } else { + $cpan_meta_error = $@; # capture error from CPAN::Meta->load_file($source) $source = 'static metadata'; } @@ -114,20 +123,24 @@ my @reports = qw/Module Want Have/; for my $mod ( sort keys %{ $req_hash->{$phase}{$type} } ) { - next if $mod eq 'perl'; next if grep { $_ eq $mod } @exclude; - my $file = $mod; - $file =~ s{::}{/}g; - $file .= ".pm"; - my ($prefix) = grep { -e File::Spec->catfile($_, $file) } @INC; - my $want = $req_hash->{$phase}{$type}{$mod}; $want = "undef" unless defined $want; $want = "any" if !$want && $want == 0; + if ($mod eq 'perl') { + push @reports, 'perl', $want, $; + next; + } + my $req_string = $want eq 'any' ? 'any version required' : "version '$want' required"; + my $file = $mod; + $file =~ s{::}{/}g; + $file .= ".pm"; + my ($prefix) = grep { -e File::Spec->catfile($_, $file) } @INC; + if ($prefix) { my $have = MM->parse_version( File::Spec->catfile($prefix, $file) ); $have = "undef" unless defined $have; @@ -176,15 +189,23 @@ diag "\nVersions for all modules listed in $source (including optional ones):\n\n", @full_reports; } +if ( $cpan_meta_error || @dep_errors ) { + diag "\n*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***\n"; +} + +if ( $cpan_meta_error ) { + my ($orig_source) = grep { -f } 'MYMETA.json', 'MYMETA.yml'; + diag "\nCPAN::Meta->load_file('$orig_source') failed with: $cpan_meta_error\n"; +} + if ( @dep_errors ) { diag join("\n", - "\n*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***\n", - "The following REQUIRED prerequisites were not satisfied:\n", + "\nThe following REQUIRED prerequisites were not satisfied:\n", @dep_errors, "\n" ); } -pass; +pass('Reported prereqs'); # vim: ts=4 sts=4 sw=4 et:
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/001-error.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/001-error.t
Changed
@@ -2,14 +2,13 @@ use warnings; use Test::More 0.88; use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; -use Test::Fatal; do { package Class1; use Class::Method::Modifiers; - ::like( - ::exception { before foo => sub {}; }, + eval { before foo => sub {}; }; + ::like($@, qr/The method 'foo' is not found in the inheritance hierarchy for class Class1/, ); }; @@ -18,8 +17,9 @@ package Class2; use Class::Method::Modifiers; + eval { after foo => sub {}; }; ::like( - ::exception { after foo => sub {}; }, + $@, qr/The method 'foo' is not found in the inheritance hierarchy for class Class2/, ); }; @@ -28,8 +28,9 @@ package Class3; use Class::Method::Modifiers; + eval { around foo => sub {}; }; ::like( - ::exception { around foo => sub {}; }, + $@, qr/The method 'foo' is not found in the inheritance hierarchy for class Class3/, ); }; @@ -40,8 +41,9 @@ sub foo {} + eval { around 'foo', 'bar' => sub {}; }; ::like( - ::exception { around 'foo', 'bar' => sub {}; }, + $@, qr/The method 'bar' is not found in the inheritance hierarchy for class Class4/, ); };
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/003-basic.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/003-basic.t
Changed
@@ -6,59 +6,59 @@ my @calls; do { - package Parent; + package MyParent; use Class::Method::Modifiers; - sub original { push @calls, 'Parent::original' } - before original => sub { push @calls, 'before Parent::original' }; - after original => sub { push @calls, 'after Parent::original' }; + sub original { push @calls, 'MyParent::original' } + before original => sub { push @calls, 'before MyParent::original' }; + after original => sub { push @calls, 'after MyParent::original' }; }; -Parent->original; +MyParent->original; is_deeply(splice @calls, - 'before Parent::original', - 'Parent::original', - 'after Parent::original', + 'before MyParent::original', + 'MyParent::original', + 'after MyParent::original', ); do { - package Parent; + package MyParent; use Class::Method::Modifiers; - before original => sub { push @calls, 'before before Parent::original' }; - after original => sub { push @calls, 'after after Parent::original' }; + before original => sub { push @calls, 'before before MyParent::original' }; + after original => sub { push @calls, 'after after MyParent::original' }; }; -Parent->original; +MyParent->original; is_deeply(splice @calls, - 'before before Parent::original', - 'before Parent::original', - 'Parent::original', - 'after Parent::original', - 'after after Parent::original', + 'before before MyParent::original', + 'before MyParent::original', + 'MyParent::original', + 'after MyParent::original', + 'after after MyParent::original', ); do { package Child; - BEGIN { our @ISA = 'Parent' } + BEGIN { our @ISA = 'MyParent' } }; -Parent->original; +MyParent->original; is_deeply(splice @calls, - 'before before Parent::original', - 'before Parent::original', - 'Parent::original', - 'after Parent::original', - 'after after Parent::original', + 'before before MyParent::original', + 'before MyParent::original', + 'MyParent::original', + 'after MyParent::original', + 'after after MyParent::original', ); Child->original; is_deeply(splice @calls, - 'before before Parent::original', - 'before Parent::original', - 'Parent::original', - 'after Parent::original', - 'after after Parent::original', + 'before before MyParent::original', + 'before MyParent::original', + 'MyParent::original', + 'after MyParent::original', + 'after after MyParent::original', ); do { @@ -69,23 +69,23 @@ after original => sub { push @calls, 'after Child::original' }; }; -Parent->original; +MyParent->original; is_deeply(splice @calls, - 'before before Parent::original', - 'before Parent::original', - 'Parent::original', - 'after Parent::original', - 'after after Parent::original', + 'before before MyParent::original', + 'before MyParent::original', + 'MyParent::original', + 'after MyParent::original', + 'after after MyParent::original', ); Child->original; is_deeply(splice @calls, 'before Child::original', - 'before before Parent::original', - 'before Parent::original', - 'Parent::original', - 'after Parent::original', - 'after after Parent::original', + 'before before MyParent::original', + 'before MyParent::original', + 'MyParent::original', + 'after MyParent::original', + 'after after MyParent::original', 'after Child::original', );
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/004-around.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/004-around.t
Changed
@@ -19,44 +19,44 @@ ); do { - package Parent; + package MyParent; use Class::Method::Modifiers; - sub original { push @calls, 'Parent::original' } + sub original { push @calls, 'MyParent::original' } around original => sub { my $orig = shift; - push @calls, 'around/before Parent::original'; + push @calls, 'around/before MyParent::original'; $orig->(@_); - push @calls, 'around/after Parent::original'; + push @calls, 'around/after MyParent::original'; }; }; -Parent->original; +MyParent->original; is_deeply(splice @calls, - 'around/before Parent::original', - 'Parent::original', - 'around/after Parent::original', + 'around/before MyParent::original', + 'MyParent::original', + 'around/after MyParent::original', ); do { - package Parent; + package MyParent; use Class::Method::Modifiers; around original => sub { my $orig = shift; - push @calls, '2 around/before Parent::original'; + push @calls, '2 around/before MyParent::original'; $orig->(@_); - push @calls, '2 around/after Parent::original'; + push @calls, '2 around/after MyParent::original'; }; }; -Parent->original; +MyParent->original; is_deeply(splice @calls, - '2 around/before Parent::original', - 'around/before Parent::original', - 'Parent::original', - 'around/after Parent::original', - '2 around/after Parent::original', + '2 around/before MyParent::original', + 'around/before MyParent::original', + 'MyParent::original', + 'around/after MyParent::original', + '2 around/after MyParent::original', ); done_testing;
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/010-before-args.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/010-before-args.t
Changed
@@ -10,7 +10,7 @@ BEGIN { - package Parent; + package MyParent; sub new { bless {}, shift } sub orig { @@ -22,7 +22,7 @@ BEGIN { package Child; - our @ISA = 'Parent'; + our @ISA = 'MyParent'; use Class::Method::Modifiers; before 'orig' => sub
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/011-after-args.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/011-after-args.t
Changed
@@ -12,7 +12,7 @@ BEGIN { - package Parent; + package MyParent; sub new { bless {}, shift } sub orig { @@ -25,7 +25,7 @@ BEGIN { package Child; - our @ISA = 'Parent'; + our @ISA = 'MyParent'; use Class::Method::Modifiers; after 'orig' => sub
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/012-around-args.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/012-around-args.t
Changed
@@ -11,7 +11,7 @@ BEGIN { - package Parent; + package MyParent; sub new { bless {}, shift } sub orig { @@ -24,7 +24,7 @@ BEGIN { package Child; - our @ISA = 'Parent'; + our @ISA = 'MyParent'; use Class::Method::Modifiers; around 'orig' => sub
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/030-multiple-before.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/030-multiple-before.t
Changed
@@ -11,7 +11,7 @@ is_deeply(\@seen, \@expected, "multiple befores called in the right order"); BEGIN { - package Parent; + package MyParent; sub new { bless {}, shift } sub orig { @@ -21,7 +21,7 @@ BEGIN { package Child; - our @ISA = 'Parent'; + our @ISA = 'MyParent'; use Class::Method::Modifiers; before orig => sub
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/031-multiple-after.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/031-multiple-after.t
Changed
@@ -11,7 +11,7 @@ is_deeply(\@seen, \@expected, "multiple afters called in the right order"); BEGIN { - package Parent; + package MyParent; sub new { bless {}, shift } sub orig { @@ -21,7 +21,7 @@ BEGIN { package Child; - our @ISA = 'Parent'; + our @ISA = 'MyParent'; use Class::Method::Modifiers; after orig => sub
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/032-multiple-around.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/032-multiple-around.t
Changed
@@ -11,7 +11,7 @@ is_deeply(\@seen, \@expected, "multiple arounds called in the right order"); BEGIN { - package Parent; + package MyParent; sub new { bless {}, shift } sub orig { @@ -21,7 +21,7 @@ BEGIN { package Child; - our @ISA = 'Parent'; + our @ISA = 'MyParent'; use Class::Method::Modifiers; around orig => sub
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/034-multiple-everything.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/034-multiple-everything.t
Changed
@@ -20,7 +20,7 @@ is_deeply(\@seen, \@expected, "multiple afters called in the right order"); BEGIN { - package Parent; + package MyParent; sub new { bless {}, shift } sub orig { @@ -30,7 +30,7 @@ BEGIN { package Child; - our @ISA = 'Parent'; + our @ISA = 'MyParent'; use Class::Method::Modifiers; before orig => sub
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/035-multiple-everything-twice.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/035-multiple-everything-twice.t
Changed
@@ -28,7 +28,7 @@ is_deeply(\@seen, \@expected, "multiple afters called in the right order"); BEGIN { - package Parent; + package MyParent; sub new { bless {}, shift } sub orig { @@ -38,7 +38,7 @@ BEGIN { package Child; - our @ISA = 'Parent'; + our @ISA = 'MyParent'; use Class::Method::Modifiers; before orig => sub
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/040-twice-orig.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/040-twice-orig.t
Changed
@@ -9,12 +9,12 @@ BEGIN { - package Parent; + package MyParent; sub new { bless {}, shift } sub orig { push @seen, "orig" } package ChildCMM; - our @ISA = 'Parent'; + our @ISA = 'MyParent'; use Class::Method::Modifiers; around 'orig' => sub { my $orig = shift; $orig->(); $orig->(); }; }
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/041-modify-parent.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/041-modify-parent.t
Changed
@@ -6,12 +6,12 @@ my @calls; do { - package Parent; - sub foo { push @calls, 'Parent::foo' } + package MyParent; + sub foo { push @calls, 'MyParent::foo' } package Child; use Class::Method::Modifiers; - our @ISA = 'Parent'; + our @ISA = 'MyParent'; around foo => sub { push @calls, 'before Child::foo'; @@ -23,17 +23,17 @@ Child->foo; is_deeply(splice @calls, 'before Child::foo', - 'Parent::foo', + 'MyParent::foo', 'after Child::foo', ); do { - package Parent; + package MyParent; use Class::Method::Modifiers; around foo => sub { - push @calls, 'before Parent::foo'; + push @calls, 'before MyParent::foo'; shift->(@_); - push @calls, 'after Parent::foo'; + push @calls, 'after MyParent::foo'; }; }; @@ -43,9 +43,9 @@ local $TODO = "pending discussion with stevan"; is_deeply(splice @calls, 'before Child::foo', - 'before Parent::foo', - 'Parent::foo', - 'after Parent::foo', + 'before MyParent::foo', + 'MyParent::foo', + 'after MyParent::foo', 'after Child::foo', ); }
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/051-undef-list-ctxt.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/051-undef-list-ctxt.t
Changed
@@ -20,7 +20,7 @@ BEGIN { - package Parent; + package MyParent; sub new { bless {}, shift } sub orig { @@ -33,7 +33,7 @@ BEGIN { package Child; - our @ISA = 'Parent'; + our @ISA = 'MyParent'; use Class::Method::Modifiers; after 'orig' => sub
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/060-caller.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/060-caller.t
Changed
@@ -5,7 +5,7 @@ my ($parent_caller, $before_caller, $around_caller, $after_caller); -my $parent = Parent->new(); +my $parent = MyParent->new(); $parent->orig(); is($parent_caller, 'main', "parent with no modifiers sees 'main' as caller"); @@ -25,7 +25,7 @@ BEGIN { - package Parent; + package MyParent; sub new { bless {}, shift } sub orig { @@ -36,7 +36,7 @@ BEGIN { package Child; - our @ISA = 'Parent'; + our @ISA = 'MyParent'; use Class::Method::Modifiers; before 'orig' => sub
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/070-modify-multiple-at-once.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/070-modify-multiple-at-once.t
Changed
@@ -4,13 +4,13 @@ use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; my @seen; -package Parent; +package MyParent; sub new { bless {}, shift } sub left { push @seen, "orig-left" } sub right { push @seen, "orig-right" } package Child; -our @ISA = 'Parent'; +our @ISA = 'MyParent'; use Class::Method::Modifiers; before 'left', 'right' => sub { push @seen, 'before' };
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/080-multiple-modifiers.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/080-multiple-modifiers.t
Changed
@@ -28,7 +28,7 @@ BEGIN { - package Parent; + package MyParent; sub new { bless {}, shift } sub orig { @@ -39,7 +39,7 @@ BEGIN { package Child; - our @ISA = 'Parent'; + our @ISA = 'MyParent'; use Class::Method::Modifiers; after 'orig' => sub
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/081-sub-and-modifier.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/081-sub-and-modifier.t
Changed
@@ -4,7 +4,7 @@ use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; my @seen; -my $class = Parent->new(); +my $class = MyParent->new(); $class->orig("hi"); is(@seen, 5); is($seen0, "before-orig:hi"); @@ -41,7 +41,7 @@ @seen = (); -$class = Parent2->new(); +$class = MyParent2->new(); $class->orig("bye"); is(@seen, 5); is($seen0, "before-orig:bye"); @@ -52,7 +52,7 @@ BEGIN { - package Parent; + package MyParent; use Class::Method::Modifiers; sub new { bless {}, shift } @@ -84,7 +84,7 @@ BEGIN { package Child; - our @ISA = 'Parent'; + our @ISA = 'MyParent'; use Class::Method::Modifiers; before 'orig' => sub @@ -137,7 +137,7 @@ } BEGIN { - package Parent2; + package MyParent2; use Class::Method::Modifiers; sub new { bless {}, shift }
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/100-class-mop-method-modifiers.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/100-class-mop-method-modifiers.t
Changed
@@ -9,24 +9,24 @@ use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; my @tracelog; -package GreatGrandParent; +package GreatGrandMyParent; sub new { bless {}, shift } sub method { 4 } sub wrapped { push @tracelog => 'primary' } -package GrandParent; +package GrandMyParent; use Class::Method::Modifiers; -our @ISA = 'GreatGrandParent'; +our @ISA = 'GreatGrandMyParent'; around method => sub { (3, $_0->()) }; -package Parent; +package MyParent; use Class::Method::Modifiers; -our @ISA = 'GrandParent'; +our @ISA = 'GrandMyParent'; around method => sub { (2, $_0->()) }; package Child; use Class::Method::Modifiers; -our @ISA = 'Parent'; +our @ISA = 'MyParent'; around method => sub { (1, $_0->()) }; package GrandChild;
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/110-namespace-clean.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/110-namespace-clean.t
Changed
@@ -4,17 +4,35 @@ use Test::More 0.88; use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; -use Test::Requires 'Moose'; +use B (); -# code for this sub is taken directly from -# Test::CleanNamespaces::build_namespaces_clean +sub is_method { + my ($ns, $sub) = @_; + no strict 'refs'; + my $cv = B::svref_2object(\&{"${ns}::${sub}"}); + return + if !$cv->isa('B::CV'); + my $gv = $cv->GV; + return + if $gv->isa('B::SPECIAL'); + + my $pack = $gv->STASH->NAME + or return; + + return ( + $pack eq $ns + || ($pack eq 'constant' && $gv->name eq '__ANON__') + ); +} + +# see also Test::CleanNamespaces::_remaining_imports sub imports { my $ns = shift; - my $meta = Moose::Util::find_meta($ns) || Moose::Meta::Class->initialize($ns); - my %methods = map { ($_ => 1) } $meta->get_method_list; - my @symbols = keys %{ $meta->get_all_package_symbols('CODE') || {} }; - my @imports = grep { !$methods{$_} } @symbols; + no strict 'refs'; + + my @symbols = grep !/::\z/ && defined &{"${ns}::$_"}, keys %{"${ns}::"}; + return grep !is_method($ns, $_), @symbols; } { @@ -25,7 +43,7 @@ } ok( - !(grep { $_ eq 'foo' || $_ eq 'bar' || $_ eq 'baz' } imports('Foo')), + !(grep $_ eq 'foo' || $_ eq 'bar' || $_ eq 'baz', imports('Foo')), "original subs are not in Foo's list of imports", ) or note('Foo has imports: ' . join(', ', imports('Foo'))); @@ -48,7 +66,7 @@ }; ok( - !(grep { $_ eq 'foo' || $_ eq 'bar' || $_ eq 'baz' } imports('Foo')), + !(grep $_ eq 'foo' || $_ eq 'bar' || $_ eq 'baz', imports('Foo')), "modified subs are not in Foo's list of imports", ) or note('Foo has imports: ' . join(', ', imports('Foo')));
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/120-fresh.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/120-fresh.t
Changed
@@ -3,7 +3,6 @@ use Test::More 0.88; use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; -use Test::Fatal; use B 'svref_2object'; @@ -62,28 +61,34 @@ { package P2; - ::like(::exception { fresh m1 => sub {} }, + eval { fresh m1 => sub {} }; + ::like($@, qr/^Class P2 already has a method named 'm1'/, 'fresh: exception when inherited method exists'); - ::like(::exception { fresh m6 => sub {} }, + eval { fresh m6 => sub {} }; + ::like($@, qr/^Class P2 already has a method named 'm6'/, 'fresh: exception when local method exists'); - ::like(::exception { fresh '=:=' => sub {} }, + eval { fresh '=:=' => sub {} }; + ::like($@, qr/^Invalid method name '=:='/, 'fresh: exception when name invalid'); } -like(exception { install_modifier P3 => fresh => m1 => sub {} }, +eval { install_modifier P3 => fresh => m1 => sub {} }; +like($@, qr/^Class P3 already has a method named 'm1'/, 'install_modifier: exception when inherited method exists'); -like(exception { install_modifier P3 => fresh => m6 => sub {} }, +eval { install_modifier P3 => fresh => m6 => sub {} }; +like($@, qr/^Class P3 already has a method named 'm6'/, 'install_modifier: exception when local method exists'); -like(exception { install_modifier P3 => fresh => '=:=' => sub {} }, +eval { install_modifier P3 => fresh => '=:=' => sub {} }; +like($@, qr/^Invalid method name '=:='/, 'install_modifier: exception when name invalid');
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/130-clean-underscore.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/130-clean-underscore.t
Changed
@@ -6,18 +6,18 @@ my @calls; do { - package Parent; + package MyParent; sub original { $_ = "danger"; - push @calls, 'Parent::original'; + push @calls, 'MyParent::original'; } }; do { package Child::Before; use Class::Method::Modifiers; - BEGIN { our @ISA = 'Parent' } + BEGIN { our @ISA = 'MyParent' } before original => sub { $_ = "danger"; @@ -28,19 +28,19 @@ Child::Before->original; is_deeply(splice @calls, 'Child::Before::original', - 'Parent::original', + 'MyParent::original', ); Child::Before->original; is_deeply(splice @calls, 'Child::Before::original', - 'Parent::original', + 'MyParent::original', ); do { package Child::After; use Class::Method::Modifiers; - BEGIN { our @ISA = 'Parent' } + BEGIN { our @ISA = 'MyParent' } after original => sub { $_ = "danger"; @@ -50,20 +50,20 @@ Child::After->original; is_deeply(splice @calls, - 'Parent::original', + 'MyParent::original', 'Child::After::original', ); Child::After->original; is_deeply(splice @calls, - 'Parent::original', + 'MyParent::original', 'Child::After::original', ); do { package Child::Around; use Class::Method::Modifiers; - BEGIN { our @ISA = 'Parent' } + BEGIN { our @ISA = 'MyParent' } around original => sub { my $orig = shift; @@ -78,14 +78,14 @@ Child::Around->original; is_deeply(splice @calls, 'Child::Around::original(before)', - 'Parent::original', + 'MyParent::original', 'Child::Around::original(after)', ); Child::Around->original; is_deeply(splice @calls, 'Child::Around::original(before)', - 'Parent::original', + 'MyParent::original', 'Child::Around::original(after)', );
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/t/140-lvalue.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/t/140-lvalue.t
Changed
@@ -2,7 +2,6 @@ use warnings; use Test::More 0.88; use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; -use Test::Fatal; { package WithLvalue; @@ -70,10 +69,28 @@ { local $TODO = "can't apply after to array lvalue method"; - is exception { (After->array_lvalue) = (3,4) }, undef, - 'assigning to array lvalue attribute causes no errors'; + ok eval { (After->array_lvalue) = (3,4); 1 }, + 'assigning to array lvalue attribute causes no errors' + or diag 'error: ', $@; is_deeply(After->array_lvalue, 3,4, 'after array lvalue attribute sets values'); } +{ + package LvalueWithProto; + use Class::Method::Modifiers; + + my $f; + sub lvalue_proto_method ($) :lvalue { $f } + + local $SIG{__WARN__} = sub {}; + after lvalue_proto_method => sub {}; +} + +ok eval { LvalueWithProto->lvalue_proto_method = 4; 1 }, + 'after maintains lvalue attribute with prototype present' + or diag 'error: ', $@; +is(LvalueWithProto->lvalue_proto_method, 4, + 'after with lvalue and prototype correctly assigns'); + done_testing;
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/xt/author/00-compile.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/xt/author/00-compile.t
Changed
@@ -2,7 +2,7 @@ use strict; use warnings; -# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.054 +# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.058 use Test::More 0.94; @@ -16,7 +16,9 @@ # no fake home requested -my $inc_switch = -d 'blib' ? '-Mblib' : '-Ilib'; +my @switches = ( + -d 'blib' ? '-Mblib' : '-Ilib', +); use File::Spec; use IPC::Open3; @@ -30,14 +32,18 @@ # see L<perlfaq8/How can I capture STDERR from an external command?> my $stderr = IO::Handle->new; - my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-e', "require q$lib"); + diag('Running: ', join(', ', map { my $str = $_; $str =~ s/'/\\'/g; q{'} . $str . q{'} } + $^X, @switches, '-e', "require q$lib")) + if $ENV{PERL_COMPILE_TEST_DEBUG}; + + my $pid = open3($stdin, '>&STDERR', $stderr, $^X, @switches, '-e', "require q$lib"); binmode $stderr, ':crlf' if $^O eq 'MSWin32'; my @_warnings = <$stderr>; waitpid($pid, 0); is($?, 0, "$lib loaded ok"); shift @_warnings if @_warnings and $_warnings0 =~ /^Using .*\bblib/ - and not eval { require blib; blib->VERSION('1.01') }; + and not eval { +require blib; blib->VERSION('1.01') }; if (@_warnings) {
View file
_service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/xt/author/distmeta.t
Added
@@ -0,0 +1,7 @@ +#!perl +# This file was automatically generated by Dist::Zilla::Plugin::MetaTests. +use strict; +use warnings; +use Test::CPAN::Meta; + +meta_yaml_ok();
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/xt/author/eol.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/xt/author/eol.t
Changed
@@ -1,7 +1,7 @@ use strict; use warnings; -# this test was generated with Dist::Zilla::Plugin::Test::EOL 0.18 +# this test was generated with Dist::Zilla::Plugin::Test::EOL 0.19 use Test::More 0.88; use Test::EOL; @@ -40,19 +40,18 @@ 't/140-lvalue.t', 'xt/author/00-compile.t', 'xt/author/clean-namespaces.t', + 'xt/author/distmeta.t', 'xt/author/eol.t', 'xt/author/kwalitee.t', + 'xt/author/minimum-version.t', 'xt/author/mojibake.t', 'xt/author/no-tabs.t', 'xt/author/pod-coverage.t', 'xt/author/pod-spell.t', 'xt/author/pod-syntax.t', + 'xt/author/portability.t', 'xt/release/changes_has_content.t', - 'xt/release/cpan-changes.t', - 'xt/release/distmeta.t', - 'xt/release/minimum-version.t', - 'xt/release/pod-no404s.t', - 'xt/release/portability.t' + 'xt/release/cpan-changes.t' ); eol_unix_ok($_, { trailing_whitespace => 1 }) foreach @files;
View file
_service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/xt/author/minimum-version.t
Added
@@ -0,0 +1,6 @@ +use strict; +use warnings; + +use Test::More; +use Test::MinimumVersion; +all_minimum_version_ok( qq{5.006000} );
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/xt/author/no-tabs.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/xt/author/no-tabs.t
Changed
@@ -40,19 +40,18 @@ 't/140-lvalue.t', 'xt/author/00-compile.t', 'xt/author/clean-namespaces.t', + 'xt/author/distmeta.t', 'xt/author/eol.t', 'xt/author/kwalitee.t', + 'xt/author/minimum-version.t', 'xt/author/mojibake.t', 'xt/author/no-tabs.t', 'xt/author/pod-coverage.t', 'xt/author/pod-spell.t', 'xt/author/pod-syntax.t', + 'xt/author/portability.t', 'xt/release/changes_has_content.t', - 'xt/release/cpan-changes.t', - 'xt/release/distmeta.t', - 'xt/release/minimum-version.t', - 'xt/release/pod-no404s.t', - 'xt/release/portability.t' + 'xt/release/cpan-changes.t' ); notabs_ok($_) foreach @files;
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/xt/author/pod-coverage.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/xt/author/pod-coverage.t
Changed
@@ -1,6 +1,7 @@ #!perl # This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests. - +use strict; +use warnings; use Test::Pod::Coverage 1.08; use Pod::Coverage::TrustPod;
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/xt/author/pod-spell.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/xt/author/pod-spell.t
Changed
@@ -2,42 +2,45 @@ use warnings; use Test::More; -# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.007000 +# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.007005 use Test::Spelling 0.12; use Pod::Wordlist; add_stopwords(<DATA>); -all_pod_files_spelling_ok( qw( bin lib ) ); +all_pod_files_spelling_ok( qw( examples lib script t xt ) ); __DATA__ -irc -Shawn -Moore -sartak -Karen +Aaron +Class +Crane +David Etheridge -ether -code Graham +Hunter +Justin +Karen Knop -haarg -Aaron -Crane -arc +Method +Modifiers +Moore +Orton Peter Rabbitson -ribasushi -Justin -Hunter -justin -David +Shawn Steinbrunner +Yves +arc +code +demerphq dsteinbrunner -gfx +ether gfuji -mannih +gfx github +haarg +irc +justin lib -Class -Method -Modifiers +mannih +ribasushi +sartak
View file
_service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/xt/author/portability.t
Added
@@ -0,0 +1,8 @@ +use strict; +use warnings; + +use Test::More; + +use Test::Portability::Files; + +run_tests();
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/xt/release/changes_has_content.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/xt/release/changes_has_content.t
Changed
@@ -1,11 +1,10 @@ -#!perl - use Test::More tests => 2; note 'Checking Changes'; my $changes_file = 'Changes'; -my $newver = '2.12'; +my $newver = '2.15'; my $trial_token = '-TRIAL'; +my $encoding = 'UTF-8'; SKIP: { ok(-e $changes_file, "$changes_file file exists") @@ -16,8 +15,6 @@ done_testing; -# _get_changes copied and adapted from Dist::Zilla::Plugin::Git::Commit -# by Jerome Quelin sub _get_changes { my $newver = shift; @@ -25,6 +22,10 @@ # parse changelog to find commit message open(my $fh, '<', $changes_file) or die "cannot open $changes_file: $!"; my $changelog = join('', <$fh>); + if ($encoding) { + require Encode; + $changelog = Encode::decode($encoding, $changelog, Encode::FB_CROAK()); + } close $fh; my @content =
View file
_service:tar_scm:Class-Method-Modifiers-2.12.tar.gz/xt/release/cpan-changes.t -> _service:tar_scm:Class-Method-Modifiers-2.15.tar.gz/xt/release/cpan-changes.t
Changed
@@ -1,11 +1,10 @@ -#!perl - use strict; use warnings; -use Test::More 0.96 tests => 2; -use_ok('Test::CPAN::Changes'); +# this test was generated with Dist::Zilla::Plugin::Test::CPAN::Changes 0.012 + +use Test::More 0.96 tests => 1; +use Test::CPAN::Changes; subtest 'changes_ok' => sub { changes_file_ok('Changes'); }; -done_testing();
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2