Skip to content

Commit

Permalink
Build results of 7b31df1 (on master)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Jun 2, 2014
1 parent 31f2f67 commit f483a32
Show file tree
Hide file tree
Showing 11 changed files with 105 additions and 27 deletions.
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Release history for Dist-Zilla-Util-BundleInfo

1.001000 2014-06-02T09:06:39Z
[01 Plugin::payload_list]
- New function returns payload contents in list form with MVP checked arity.

1.000000 2014-06-02T02:30:43Z
[01 MAJOR]
- Mostly packaging changes that will predominantly be significant for non-CPAN toolchains.
Expand Down
4 changes: 3 additions & 1 deletion Changes.deps
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
1.000000
1.001000

1.000000 2014-06-02T02:30:43Z
[Added / configure requires]
- ExtUtils::MakeMaker 6.30

Expand Down
4 changes: 3 additions & 1 deletion Changes.deps.all
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
1.000000
1.001000

1.000000 2014-06-02T02:30:43Z
[Added / configure recommends]
- ExtUtils::MakeMaker 6.98

Expand Down
4 changes: 3 additions & 1 deletion Changes.deps.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
1.000000
1.001000

1.000000 2014-06-02T02:30:43Z
[Added / develop requires]
- Dist::Zilla::Plugin::Authority 1.006
- Dist::Zilla::Plugin::AutoPrereqs
Expand Down
4 changes: 3 additions & 1 deletion Changes.deps.opt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
1.000000
1.001000

1.000000 2014-06-02T02:30:43Z
[Added / configure recommends]
- ExtUtils::MakeMaker 6.98

