Skip to content

Commit

Permalink
Build results of c3d3725 (on master)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Jul 18, 2011
2 parents 231a7ae + c3d3725 commit 8924682
Show file tree
Hide file tree
Showing 10 changed files with 179 additions and 27 deletions.
3 changes: 2 additions & 1 deletion Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ my %module_build_args = (
'File::Temp' => '0',
'File::pushd' => '0',
'FindBin' => '0',
'JSON' => '0',
'Module::Build' => '0.3601',
'Path::Class' => '0',
'Test::DZil' => '0',
Expand All @@ -29,7 +30,7 @@ my %module_build_args = (
'Kent Fredric <kentnl@cpan.org>'
],
'dist_name' => 'Dist-Zilla-PluginBundle-Author-KENTNL',
'dist_version' => '1.0.13',
'dist_version' => '1.0.14',
'license' => 'perl',
'module_name' => 'Dist::Zilla::PluginBundle::Author::KENTNL',
'recommends' => {},
Expand Down
13 changes: 13 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
Revision history for Dist-Zilla-PluginBundle-Author-KENTNL

1.0.14 2011-07-18T21:23:49Z
[Bugs]
- Reworked handling of auto_prereqs_skip not to carp needlessly.

[Features]
- Can use multiple values of auto_prereqs_skip now.
- Now stricter about flags passed to detect typos.
- Minted dists now have an example auto_prereqs_skip

[Tests]
- Minter test now tests auto_prereq generation and the auto_prereqs_skip
flag.

1.0.13 2011-07-17T01:06:15Z
[Bugs]
- Fixed an issue where the change of Dzil's Autoprereqs 'skip' parameter
Expand Down
10 changes: 6 additions & 4 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"File::Temp" : 0,
"File::pushd" : 0,
"FindBin" : 0,
"JSON" : 0,
"Path::Class" : 0,
"Test::DZil" : 0,
"Test::Fatal" : 0,
Expand All @@ -117,15 +118,15 @@
"provides" : {
"Dist::Zilla::MintingProfile::Author::KENTNL" : {
"file" : "lib/Dist/Zilla/MintingProfile/Author/KENTNL.pm",
"version" : "v1.0.13"
"version" : "v1.0.14"
},
"Dist::Zilla::Plugin::Author::KENTNL::DistINI" : {
"file" : "lib/Dist/Zilla/Plugin/Author/KENTNL/DistINI.pm",
"version" : "v1.0.13"
"version" : "v1.0.14"
},
"Dist::Zilla::PluginBundle::Author::KENTNL" : {
"file" : "lib/Dist/Zilla/PluginBundle/Author/KENTNL.pm",
"version" : "v1.0.13"
"version" : "v1.0.14"
}
},
"release_status" : "stable",
Expand All @@ -137,7 +138,7 @@
"web" : "https://github.com/kentfredric/Dist-Zilla-PluginBundle-Author-KENTNL"
}
},
"version" : "1.0.13",
"version" : "1.0.14",
"x_BuiltWith" : {
"modules" : {
"Capture::Tiny" : "0.11",
Expand Down Expand Up @@ -193,6 +194,7 @@
"File::pushd" : "1.00",
"FindBin" : "1.50",
"IO::Socket::SSL" : "1.44",
"JSON" : "2.53",
"LWP::Protocol::https" : "6.02",
"Module::Build" : "0.38",
"Moose" : "2.001",
Expand Down
10 changes: 6 additions & 4 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ build_requires:
File::Temp: 0
File::pushd: 0
FindBin: 0
JSON: 0
Module::Build: 0.3601
Path::Class: 0
Test::DZil: 0
Expand All @@ -28,13 +29,13 @@ name: Dist-Zilla-PluginBundle-Author-KENTNL
provides:
Dist::Zilla::MintingProfile::Author::KENTNL:
file: lib/Dist/Zilla/MintingProfile/Author/KENTNL.pm
version: v1.0.13
version: v1.0.14
Dist::Zilla::Plugin::Author::KENTNL::DistINI:
file: lib/Dist/Zilla/Plugin/Author/KENTNL/DistINI.pm
version: v1.0.13
version: v1.0.14
Dist::Zilla::PluginBundle::Author::KENTNL:
file: lib/Dist/Zilla/PluginBundle/Author/KENTNL.pm
version: v1.0.13
version: v1.0.14
requires:
Carp: 0
Class::Load: 0
Expand Down Expand Up @@ -96,7 +97,7 @@ requires:
resources:
homepage: https://github.com/kentfredric/Dist-Zilla-PluginBundle-Author-KENTNL
repository: https://github.com/kentfredric/Dist-Zilla-PluginBundle-Author-KENTNL
version: 1.0.13
version: 1.0.14
x_BuiltWith:
modules:
Capture::Tiny: 0.11
Expand Down Expand Up @@ -152,6 +153,7 @@ x_BuiltWith:
File::pushd: 1.00
FindBin: 1.50
IO::Socket::SSL: 1.44
JSON: 2.53
LWP::Protocol::https: 6.02
Module::Build: 0.38
Moose: 2.001
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
build your distributions.

VERSION
version 1.0.13
version 1.0.14

SYNOPSIS
[@Author::KENTNL]
Expand Down
4 changes: 2 additions & 2 deletions lib/Dist/Zilla/MintingProfile/Author/KENTNL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use warnings;

package Dist::Zilla::MintingProfile::Author::KENTNL;
BEGIN {
$Dist::Zilla::MintingProfile::Author::KENTNL::VERSION = '1.0.13';
$Dist::Zilla::MintingProfile::Author::KENTNL::VERSION = '1.0.14';
}

# ABSTRACT: KENTNL's Minting Profile
Expand All @@ -26,7 +26,7 @@ Dist::Zilla::MintingProfile::Author::KENTNL - KENTNL's Minting Profile
=head1 VERSION
version 1.0.13
version 1.0.14
=head1 SYNOPSIS
Expand Down
5 changes: 3 additions & 2 deletions lib/Dist/Zilla/Plugin/Author/KENTNL/DistINI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use warnings;

package Dist::Zilla::Plugin::Author::KENTNL::DistINI;
BEGIN {
$Dist::Zilla::Plugin::Author::KENTNL::DistINI::VERSION = '1.0.13';
$Dist::Zilla::Plugin::Author::KENTNL::DistINI::VERSION = '1.0.14';
}

# ABSTRACT: Generate a C<dist.ini> for @Author::KENTNL projects.
Expand Down Expand Up @@ -53,6 +53,7 @@ sub gather_files {
'; version_rel_hour = %{rel_hour}n', #
'; version_rel_time_zone = %{tz}s', #
'twitter_hash_tags = %{tags}s', #
'; auto_prereqs_skip = File::Find', #
$empty, #
'[Prereqs]', #
$empty, #
Expand Down Expand Up @@ -114,7 +115,7 @@ Dist::Zilla::Plugin::Author::KENTNL::DistINI - Generate a C<dist.ini> for @Autho
=head1 VERSION
version 1.0.13
version 1.0.14
=head1 SYNOPSIS
Expand Down
57 changes: 51 additions & 6 deletions lib/Dist/Zilla/PluginBundle/Author/KENTNL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use warnings;

package Dist::Zilla::PluginBundle::Author::KENTNL;
BEGIN {
$Dist::Zilla::PluginBundle::Author::KENTNL::VERSION = '1.0.13';
$Dist::Zilla::PluginBundle::Author::KENTNL::VERSION = '1.0.14';
}

# ABSTRACT: BeLike::KENTNL when you build your distributions.
Expand Down Expand Up @@ -60,7 +60,7 @@ sub _mk_only {
return () if exists $ENV{ 'KENTNL_NO' . $envname };
return @rest unless defined $args;
return @rest unless ref $args eq 'HASH';
return @rest unless exists $args->{ 'no' . $argfield };
return @rest unless exists $args->{ 'no_' . $argfield };
return ();
};
{
Expand Down Expand Up @@ -106,16 +106,59 @@ sub _if_git_versions {
return @{$else};
}

sub _params_list {
return (
qw( :version auto_prereqs_skip git_versions twitter_only release_fail no_cpan no_git no_twitter twitter_hash_tags twitter_extra_hash_tags ),
( map { 'version_' . $_ } qw( major minor ), ( map { 'rel_' . $_ } qw( year month day hour time_zone ) ) ),
qw( relea0se_fail )
);
}

sub _param_checker {
my $_self = shift;

my %params_hash = map { $_ => 1 } $_self->_params_list;

return sub {

my ( $self, $param ) = @_;
if ( not exists $params_hash{$param} ) {
require Carp;
Carp::croak("[Author::KENTNL] Parameter $param doesn't appear to be supported");
}

};
}


sub mvp_multivalue_args { return qw( auto_prereqs_skip ) }

sub bundle_config {
my ( $self, $section ) = @_;
my $class = ( ref $self ) || $self;

my $arg = $section->{payload};
my $arg = $section->{payload};

my $twitter_conf = { hash_tags => _defined_or( $arg, twitter_hash_tags => '#perl #cpan' ) };
my $extra_hash = _defined_or( $arg, twitter_extra_hash_tags => q{}, 1 );
my $extra_hash = _defined_or( $arg, twitter_extra_hash_tags => q{}, 1 );
$twitter_conf->{hash_tags} .= q{ } . $extra_hash if $extra_hash;
my $warn_no_git = _if_git_versions( $arg, [1], [0] );

my $checker = $self->_param_checker;

for my $param ( keys %{$arg} ) {
$checker->( $self, $param );
}

if ( not defined $arg->{auto_prereqs_skip} ) {
$arg->{auto_prereqs_skip} = [];
}

if ( not ref $arg->{auto_prereqs_skip} eq 'ARRAY' ) {
require Carp;
Carp::carp('[Author::KENTNL] auto_prereqs_skip is expected to be an array ref');
}

my @config = map { _expand( $class, $_->[0], $_->[1] ) } (
[
_if_git_versions(
Expand Down Expand Up @@ -148,7 +191,7 @@ sub bundle_config {
[ 'ReadmeFromPod' => {} ],
[ 'ManifestSkip' => {} ],
[ 'Manifest' => {} ],
[ 'AutoPrereqs' => { skip => [ _defined_or( $arg , auto_prereqs_skip => qw{}, 1 )] } ],
[ 'AutoPrereqs' => { skip => $arg->{auto_prereqs_skip} } ],
[
'Prereqs' => {
-name => 'BundleDevelNeeds',
Expand Down Expand Up @@ -222,7 +265,7 @@ Dist::Zilla::PluginBundle::Author::KENTNL - BeLike::KENTNL when you build your d
=head1 VERSION
version 1.0.13
version 1.0.14
=head1 SYNOPSIS
Expand Down Expand Up @@ -305,6 +348,8 @@ same as twitter_only=1
same as release_fail=1
=for Pod::Coverage mvp_multivalue_args
=head1 AUTHOR
Kent Fredric <kentnl@cpan.org>
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 @@ -103,6 +103,7 @@ eval { $v .= pmver('File::Temp','any version') };
eval { $v .= pmver('File::pushd','any version') };
eval { $v .= pmver('FindBin','any version') };
eval { $v .= pmver('IO::Socket::SSL','any version') };
eval { $v .= pmver('JSON','any version') };
eval { $v .= pmver('LWP::Protocol::https','6.00') };
eval { $v .= pmver('Module::Build','0.3601') };
eval { $v .= pmver('Moose','1.01') };
Expand Down
Loading

0 comments on commit 8924682

Please sign in to comment.