Skip to content

Commit

Permalink
Build results of c7e66bc (on master)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Nov 6, 2010
2 parents 95afac7 + c7e66bc commit 0b1b378
Show file tree
Hide file tree
Showing 13 changed files with 134 additions and 22 deletions.
3 changes: 2 additions & 1 deletion Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ my %module_build_args = (
'File::Find' => '0',
'File::Temp' => '0',
'Module::Build' => '0.3601',
'Scalar::Util' => '0',
'Test::Fatal' => '0',
'Test::More' => '0.88'
},
Expand All @@ -23,7 +24,7 @@ my %module_build_args = (
'Kent Fredric <kentnl@cpan.org>'
],
'dist_name' => 'Dist-Zilla-Plugin-MetaProvides',
'dist_version' => '1.12044803',
'dist_version' => '1.12044806',
'license' => 'perl',
'module_name' => 'Dist::Zilla::Plugin::MetaProvides',
'recommends' => {},
Expand Down
9 changes: 7 additions & 2 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Revision history for Dist-Zilla-Plugin-MetaProvides

1.12044806 2010-11-07 07:20:55 Pacific/Auckland
A little bit more testing of the codebase,
tests should be now comprehensive enough to
detect most change-bugs.

1.12044803 2010-11-07 04:26:58 Pacific/Auckland
Build ourself using MetaNoIndex to hide corpus/ crap.
Add MetaNoIndex to suggest lists.
Expand Down Expand Up @@ -53,9 +58,9 @@ Revision history for Dist-Zilla-Plugin-MetaProvides

1.10001919 2009-09-12 06:17:57 UTC
Dropped the version dep on FindBin because it causes
problems for some. Apparently deping on something that
problems for some. Apparently deping on something that
may or may not be in core which may or may not be in core
later is a bad thing.
later is a bad thing.
Added CompileTests
Add dist.ini to release for diagnostic reasons.