Expand Down
10 changes: 5 additions & 5 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@
"provides" : {
"Dist::Zilla::Util::BundleInfo" : {
"file" : "lib/Dist/Zilla/Util/BundleInfo.pm",
"version" : "1.000000"
"version" : "1.001000"
},
"Dist::Zilla::Util::BundleInfo::Plugin" : {
"file" : "lib/Dist/Zilla/Util/BundleInfo/Plugin.pm",
"version" : "1.000000"
"version" : "1.001000"
}
},
"release_status" : "stable",
Expand All @@ -129,7 +129,7 @@
"web" : "https://github.com/kentfredric/Dist-Zilla-Util-BundleInfo"
}
},
"version" : "1.000000",
"version" : "1.001000",
"x_BuiltWith" : {
"modules" : {
"CPAN::Meta" : "2.141520",
Expand Down Expand Up @@ -622,7 +622,7 @@
"Dist::Zilla::Plugin::Git::Tag" : {
"branch" : null,
"signed" : 0,
"tag" : "1.000000-source",
"tag" : "1.001000-source",
"tag_format" : "%v-source",
"tag_message" : "v%v",
"time_zone" : "local"
Expand Down Expand Up @@ -693,7 +693,7 @@
"Dist::Zilla::Plugin::Git::Tag" : {
"branch" : "releases",
"signed" : 0,
"tag" : "1.000000",
"tag" : "1.001000",
"tag_format" : "%v",
"tag_message" : "v%v",
"time_zone" : "local"
Expand Down
10 changes: 5 additions & 5 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ name: Dist-Zilla-Util-BundleInfo
provides:
Dist::Zilla::Util::BundleInfo:
file: lib/Dist/Zilla/Util/BundleInfo.pm
version: '1.000000'
version: '1.001000'
Dist::Zilla::Util::BundleInfo::Plugin:
file: lib/Dist/Zilla/Util/BundleInfo/Plugin.pm
version: '1.000000'
version: '1.001000'
requires:
Carp: '0'
Dist::Zilla::Util: '0'
Expand All @@ -39,7 +39,7 @@ resources:
bugtracker: https://github.com/kentfredric/Dist-Zilla-Util-BundleInfo/issues
homepage: https://github.com/kentfredric/Dist-Zilla-Util-BundleInfo
repository: https://github.com/kentfredric/Dist-Zilla-Util-BundleInfo.git
version: '1.000000'
version: '1.001000'
x_BuiltWith:
modules:
CPAN::Meta: '2.141520'
Expand Down Expand Up @@ -433,7 +433,7 @@ x_Dist_Zilla:
Dist::Zilla::Plugin::Git::Tag:
branch: ~
signed: 0
tag: 1.000000-source
tag: 1.001000-source
tag_format: '%v-source'
tag_message: v%v
time_zone: local
Expand Down Expand Up @@ -487,7 +487,7 @@ x_Dist_Zilla:
Dist::Zilla::Plugin::Git::Tag:
branch: releases
signed: 0
tag: '1.000000'
tag: '1.001000'
tag_format: '%v'
tag_message: v%v
time_zone: local
Expand Down
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ my %WriteMakefileArgs = (
"Test::More" => "0.89",
"version" => 0
},
"VERSION" => "1.000000",
"VERSION" => "1.001000",
"test" => {
"TESTS" => "t/*.t t/00-compile/*.t"
}
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ NAME
Dist::Zilla::Util::BundleInfo - Load and interpret a bundle

VERSION
version 1.000000
version 1.001000

SYNOPSIS
use Dist::Zilla::Util::BundleInfo;
Expand Down
4 changes: 2 additions & 2 deletions lib/Dist/Zilla/Util/BundleInfo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use utf8;

package Dist::Zilla::Util::BundleInfo;

our $VERSION = '1.000000';
our $VERSION = '1.001000';

# ABSTRACT: Load and interpret a bundle

Expand Down Expand Up @@ -270,7 +270,7 @@ Dist::Zilla::Util::BundleInfo - Load and interpret a bundle
=head1 VERSION
version 1.000000
version 1.001000
=head1 SYNOPSIS
Expand Down
84 changes: 75 additions & 9 deletions lib/Dist/Zilla/Util/BundleInfo/Plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use utf8;

package Dist::Zilla::Util::BundleInfo::Plugin;

our $VERSION = '1.000000';
our $VERSION = '1.001000';

# ABSTRACT: Data about a single plugin instance in a bundle

Expand Down Expand Up @@ -162,13 +162,6 @@ sub short_module {
return "=$name";
}








sub _dzil_ini_header {
my ($self) = @_;
return sprintf '[%s / %s]', $self->short_module, $self->name;
Expand Down Expand Up @@ -197,6 +190,58 @@ sub _dzil_config_multiline {
return @out;
}

sub _autoexpand_list {
my ( $self, $key, $value ) = @_;
if ( not ref $value ) {
return ( $key, $value );
}
if ( not $self->_property_is_mvp_multi($key) ) {
require Carp;
Carp::carp( "$key is not an MVP multi-value for " . $self->module );
}
return map { ( $key, $_ ) } @{$value};
}
























sub payload_list {
my ( $self, ) = @_;
my $payload = $self->payload;
my @out;
for my $key ( sort keys %{$payload} ) {
push @out, $self->_autoexpand_list( $key, $payload->{$key} );
}
return @out;
}








sub to_dist_ini {
my ( $self, ) = @_;
my @out;
Expand Down Expand Up @@ -235,7 +280,7 @@ Dist::Zilla::Util::BundleInfo::Plugin - Data about a single plugin instance in a
=head1 VERSION
version 1.000000
version 1.001000
=head1 METHODS
Expand Down Expand Up @@ -266,6 +311,27 @@ routine
Dist::Zilla::Plugin::Foo -> Foo
Non::Dist::Zilla::Plugin::Foo -> =Non::Dist::Zilla::Plugin::Foo
=head2 C<payload_list>
Returns the payload in "expanded" form.
Internally, payloads are stored as:
{
key_a => value_0,
key_b => [ value_1, value_2, value_3 ],
}
And this is optimal for coding.
This method returns them in an order more amenable for C<INI> injection.
( 'key_a', value_0,
'key_b', value_1,
'key_b', value_2,
'key_b', value_3,
)
=head2 C<to_dist_ini>
Returns a copy of this C<plugin> in a textual form suitable for injecting into
Expand Down

0 comments on commit f483a32

Please sign in to comment.