Changes | 03 |
META.json | 5085 |
META.yml | 4771 |
Makefile.PL | 46 |
README | 11 |
lib/Sub/Exporter/GlobExporter.pm | 33 |
t/00-compile.t | 5933 |
t/000-report-versions-tiny.t | 55 |
xt/release/changes_has_content.t | 11 |
9 files changed (This is a version diff) | 170208 |
@@ -1,5 +1,8 @@
Revision history for Sub-Exporter-GlobExporter
+0.004 2013-10-15 22:40:24 America/New_York
+ fix links to github!
+
0.003 2013-04-26 10:41:34 America/New_York
fix some confusing mistakes in the docs (thanks, George Hartzell)
@@ -4,7 +4,7 @@
"Ricardo Signes <rjbs@cpan.org>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.300034, CPAN::Meta::Converter version 2.130880",
+ "generated_by" : "Dist::Zilla version 4.300039, CPAN::Meta::Converter version 2.132830",
"license" : [
"perl_5"
],
@@ -35,36 +35,41 @@
},
"test" : {
"requires" : {
- "File::Find" : "0",
- "File::Temp" : "0",
- "Test::More" : "0.96"
+ "File::Spec" : "0",
+ "IO::Handle" : "0",
+ "IPC::Open3" : "0",
+ "Test::More" : "0.96",
+ "lib" : "0"
}
}
},
"release_status" : "stable",
"resources" : {
- "homepage" : "https://github.com/rjbs/sub-exporter-globexporter",
+ "bugtracker" : {
+ "web" : "https://github.com/rjbs/Sub-Exporter-GlobExporter/issues"
+ },
+ "homepage" : "https://github.com/rjbs/Sub-Exporter-GlobExporter",
"repository" : {
"type" : "git",
- "url" : "https://github.com/rjbs/sub-exporter-globexporter.git",
- "web" : "https://github.com/rjbs/sub-exporter-globexporter"
+ "url" : "https://github.com/rjbs/Sub-Exporter-GlobExporter.git",
+ "web" : "https://github.com/rjbs/Sub-Exporter-GlobExporter"
}
},
- "version" : "0.003",
+ "version" : "0.004",
"x_Dist_Zilla" : {
"perl" : {
- "version" : "5.017010"
+ "version" : "5.019004"
},
"plugins" : [
{
"class" : "Dist::Zilla::Plugin::Git::GatherDir",
"name" : "@RJBS/Git::GatherDir",
- "version" : "2.013"
+ "version" : "2.014"
},
{
"class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed",
"name" : "@RJBS/CheckPrereqsIndexed",
- "version" : "0.008"
+ "version" : "0.009"
},
{
"class" : "Dist::Zilla::Plugin::CheckExtraTests",
@@ -72,94 +77,104 @@
"version" : "0.011"
},
{
+ "class" : "Dist::Zilla::Plugin::PromptIfStale",
+ "name" : "@RJBS/RJBS-Outdated",
+ "version" : "0.008"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::PromptIfStale",
+ "name" : "@RJBS/CPAN-Outdated",
+ "version" : "0.008"
+ },
+ {
"class" : "Dist::Zilla::Plugin::PruneCruft",
"name" : "@RJBS/@Filter/PruneCruft",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
"name" : "@RJBS/@Filter/ManifestSkip",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@RJBS/@Filter/MetaYAML",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@RJBS/@Filter/License",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
"name" : "@RJBS/@Filter/Readme",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@RJBS/@Filter/ExecDir",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@RJBS/@Filter/ShareDir",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
"name" : "@RJBS/@Filter/MakeMaker",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@RJBS/@Filter/Manifest",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::TestRelease",
"name" : "@RJBS/@Filter/TestRelease",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
"name" : "@RJBS/@Filter/ConfirmRelease",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
"name" : "@RJBS/@Filter/UploadToCPAN",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::AutoPrereqs",
"name" : "@RJBS/AutoPrereqs",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::Git::NextVersion",
"name" : "@RJBS/Git::NextVersion",
- "version" : "2.013"
+ "version" : "2.014"
},
{
"class" : "Dist::Zilla::Plugin::PkgVersion",
"name" : "@RJBS/PkgVersion",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@RJBS/MetaConfig",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@RJBS/MetaJSON",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::NextRelease",
"name" : "@RJBS/NextRelease",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::Test::ChangesHasContent",
@@ -169,17 +184,28 @@
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@RJBS/PodSyntaxTests",
- "version" : "4.300034"
- },
- {
- "class" : "Dist::Zilla::Plugin::Test::Compile",
- "name" : "@RJBS/Test::Compile",
- "version" : "2.001"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::ReportVersions::Tiny",
"name" : "@RJBS/ReportVersions::Tiny",
- "version" : "1.08"
+ "version" : "1.10"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Test::Compile",
+ "config" : {
+ "Dist::Zilla::Plugin::Test::Compile" : {
+ "filename" : "t/00-compile.t",
+ "module_finder" : [
+ ":InstallModules"
+ ],
+ "script_finder" : [
+ ":ExecFiles"
+ ]
+ }
+ },
+ "name" : "@RJBS/Test::Compile",
+ "version" : "2.036"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -190,67 +216,76 @@
}
},
"name" : "@RJBS/TestMoreWithSubtests",
- "version" : "4.300034"
+ "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.28"
+ "version" : "0.42"
},
{
"class" : "Dist::Zilla::Plugin::Git::Check",
"name" : "@RJBS/@Git/Check",
- "version" : "2.013"
+ "version" : "2.014"
},
{
"class" : "Dist::Zilla::Plugin::Git::Commit",
"name" : "@RJBS/@Git/Commit",
- "version" : "2.013"
+ "version" : "2.014"
},
{
"class" : "Dist::Zilla::Plugin::Git::Tag",
"name" : "@RJBS/@Git/Tag",
- "version" : "2.013"
+ "version" : "2.014"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
"name" : "@RJBS/@Git/Push",
- "version" : "2.013"
+ "version" : "2.014"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":IncModules",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
- "version" : "4.300034"
+ "version" : "4.300039"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":MainModule",
- "version" : "4.300034"
+ "version" : "4.300039"
}
],
"zilla" : {
@@ -258,7 +293,7 @@
"config" : {
"is_trial" : "0"
},
- "version" : "4.300034"
+ "version" : "4.300039"
}
}
}
@@ -3,13 +3,15 @@ abstract: 'export shared globs with Sub::Exporter collectors'
author:
- 'Ricardo Signes <rjbs@cpan.org>'
build_requires:
- File::Find: 0
- File::Temp: 0
+ File::Spec: 0
+ IO::Handle: 0
+ IPC::Open3: 0
Test::More: 0.96
+ lib: 0
configure_requires:
ExtUtils::MakeMaker: 6.30
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.300034, CPAN::Meta::Converter version 2.130880'
+generated_by: 'Dist::Zilla version 4.300039, CPAN::Meta::Converter version 2.132830'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -21,97 +23,106 @@ requires:
strict: 0
warnings: 0
resources:
- homepage: https://github.com/rjbs/sub-exporter-globexporter
- repository: https://github.com/rjbs/sub-exporter-globexporter.git
-version: 0.003
+ bugtracker: https://github.com/rjbs/Sub-Exporter-GlobExporter/issues
+ homepage: https://github.com/rjbs/Sub-Exporter-GlobExporter
+ repository: https://github.com/rjbs/Sub-Exporter-GlobExporter.git
+version: 0.004
x_Dist_Zilla:
perl:
- version: 5.017010
+ version: 5.019004
plugins:
-
class: Dist::Zilla::Plugin::Git::GatherDir
name: '@RJBS/Git::GatherDir'
- version: 2.013
+ version: 2.014
-
class: Dist::Zilla::Plugin::CheckPrereqsIndexed
name: '@RJBS/CheckPrereqsIndexed'
- version: 0.008
+ 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.008
+ -
+ class: Dist::Zilla::Plugin::PromptIfStale
+ name: '@RJBS/CPAN-Outdated'
+ version: 0.008
+ -
class: Dist::Zilla::Plugin::PruneCruft
name: '@RJBS/@Filter/PruneCruft'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@RJBS/@Filter/ManifestSkip'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@RJBS/@Filter/MetaYAML'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::License
name: '@RJBS/@Filter/License'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::Readme
name: '@RJBS/@Filter/Readme'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::ExecDir
name: '@RJBS/@Filter/ExecDir'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::ShareDir
name: '@RJBS/@Filter/ShareDir'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::MakeMaker
name: '@RJBS/@Filter/MakeMaker'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::Manifest
name: '@RJBS/@Filter/Manifest'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::TestRelease
name: '@RJBS/@Filter/TestRelease'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@RJBS/@Filter/ConfirmRelease'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@RJBS/@Filter/UploadToCPAN'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::AutoPrereqs
name: '@RJBS/AutoPrereqs'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::Git::NextVersion
name: '@RJBS/Git::NextVersion'
- version: 2.013
+ version: 2.014
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@RJBS/PkgVersion'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@RJBS/MetaConfig'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@RJBS/MetaJSON'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::NextRelease
name: '@RJBS/NextRelease'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::Test::ChangesHasContent
name: '@RJBS/Test::ChangesHasContent'
@@ -119,15 +130,22 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@RJBS/PodSyntaxTests'
- version: 4.300034
- -
- class: Dist::Zilla::Plugin::Test::Compile
- name: '@RJBS/Test::Compile'
- version: 2.001
+ version: 4.300039
-
class: Dist::Zilla::Plugin::ReportVersions::Tiny
name: '@RJBS/ReportVersions::Tiny'
- version: 1.08
+ version: 1.10
+ -
+ class: Dist::Zilla::Plugin::Test::Compile
+ config:
+ Dist::Zilla::Plugin::Test::Compile:
+ filename: t/00-compile.t
+ module_finder:
+ - ':InstallModules'
+ script_finder:
+ - ':ExecFiles'
+ name: '@RJBS/Test::Compile'
+ version: 2.036
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -135,57 +153,63 @@ x_Dist_Zilla:
phase: test
type: requires
name: '@RJBS/TestMoreWithSubtests'
- version: 4.300034
+ 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.28
+ version: 0.42
-
class: Dist::Zilla::Plugin::Git::Check
name: '@RJBS/@Git/Check'
- version: 2.013
+ version: 2.014
-
class: Dist::Zilla::Plugin::Git::Commit
name: '@RJBS/@Git/Commit'
- version: 2.013
+ version: 2.014
-
class: Dist::Zilla::Plugin::Git::Tag
name: '@RJBS/@Git/Tag'
- version: 2.013
+ version: 2.014
-
class: Dist::Zilla::Plugin::Git::Push
name: '@RJBS/@Git/Push'
- version: 2.013
+ version: 2.014
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::FinderCode
name: ':IncModules'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
- version: 4.300034
+ version: 4.300039
-
class: Dist::Zilla::Plugin::FinderCode
name: ':MainModule'
- version: 4.300034
+ version: 4.300039
zilla:
class: Dist::Zilla::Dist::Builder
config:
is_trial: 0
- version: 4.300034
+ version: 4.300039
@@ -26,11 +26,13 @@ my %WriteMakefileArgs = (
"warnings" => 0
},
"TEST_REQUIRES" => {
- "File::Find" => 0,
- "File::Temp" => 0,
- "Test::More" => "0.96"
+ "File::Spec" => 0,
+ "IO::Handle" => 0,
+ "IPC::Open3" => 0,
+ "Test::More" => "0.96",
+ "lib" => 0
},
- "VERSION" => "0.003",
+ "VERSION" => "0.004",
"test" => {
"TESTS" => "t/*.t"
}
@@ -1,7 +1,7 @@
This archive contains the distribution Sub-Exporter-GlobExporter,
-version 0.003:
+version 0.004:
export shared globs with Sub::Exporter collectors
@@ -2,7 +2,7 @@ use strict;
use warnings;
package Sub::Exporter::GlobExporter;
{
- $Sub::Exporter::GlobExporter::VERSION = '0.003';
+ $Sub::Exporter::GlobExporter::VERSION = '0.004';
}
# ABSTRACT: export shared globs with Sub::Exporter collectors
@@ -66,7 +66,7 @@ Sub::Exporter::GlobExporter - export shared globs with Sub::Exporter collectors
=head1 VERSION
-version 0.003
+version 0.004
=head1 SYNOPSIS
@@ -118,7 +118,7 @@ a string which will be called on the exporter
For an example, see the L</SYNOPSIS>, in which a method is defined to produce
the globref to share. This allows the glob-exporting package to be subclassed,
-for for the subclass to choose to re-use the same glob when exporting or to
+so the subclass may choose to either re-use the same glob when exporting or to
export a new one.
If there are entries in the arguments to the globref-exporting collector
@@ -1,74 +1,48 @@
-#!perl
-
use strict;
use warnings;
-use Test::More;
+# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.036
+use Test::More 0.94 tests => 1;
-use File::Find;
-use File::Temp qw{ tempdir };
-my @modules;
-find(
- sub {
- return if $File::Find::name !~ /\.pm\z/;
- my $found = $File::Find::name;
- $found =~ s{^lib/}{};
- $found =~ s{[/\\]}{::}g;
- $found =~ s/\.pm$//;
- # nothing to skip
- push @modules, $found;
- },
- 'lib',
+my @module_files = (
+ 'Sub/Exporter/GlobExporter.pm'
);
-sub _find_scripts {
- my $dir = shift @_;
-
- my @found_scripts = ();
- find(
- sub {
- return unless -f;
- my $found = $File::Find::name;
- # nothing to skip
- open my $FH, '<', $_ or do {
- note( "Unable to open $found in ( $! ), skipping" );
- return;
- };
- my $shebang = <$FH>;
- return unless $shebang =~ /^#!.*?\bperl\b\s*$/;
- push @found_scripts, $found;
- },
- $dir,
- );
-
- return @found_scripts;
-}
-my @scripts;
-do { push @scripts, _find_scripts($_) if -d $_ }
- for qw{ bin script scripts };
-my $plan = scalar(@modules) + scalar(@scripts);
-$plan ? (plan tests => $plan) : (plan skip_all => "no tests to run");
+# no fake home requested
+
+my $inc_switch = q[-Mblib];
+use File::Spec;
+use IPC::Open3;
+use IO::Handle;
+
+my @warnings;
+for my $lib (@module_files)
{
- # fake home for cpan-testers
- # no fake requested ## local $ENV{HOME} = tempdir( CLEANUP => 1 );
-
- like( qx{ $^X -Ilib -e "require $_; print '$_ ok'" }, qr/^\s*$_ ok/s, "$_ loaded ok" )
- for sort @modules;
-
- SKIP: {
- eval "use Test::Script 1.05; 1;";
- skip "Test::Script needed to test script compilation", scalar(@scripts) if $@;
- foreach my $file ( @scripts ) {
- my $script = $file;
- $script =~ s!.*/!!;
- script_compiles( $file, "$script script compiles" );
- }
+ # see L<perlfaq8/How can I capture STDERR from an external command?>
+ open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!";
+ my $stderr = IO::Handle->new;
+
+ my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-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;
@@ -9,7 +9,7 @@ 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.08\n";
+my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.10\n";
eval { # no excuses!
# report our Perl details
@@ -49,14 +49,14 @@ sub pmver {
}
eval { $v .= pmver('ExtUtils::MakeMaker','6.30') };
-eval { $v .= pmver('File::Find','any version') };
-eval { $v .= pmver('File::Temp','any version') };
+eval { $v .= pmver('File::Spec','any version') };
+eval { $v .= pmver('IO::Handle','any version') };
+eval { $v .= pmver('IPC::Open3','any version') };
eval { $v .= pmver('Scalar::Util','any version') };
eval { $v .= pmver('Sub::Exporter','any version') };
eval { $v .= pmver('Test::More','0.96') };
-eval { $v .= pmver('Test::Pod','1.41') };
+eval { $v .= pmver('lib','any version') };
eval { $v .= pmver('strict','any version') };
-eval { $v .= pmver('version','0.9901') };
eval { $v .= pmver('warnings','any version') };
@@ -4,7 +4,7 @@ use Test::More tests => 2;
note 'Checking Changes';
my $changes_file = 'Changes';
-my $newver = '0.003';
+my $newver = '0.004';
my $trial_token = '-TRIAL';
SKIP: {