Skip to content

Commit

Permalink
Build results of 8fd3eb2 (on master)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Apr 27, 2016
1 parent 705c424 commit f23724e
Show file tree
Hide file tree
Showing 13 changed files with 67 additions and 42 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 Dist-Zilla-Plugin-MetaProvides-Package

2.004000 2016-04-27T02:37:23Z 50a9c97
- Now using Role::ModuleMetadata to delegate actual metadata extraction from ::File objects. This should be
effectively no change, but it could be.

[Dependencies::Stats]
- Dependencies changed since 2.003002, see misc/*.deps* for details
- develop: +1
- runtime: +1 -1

2.003002 2016-04-15T06:21:44Z 6ac5567
- Remove QuickReference section as per #4
- Enhance Synopsis documentation.
Expand Down
21 changes: 13 additions & 8 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"Dist::Zilla::Plugin::TestRelease" : "0",
"Dist::Zilla::Plugin::Twitter" : "0",
"Dist::Zilla::Plugin::UploadToCPAN" : "0",
"Dist::Zilla::Role::ModuleMetadata" : "0",
"English" : "0",
"Pod::Coverage::TrustPod" : "0",
"Software::License::Perl_5" : "0",
Expand Down Expand Up @@ -113,9 +114,9 @@
"Dist::Zilla::Plugin::FinderCode" : "0",
"Dist::Zilla::Plugin::MetaProvides" : "1.15000000",
"Dist::Zilla::Role::MetaProvider::Provider" : "0",
"Dist::Zilla::Role::ModuleMetadata" : "0",
"Dist::Zilla::Role::PPI" : "0",
"Dist::Zilla::Util::ConfigDumper" : "0.003000",
"Module::Metadata" : "1.000022",
"Moose" : "0",
"MooseX::LazyRequire" : "0",
"MooseX::Types::Moose" : "0",
Expand Down Expand Up @@ -155,10 +156,10 @@
"provides" : {
"Dist::Zilla::Plugin::MetaProvides::Package" : {
"file" : "lib/Dist/Zilla/Plugin/MetaProvides/Package.pm",
"version" : "2.003002"
"version" : "2.004000"
}
},
"release_status" : "stable",
"release_status" : "testing",
"resources" : {
"bugtracker" : {
"web" : "https://github.com/kentnl/Dist-Zilla-Plugin-MetaProvides-Package/issues"
Expand All @@ -170,7 +171,7 @@
"web" : "https://github.com/kentnl/Dist-Zilla-Plugin-MetaProvides-Package"
}
},
"version" : "2.003002",
"version" : "2.004000",
"x_BuiltWith" : {
"external_file" : "misc/built_with.json"
},
Expand Down Expand Up @@ -217,10 +218,14 @@
"inherit_missing" : "1",
"inherit_version" : "1",
"meta_noindex" : "1"
},
"Dist::Zilla::Role::ModuleMetadata" : {
"Module::Metadata" : "1.000031",
"version" : "0.003"
}
},
"name" : "@Author::KENTNL/MetaProvides::Package",
"version" : "2.003002"
"version" : "2.003003"
},
{
"class" : "Dist::Zilla::Plugin::MetaData::BuiltWith",
Expand Down Expand Up @@ -710,7 +715,7 @@
"branch" : null,
"changelog" : "Changes",
"signed" : 0,
"tag" : "2.003002-source",
"tag" : "2.004000-source",
"tag_format" : "%v-source",
"tag_message" : "v%v"
},
Expand Down Expand Up @@ -801,7 +806,7 @@
"branch" : "releases",
"changelog" : "Changes",
"signed" : 0,
"tag" : "2.003002",
"tag" : "2.004000",
"tag_format" : "%v",
"tag_message" : "v%v"
},
Expand Down Expand Up @@ -1001,7 +1006,7 @@
"zilla" : {
"class" : "Dist::Zilla::Dist::Builder",
"config" : {
"is_trial" : "0"
"is_trial" : "1"
},
"version" : "5.043"
}
Expand Down
6 changes: 3 additions & 3 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ no_index:
provides:
Dist::Zilla::Plugin::MetaProvides::Package:
file: lib/Dist/Zilla/Plugin/MetaProvides/Package.pm
version: '2.003002'
version: '2.004000'
recommends:
Moose: '2.000'
requires:
Expand All @@ -39,9 +39,9 @@ requires:
Dist::Zilla::Plugin::FinderCode: '0'
Dist::Zilla::Plugin::MetaProvides: '1.15000000'
Dist::Zilla::Role::MetaProvider::Provider: '0'
Dist::Zilla::Role::ModuleMetadata: '0'
Dist::Zilla::Role::PPI: '0'
Dist::Zilla::Util::ConfigDumper: '0.003000'
Module::Metadata: '1.000022'
Moose: '0'
MooseX::LazyRequire: '0'
MooseX::Types::Moose: '0'
Expand All @@ -55,4 +55,4 @@ resources:
bugtracker: https://github.com/kentnl/Dist-Zilla-Plugin-MetaProvides-Package/issues
homepage: https://github.com/kentnl/Dist-Zilla-Plugin-MetaProvides-Package
repository: https://github.com/kentnl/Dist-Zilla-Plugin-MetaProvides-Package.git
version: '2.003002'
version: '2.004000'
5 changes: 3 additions & 2 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ my %WriteMakefileArgs = (
"Dist::Zilla::Plugin::FinderCode" => 0,
"Dist::Zilla::Plugin::MetaProvides" => "1.15000000",
"Dist::Zilla::Role::MetaProvider::Provider" => 0,
"Dist::Zilla::Role::ModuleMetadata" => 0,
"Dist::Zilla::Role::PPI" => 0,
"Dist::Zilla::Util::ConfigDumper" => "0.003000",
"Module::Metadata" => "1.000022",
"Moose" => 0,
"MooseX::LazyRequire" => 0,
"MooseX::Types::Moose" => 0,
Expand All @@ -45,7 +45,7 @@ my %WriteMakefileArgs = (
"Test::Moose" => 0,
"Test::More" => "0.96"
},
"VERSION" => "2.003002",
"VERSION" => "2.004000",
"test" => {
"TESTS" => "t/*.t t/00-compile/*.t"
}
Expand All @@ -59,6 +59,7 @@ my %FallbackPrereqs = (
"Dist::Zilla::Plugin::FinderCode" => 0,
"Dist::Zilla::Plugin::MetaProvides" => "1.15000000",
"Dist::Zilla::Role::MetaProvider::Provider" => 0,
"Dist::Zilla::Role::ModuleMetadata" => 0,
"Dist::Zilla::Role::PPI" => 0,
"Dist::Zilla::Util::ConfigDumper" => "0.003000",
"Dist::Zilla::Util::Test::KENTNL" => "1.003001",
Expand Down
1 change: 1 addition & 0 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ modules = Dist::Zilla::App::Command::bakeini
;version_rel_day = 24
;version_rel_hour = 0
;version_rel_time_zone = Pacific/Auckland
; authordep Dist::Zilla::Role::ModuleMetadata
-phase = develop
-relationship = requires
Dist::Zilla::Plugin::Author::KENTNL::CONTRIBUTING = 0.001003
Expand Down
1 change: 1 addition & 0 deletions dist.ini.meta
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ srcreadme = mkdn
;version_rel_hour = 0
;version_rel_time_zone = Pacific/Auckland

; authordep Dist::Zilla::Role::ModuleMetadata
[Prereqs / RuntimeRequires]
Dist::Zilla = 5.000 ; encoded_content
Dist::Zilla::Plugin::MetaProvides = 1.15000000
Expand Down
25 changes: 4 additions & 21 deletions lib/Dist/Zilla/Plugin/MetaProvides/Package.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use warnings;

package Dist::Zilla::Plugin::MetaProvides::Package;

our $VERSION = '2.003002';
our $VERSION = '2.004000'; # TRIAL

# ABSTRACT: Extract namespaces/version from traditional packages for provides

Expand All @@ -13,7 +13,6 @@ our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
use Moose qw( with has around );
use MooseX::LazyRequire;
use MooseX::Types::Moose qw( HashRef Str );
use Module::Metadata 1.000005;
use Dist::Zilla::MetaProvides::ProvideRecord 1.14000000;
use Data::Dump 1.16 ();
use Safe::Isa;
Expand All @@ -39,6 +38,7 @@ use Dist::Zilla::Util::ConfigDumper 0.003000 qw( config_dumper dump_plugin );
use namespace::autoclean;
with 'Dist::Zilla::Role::MetaProvider::Provider';
with 'Dist::Zilla::Role::PPI';
with 'Dist::Zilla::Role::ModuleMetadata';

has '+meta_noindex' => ( default => sub { 1 } );

Expand Down Expand Up @@ -80,7 +80,7 @@ sub _packages_for {
return;
}

my $meta = $self->_module_metadata_for($file);
my $meta = $self->module_metadata_for_file($file);
return unless $meta;

$self->log_debug(
Expand Down Expand Up @@ -157,23 +157,6 @@ sub _packages_for {
return @out;
}

sub _module_metadata_for {
my ( $self, $file ) = @_;

my $content = $file->encoded_content;

## no critic (InputOutput::RequireBriefOpen, Variables::ProhibitPunctuationVars)
open my $fh, '<', \$content or $self->log_fatal( [ 'Cant open scalar filehandle for read. %s', $!, ] );
binmode $fh, sprintf ':encoding(%s)', $file->encoding;

my $meta = Module::Metadata->new_from_handle( $fh, $file->name, collect_pod => 0 );

return $meta if $meta;

$self->log_fatal( 'Can\'t extract metadata from ' . $file->name );
return ();
}

sub _can_index {
my ( undef, $namespace ) = @_;
## no critic (RegularExpressions::RequireLineBoundaryMatching)
Expand Down Expand Up @@ -311,7 +294,7 @@ Dist::Zilla::Plugin::MetaProvides::Package - Extract namespaces/version from tra
=head1 VERSION
version 2.003002
version 2.004000
=head1 SYNOPSIS
Expand Down
9 changes: 8 additions & 1 deletion misc/Changes.deps
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
This file contains changes in REQUIRED dependencies for standard CPAN phases (configure/build/runtime/test)

2.003002
2.004000
[Added / runtime requires]
- Dist::Zilla::Role::ModuleMetadata

[Removed / runtime requires]
- Module::Metadata 1.000022

2.003002 2016-04-15T06:21:44Z

2.003001 2015-01-15T18:39:26Z
[Added / runtime requires]
Expand Down
12 changes: 11 additions & 1 deletion misc/Changes.deps.all
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
This file contains ALL changes in dependencies in both REQUIRED / OPTIONAL dependencies for all phases (configure/build/runtime/test/develop)

2.003002
2.004000
[Added / develop requires]
- Dist::Zilla::Role::ModuleMetadata

[Added / runtime requires]
- Dist::Zilla::Role::ModuleMetadata

[Removed / runtime requires]
- Module::Metadata 1.000022

2.003002 2016-04-15T06:21:44Z
[Added / develop requires]
- Dist::Zilla::Plugin::Author::KENTNL::CONTRIBUTING 0.001003
- Dist::Zilla::Plugin::MetaYAML::Minimal
Expand Down
6 changes: 5 additions & 1 deletion misc/Changes.deps.dev
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
This file contains changes to DEVELOPMENT dependencies only ( both REQUIRED and OPTIONAL )

2.003002
2.004000
[Added / develop requires]
- Dist::Zilla::Role::ModuleMetadata

2.003002 2016-04-15T06:21:44Z
[Added / develop requires]
- Dist::Zilla::Plugin::Author::KENTNL::CONTRIBUTING 0.001003
- Dist::Zilla::Plugin::MetaYAML::Minimal
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)

2.003002
2.004000

2.003002 2016-04-15T06:21:44Z

2.003001 2015-01-15T18:39:26Z
[Added / runtime recommends]
Expand Down
7 changes: 4 additions & 3 deletions misc/built_with.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"Dist::Zilla::Plugin::MetaJSON" : "5.043",
"Dist::Zilla::Plugin::MetaNoIndex" : "5.043",
"Dist::Zilla::Plugin::MetaProvides" : "2.001010",
"Dist::Zilla::Plugin::MetaProvides::Package" : "2.003003",
"Dist::Zilla::Plugin::MetaProvides::Package" : "2.004001",
"Dist::Zilla::Plugin::MetaTests" : "5.043",
"Dist::Zilla::Plugin::MetaYAML::Minimal" : "0.001000",
"Dist::Zilla::Plugin::MinimumPerl" : "1.006",
Expand Down Expand Up @@ -60,14 +60,15 @@
"Dist::Zilla::Plugin::UploadToCPAN" : "5.043",
"Dist::Zilla::PluginBundle::Author::KENTNL" : "2.025010",
"Dist::Zilla::Role::MetaProvider::Provider" : "2.001010",
"Dist::Zilla::Role::ModuleMetadata" : "0.003",
"Dist::Zilla::Role::PPI" : "5.043",
"Dist::Zilla::Util::ConfigDumper" : "0.003007",
"Dist::Zilla::Util::Test::KENTNL" : "1.005013",
"English" : "1.09",
"ExtUtils::MakeMaker" : "7.11_06",
"File::Spec" : "3.56",
"Module::Metadata" : "1.000031",
"Moose" : "2.1604",
"Moose" : "2.1605",
"MooseX::LazyRequire" : "0.11",
"MooseX::Types::Moose" : "0.46",
"PPI::Document" : "1.220",
Expand All @@ -80,7 +81,7 @@
"Test::EOL" : "1.6",
"Test::Fatal" : "0.014",
"Test::Kwalitee" : "1.22",
"Test::Moose" : "2.1604",
"Test::Moose" : "2.1605",
"Test::More" : "1.001014",
"Test::Pod" : "1.51",
"Test::Pod::Coverage" : "1.10",
Expand Down
3 changes: 2 additions & 1 deletion t/00-report-prereqs.dd
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ do { my $x = {
'Dist::Zilla::Plugin::TestRelease' => '0',
'Dist::Zilla::Plugin::Twitter' => '0',
'Dist::Zilla::Plugin::UploadToCPAN' => '0',
'Dist::Zilla::Role::ModuleMetadata' => '0',
'English' => '0',
'Pod::Coverage::TrustPod' => '0',
'Software::License::Perl_5' => '0',
Expand Down Expand Up @@ -92,9 +93,9 @@ do { my $x = {
'Dist::Zilla::Plugin::FinderCode' => '0',
'Dist::Zilla::Plugin::MetaProvides' => '1.15000000',
'Dist::Zilla::Role::MetaProvider::Provider' => '0',
'Dist::Zilla::Role::ModuleMetadata' => '0',
'Dist::Zilla::Role::PPI' => '0',
'Dist::Zilla::Util::ConfigDumper' => '0.003000',
'Module::Metadata' => '1.000022',
'Moose' => '0',
'MooseX::LazyRequire' => '0',
'MooseX::Types::Moose' => '0',
Expand Down

0 comments on commit f23724e

Please sign in to comment.