Skip to content

Commit

Permalink
Build results of 7db0597 (on master)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Jul 19, 2015
1 parent aaf297f commit 1aa7aea
Show file tree
Hide file tree
Showing 14 changed files with 210 additions and 19 deletions.
9 changes: 9 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
Revision history for Asset-Pack

0.000005 2015-07-19T20:45:18Z f2f12fb
[Dependencies::Stats]
- Dependencies changed since 0.000004, see misc/*.deps* for details
- test: +3 -1

[Tests]
- Bundling Test::Requires temporarily till upstream re-establish perl 5.6 support in their installer
https://github.com/tokuhirom/Test-Requires/issues/11

0.000004 2015-07-13T06:11:23Z fcd9a2c
[BugFix Bugfix]
- Actually resolve the change I claimed to fix in 0.000003 because I can't count '0's.
Expand Down
1 change: 1 addition & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ t/internals/pack_asset_binary.t
t/internals/pack_asset_binary_large.t
t/internals/pack_metadata.t
t/interop/App-FatPacker.t
t/tlib/Test/Requires.pm
t/write_index.t
t/write_module.t
t/write_module_binary.t
Expand Down
12 changes: 7 additions & 5 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,21 @@
"Cwd" : "0",
"ExtUtils::MakeMaker" : "0",
"File::Spec" : "0",
"Test::Builder::Module" : "0",
"Test::Differences" : "0",
"Test::Fatal" : "0",
"Test::More" : "0.89",
"Test::Requires" : "0",
"Test::TempDir::Tiny" : "0",
"base" : "0",
"lib" : "0",
"perl" : "5.006"
}
}
},
"provides" : {
"Asset::Pack" : {
"file" : "lib/Asset/Pack.pm",
"version" : "0.000004"
"version" : "0.000005"
}
},
"release_status" : "stable",
Expand All @@ -142,7 +144,7 @@
"web" : "https://github.com/kentnl/Asset-Pack"
}
},
"version" : "0.000004",
"version" : "0.000005",
"x_Dist_Zilla" : {
"perl" : {
"version" : "5.022000"
Expand Down Expand Up @@ -583,7 +585,7 @@
"Dist::Zilla::Plugin::Git::Tag" : {
"branch" : null,
"signed" : 0,
"tag" : "0.000004-source",
"tag" : "0.000005-source",
"tag_format" : "%v-source",
"tag_message" : "v%v",
"time_zone" : "local"
Expand Down Expand Up @@ -659,7 +661,7 @@
"Dist::Zilla::Plugin::Git::Tag" : {
"branch" : "releases",
"signed" : 0,
"tag" : "0.000004",
"tag" : "0.000005",
"tag_format" : "%v",
"tag_message" : "v%v",
"time_zone" : "local"
Expand Down
8 changes: 5 additions & 3 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ build_requires:
Cwd: '0'
ExtUtils::MakeMaker: '0'
File::Spec: '0'
Test::Builder::Module: '0'
Test::Differences: '0'
Test::Fatal: '0'
Test::More: '0.89'
Test::Requires: '0'
Test::TempDir::Tiny: '0'
base: '0'
lib: '0'
perl: '5.006'
configure_requires:
ExtUtils::MakeMaker: '0'
Expand All @@ -25,7 +27,7 @@ name: Asset-Pack
provides:
Asset::Pack:
file: lib/Asset/Pack.pm
version: '0.000004'
version: '0.000005'
requires:
Data::Dumper: '0'
Exporter: '0'
Expand All @@ -39,4 +41,4 @@ resources:
bugtracker: https://github.com/kentnl/Asset-Pack/issues
homepage: https://github.com/kentnl/Asset-Pack
repository: https://github.com/kentnl/Asset-Pack.git
version: '0.000004'
version: '0.000005'
12 changes: 8 additions & 4 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ my %WriteMakefileArgs = (
"Cwd" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
"Test::Builder::Module" => 0,
"Test::Differences" => 0,
"Test::Fatal" => 0,
"Test::More" => "0.89",
"Test::Requires" => 0,
"Test::TempDir::Tiny" => 0
"Test::TempDir::Tiny" => 0,
"base" => 0,
"lib" => 0
},
"VERSION" => "0.000004",
"VERSION" => "0.000005",
"test" => {
"TESTS" => "t/*.t t/00-compile/*.t t/internals/*.t t/interop/*.t"
}
Expand All @@ -50,12 +52,14 @@ my %FallbackPrereqs = (
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
"Path::Tiny" => "0.069",
"Test::Builder::Module" => 0,
"Test::Differences" => 0,
"Test::Fatal" => 0,
"Test::More" => "0.89",
"Test::Requires" => 0,
"Test::TempDir::Tiny" => 0,
"Try::Tiny" => 0,
"base" => 0,
"lib" => 0,
"parent" => 0,
"strict" => 0,
"warnings" => 0
Expand Down
4 changes: 2 additions & 2 deletions lib/Asset/Pack.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package Asset::Pack;
use Path::Tiny 0.069 qw( path ); # path()->visit without broken ref returns
use Try::Tiny qw( try catch );

our $VERSION = '0.000004';
our $VERSION = '0.000005';

# ABSTRACT: Easily pack assets into Perl Modules that can be fat-packed

Expand Down Expand Up @@ -336,7 +336,7 @@ Asset::Pack - Easily pack assets into Perl Modules that can be fat-packed
=head1 VERSION
version 0.000004
version 0.000005
=head1 SYNOPSIS
Expand Down
11 changes: 10 additions & 1 deletion misc/Changes.deps
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
This file contains changes in REQUIRED dependencies for standard CPAN phases (configure/build/runtime/test)

0.000004
0.000005
[Added / test requires]
- Test::Builder::Module
- base
- lib

[Removed / test requires]
- Test::Requires

0.000004 2015-07-13T06:11:23Z

0.000003 2015-07-13T05:40:50Z

Expand Down
11 changes: 10 additions & 1 deletion misc/Changes.deps.all
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
This file contains ALL changes in dependencies in both REQUIRED / OPTIONAL dependencies for all phases (configure/build/runtime/test/develop)

0.000004
0.000005
[Added / test requires]
- Test::Builder::Module
- base
- lib

[Removed / test requires]
- Test::Requires

0.000004 2015-07-13T06:11:23Z

0.000003 2015-07-13T05:40:50Z
[Changed / test recommends]
Expand Down
4 changes: 3 additions & 1 deletion misc/Changes.deps.dev
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
This file contains changes to DEVELOPMENT dependencies only ( both REQUIRED and OPTIONAL )

0.000004
0.000005

0.000004 2015-07-13T06:11:23Z

0.000003 2015-07-13T05:40:50Z

Expand Down
4 changes: 3 additions & 1 deletion misc/Changes.deps.opt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
This file contains changes in OPTIONAL dependencies for standard CPAN phases (configure/build/runtime/test)

0.000004
0.000005

0.000004 2015-07-13T06:11:23Z

0.000003 2015-07-13T05:40:50Z
[Changed / test recommends]
Expand Down
4 changes: 3 additions & 1 deletion t/00-report-prereqs.dd
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,13 @@ do { my $x = {
'Cwd' => '0',
'ExtUtils::MakeMaker' => '0',
'File::Spec' => '0',
'Test::Builder::Module' => '0',
'Test::Differences' => '0',
'Test::Fatal' => '0',
'Test::More' => '0.89',
'Test::Requires' => '0',
'Test::TempDir::Tiny' => '0',
'base' => '0',
'lib' => '0',
'perl' => '5.006'
}
}
Expand Down
1 change: 1 addition & 0 deletions t/interop/App-FatPacker.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use strict;
use warnings;

use Test::More;
use lib 't/tlib';
use Test::Requires { "App::FatPacker" => '0.009017' }; # Minimum required for fatpack_file
use Test::TempDir::Tiny qw( tempdir );
use Path::Tiny qw( path cwd );
Expand Down
147 changes: 147 additions & 0 deletions t/tlib/Test/Requires.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
package Test::Requires;
use strict;
use warnings;
our $VERSION = '0.08';
use base 'Test::Builder::Module';
use 5.006000;

sub import {
my $class = shift;
my $caller = caller(0);

# export methods
{
no strict 'refs';
*{"$caller\::test_requires"} = \&test_requires;
}

# test arguments
if (@_ == 1 && ref $_[0] && ref $_[0] eq 'HASH') {
while (my ($mod, $ver) = each %{$_[0]}) {
test_requires($mod, $ver, $caller);
}
} else {
for my $mod (@_) {
test_requires($mod, undef, $caller);
}
}
}

sub test_requires {
my ( $mod, $ver, $caller ) = @_;
return if $mod eq __PACKAGE__;
if (@_ != 3) {
$caller = caller(0);
}
$ver ||= '';

eval qq{package $caller; use $mod $ver}; ## no critic.
if (my $e = $@) {
my $skip_all = sub {
my $builder = __PACKAGE__->builder;

if (not defined $builder->has_plan) {
$builder->skip_all(@_);
} elsif ($builder->has_plan eq 'no_plan') {
$builder->skip(@_);
if ( $builder->can('parent') && $builder->parent ) {
die bless {} => 'Test::Builder::Exception';
}
exit 0;
} else {
for (1..$builder->has_plan) {
$builder->skip(@_);
}
if ( $builder->can('parent') && $builder->parent ) {
die bless {} => 'Test::Builder::Exception';
}
exit 0;
}
};

my $msg = "$e";
if ( $e =~ /^Can't locate/ ) {
$msg = "Test requires module '$mod' but it's not found";
}

if ($ENV{RELEASE_TESTING}) {
__PACKAGE__->builder->BAIL_OUT($msg);
}
else {
$skip_all->($msg);
}
}
}

1;
__END__
=head1 NAME
Test::Requires - Checks to see if the module can be loaded
=head1 SYNOPSIS
# in your Makefile.PL
use inc::Module::Install;
test_requires 'Test::Requires';
# in your test
use Test::More tests => 10;
use Test::Requires {
'HTTP::MobileAttribute' => 0.01, # skip all if HTTP::MobileAttribute doesn't installed
};
isa_ok HTTP::MobileAttribute->new, 'HTTP::MobileAttribute::NonMobile';
# or
use Test::More tests => 10;
use Test::Requires qw(
HTTP::MobileAttribute
);
isa_ok HTTP::MobileAttribute->new, 'HTTP::MobileAttribute::NonMobile';
# or
use Test::More tests => 10;
use Test::Requires;
test_requires 'Some::Optional::Test::Required::Modules';
isa_ok HTTP::MobileAttribute->new, 'HTTP::MobileAttribute::NonMobile';
=head1 DESCRIPTION
Test::Requires checks to see if the module can be loaded.
If this fails rather than failing tests this B<skips all tests>.
Test::Requires can also be used to require a minimum version of Perl:
use Test::Requires "5.010"; # quoting is necessary!!
# or
use Test::Requires "v5.10";
=head1 AUTHOR
Tokuhiro Matsuno E<lt>tokuhirom @*(#RJKLFHFSDLJF gmail.comE<gt>
=head1 THANKS TO
kazuho++ # some tricky stuff
miyagawa++ # original code from t/TestPlagger.pm
tomyhero++ # reported issue related older test::builder
tobyink++ # documented that Test::Requires "5.010" works
=head1 ENVIRONMENT
If the C<< RELEASE_TESTING >> environment variable is true, then instead
of skipping tests, Test::Requires bails out.
=head1 SEE ALSO
L<t/TestPlagger.pm>
=head1 LICENSE
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=cut
1 change: 1 addition & 0 deletions xt/author/eol.t
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ my @files = (
't/internals/pack_asset_binary_large.t',
't/internals/pack_metadata.t',
't/interop/App-FatPacker.t',
't/tlib/Test/Requires.pm',
't/write_index.t',
't/write_module.t',
't/write_module_binary.t'
Expand Down

0 comments on commit 1aa7aea

Please sign in to comment.