Expand Down
2 changes: 2 additions & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ perlcritic.rc
t/00-compile.t
t/000-report-versions-tiny.t
t/01-MetaProvider-Provider.t
t/02-MetaProvides-ProvideRecord.t
t/03-Types.t
t/author-critic.t
t/lib/Dist/Zilla/Plugin/FakePlugin.pm
t/release-distmeta.t
Expand Down
12 changes: 7 additions & 5 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"English" : 0,
"File::Find" : 0,
"File::Temp" : 0,
"Scalar::Util" : 0,
"Test::Fatal" : 0,
"Test::More" : "0.88"
},
Expand All @@ -74,19 +75,19 @@
"provides" : {
"Dist::Zilla::MetaProvides::ProvideRecord" : {
"file" : "lib/Dist/Zilla/MetaProvides/ProvideRecord.pm",
"version" : "1.12044803"
"version" : "1.12044806"
},
"Dist::Zilla::MetaProvides::Types" : {
"file" : "lib/Dist/Zilla/MetaProvides/Types.pm",
"version" : "1.12044803"
"version" : "1.12044806"
},
"Dist::Zilla::Plugin::MetaProvides" : {
"file" : "lib/Dist/Zilla/Plugin/MetaProvides.pm",
"version" : "1.12044803"
"version" : "1.12044806"
},
"Dist::Zilla::Role::MetaProvider::Provider" : {
"file" : "lib/Dist/Zilla/Role/MetaProvider/Provider.pm",
"version" : "1.12044803"
"version" : "1.12044806"
}
},
"release_status" : "stable",
Expand All @@ -98,7 +99,7 @@
"web" : "http://github.com/kentfredric/dist-zilla-plugin-metaprovides/tree"
}
},
"version" : "1.12044803",
"version" : "1.12044806",
"x_BuiltWith" : {
"modules" : {
"Dist::Zilla::Plugin::Bootstrap::lib" : "0.01000003",
Expand All @@ -114,6 +115,7 @@
"Moose::Role" : "1.17",
"MooseX::Types" : "0.24",
"MooseX::Types::Moose" : "0.24",
"Scalar::Util" : "1.23",
"Test::Fatal" : "0.003",
"Test::More" : "0.96",
"namespace::autoclean" : "0.11"
Expand Down
12 changes: 7 additions & 5 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ build_requires:
File::Find: 0
File::Temp: 0
Module::Build: 0.3601
Scalar::Util: 0
Test::Fatal: 0
Test::More: 0.88
configure_requires:
Expand All @@ -26,16 +27,16 @@ no_index:
provides:
Dist::Zilla::MetaProvides::ProvideRecord:
file: lib/Dist/Zilla/MetaProvides/ProvideRecord.pm
version: 1.12044803
version: 1.12044806
Dist::Zilla::MetaProvides::Types:
file: lib/Dist/Zilla/MetaProvides/Types.pm
version: 1.12044803
version: 1.12044806
Dist::Zilla::Plugin::MetaProvides:
file: lib/Dist/Zilla/Plugin/MetaProvides.pm
version: 1.12044803
version: 1.12044806
Dist::Zilla::Role::MetaProvider::Provider:
file: lib/Dist/Zilla/Role/MetaProvider/Provider.pm
version: 1.12044803
version: 1.12044806
requires:
Dist::Zilla::Role::MetaProvider: 0
Dist::Zilla::Util::EmulatePhase: 0.01000101
Expand All @@ -47,7 +48,7 @@ requires:
resources:
homepage: http://github.com/kentfredric/dist-zilla-plugin-metaprovides/tree
repository: git://github.com/kentfredric/dist-zilla-plugin-metaprovides.git
version: 1.12044803
version: 1.12044806
x_BuiltWith:
modules:
Dist::Zilla::Plugin::Bootstrap::lib: 0.01000003
Expand All @@ -63,6 +64,7 @@ x_BuiltWith:
Moose::Role: 1.17
MooseX::Types: 0.24
MooseX::Types::Moose: 0.24
Scalar::Util: 1.23
Test::Fatal: 0.003
Test::More: 0.96
namespace::autoclean: 0.11
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ NAME
in your META.yml

VERSION
version 1.12044803
version 1.12044806

SYNOPSIS
In your projects dist.ini
Expand Down
4 changes: 2 additions & 2 deletions lib/Dist/Zilla/MetaProvides/ProvideRecord.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use warnings;

package Dist::Zilla::MetaProvides::ProvideRecord;
BEGIN {
$Dist::Zilla::MetaProvides::ProvideRecord::VERSION = '1.12044803';
$Dist::Zilla::MetaProvides::ProvideRecord::VERSION = '1.12044806';
}

# ABSTRACT: Data Management Record for MetaProvider::Provides Based Class
Expand Down Expand Up @@ -49,7 +49,7 @@ Dist::Zilla::MetaProvides::ProvideRecord - Data Management Record for MetaProvid
=head1 VERSION
version 1.12044803
version 1.12044806
=head1 ATTRIBUTES
Expand Down
4 changes: 2 additions & 2 deletions lib/Dist/Zilla/MetaProvides/Types.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use warnings;

package Dist::Zilla::MetaProvides::Types;
BEGIN {
$Dist::Zilla::MetaProvides::Types::VERSION = '1.12044803';
$Dist::Zilla::MetaProvides::Types::VERSION = '1.12044806';
}

# ABSTRACT: Utility Types for the MetaProvides Plugin
Expand Down Expand Up @@ -32,7 +32,7 @@ Dist::Zilla::MetaProvides::Types - Utility Types for the MetaProvides Plugin
=head1 VERSION
version 1.12044803
version 1.12044806
=head1 SUBTYPES
Expand Down
4 changes: 2 additions & 2 deletions lib/Dist/Zilla/Plugin/MetaProvides.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use warnings;

package Dist::Zilla::Plugin::MetaProvides;
BEGIN {
$Dist::Zilla::Plugin::MetaProvides::VERSION = '1.12044803';
$Dist::Zilla::Plugin::MetaProvides::VERSION = '1.12044806';
}

# ABSTRACT: Generating and Populating 'provides' in your META.yml
Expand All @@ -20,7 +20,7 @@ Dist::Zilla::Plugin::MetaProvides - Generating and Populating 'provides' in your
=head1 VERSION
version 1.12044803
version 1.12044806
=head1 SYNOPSIS
Expand Down
4 changes: 2 additions & 2 deletions lib/Dist/Zilla/Role/MetaProvider/Provider.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use warnings;

package Dist::Zilla::Role::MetaProvider::Provider;
BEGIN {
$Dist::Zilla::Role::MetaProvider::Provider::VERSION = '1.12044803';
$Dist::Zilla::Role::MetaProvider::Provider::VERSION = '1.12044806';
}

# ABSTRACT: A Role for Metadata providers specific to the 'provider' key.
Expand Down Expand Up @@ -134,7 +134,7 @@ Dist::Zilla::Role::MetaProvider::Provider - A Role for Metadata providers specif
=head1 VERSION
version 1.12044803
version 1.12044806
=head1 PERFORMS ROLES
Expand Down
1 change: 1 addition & 0 deletions t/000-report-versions-tiny.t
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ eval { $v .= pmver('Moose','any version') };
eval { $v .= pmver('Moose::Role','any version') };
eval { $v .= pmver('MooseX::Types','any version') };
eval { $v .= pmver('MooseX::Types::Moose','any version') };
eval { $v .= pmver('Scalar::Util','any version') };
eval { $v .= pmver('Test::Fatal','any version') };
eval { $v .= pmver('Test::More','0.88') };
eval { $v .= pmver('namespace::autoclean','any version') };
Expand Down
69 changes: 69 additions & 0 deletions t/02-MetaProvides-ProvideRecord.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
use strict;
use warnings;

use Test::More;
use lib 't/lib';

use Dist::Zilla::Util::Test::KENTNL qw( test_config );
use Dist::Zilla::MetaProvides::ProvideRecord;
use Test::Fatal;
use Scalar::Util qw( refaddr );

my $fake_dzil = test_config(
{
dist_root => 'corpus/dist/DZT',
ini => [ 'GatherDir', [ 'Prereqs' => { 'Test::Simple' => '0.88' } ], [ 'FakePlugin' => {} ] ],
}
);

my $record;

is(
exception {
$record = Dist::Zilla::MetaProvides::ProvideRecord->new(
version => '1.0',
module => 'FakeModule',
file => 'fakefile',
parent => $fake_dzil->plugin_named('FakePlugin'),
);
},
undef,
'Construction works'
);

can_ok( $record, 'version' );
is( $record->version, '1.0', 'version is consistent' );

can_ok( $record, 'module' );
is( $record->module, 'FakeModule', 'module is consistent' );

can_ok( $record, 'file' );
is( $record->file, 'fakefile', 'file is consistent' );

can_ok( $record, 'parent' );
is( refaddr $record->parent, refaddr $fake_dzil->plugin_named('FakePlugin'), 'parent link is right' );

can_ok( $record, 'zilla' );
is( refaddr $record->zilla, refaddr $fake_dzil , 'dzil link is right' );

can_ok( $record, '_resolve_version' );

is_deeply( [ $record->_resolve_version(3.1415) ], [ 'version', '0.001' ], '_resolve_version internal works as expected' );

can_ok( $record, 'copy_into' );

my $hash = {};
$record->copy_into($hash);

is_deeply(
$hash,
{
FakeModule => {
file => 'fakefile',
version => '0.001',
}
},
'copy_into structures match'
);

done_testing;
30 changes: 30 additions & 0 deletions t/03-Types.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
use strict;
use warnings;

use Test::More;

use Dist::Zilla::MetaProvides::Types qw( :all );

{

package Dist::Zilla::Role::MetaProvider::Provider;
use Moose::Role;
}
{

package Test;
use Moose;
with 'Dist::Zilla::Role::MetaProvider::Provider';
__PACKAGE__->meta->make_immutable;
}

isa_ok( \&ModVersion, 'CODE' );
isa_ok( \&ProviderObject, 'CODE' );
isa_ok( \&is_ModVersion, 'CODE' );
isa_ok( \&is_ProviderObect, 'CODE' );
ok( is_ModVersion('1.0'), '1.0 is a valid module version' );
ok( is_ModVersion(undef), 'undef is a valid module version' );
ok( is_ModVersion('9999'), '9999 is a valid module version' );
ok( is_ProviderObject( Test->new() ), 'Given obeject is a ProviderObject' );

done_testing;

0 comments on commit 0b1b378

Please sign in to comment.