Skip to content

Commit

Permalink
Build results of 46648a6 (on master)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Apr 6, 2013
1 parent 589cc75 commit 68f69a1
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ my %module_build_args = (
"Kent Fredric <kentnl\@cpan.org>"
],
"dist_name" => "Dist-Zilla-Plugin-Bootstrap-lib",
"dist_version" => "0.02000000",
"dist_version" => "0.02000100",
"license" => "perl",
"module_name" => "Dist::Zilla::Plugin::Bootstrap::lib",
"recommends" => {},
Expand Down
5 changes: 5 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Revision history for Dist-Zilla-Plugin-Bootstrap-lib

0.02000100 2013-04-06T09:53:45Z
[Bugs]
- 2 fallback conditions were accidentally using the same logic, so only one would ever work.
- satisfactory build dirs accidentally lacked a 'lib' suffix, so resulted in a "fallthrough" to system.

0.02000000 2013-04-06T09:38:52Z
[!Noteworthy Changes]
- @INC mutation now done slightly later at C<register_component>, which lets us get payload parameters out,
Expand Down
4 changes: 2 additions & 2 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"provides" : {
"Dist::Zilla::Plugin::Bootstrap::lib" : {
"file" : "lib/Dist/Zilla/Plugin/Bootstrap/lib.pm",
"version" : "0.02000000"
"version" : "0.02000100"
}
},
"release_status" : "stable",
Expand All @@ -75,7 +75,7 @@
"web" : "https://github.com/kentfredric/Dist-Zilla-Plugin-Bootstrap-lib"
}
},
"version" : "0.02000000",
"version" : "0.02000100",
"x_BuiltWith" : {
"modules" : {
"Cwd" : "3.40",
Expand Down
4 changes: 2 additions & 2 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: Dist-Zilla-Plugin-Bootstrap-lib
provides:
Dist::Zilla::Plugin::Bootstrap::lib:
file: lib/Dist/Zilla/Plugin/Bootstrap/lib.pm
version: 0.02000000
version: 0.02000100
requires:
Cwd: 0
Path::Tiny: 0
Expand All @@ -30,7 +30,7 @@ resources:
bugtracker: https://github.com/kentfredric/Dist-Zilla-Plugin-Bootstrap-lib/issues
homepage: https://github.com/kentfredric/Dist-Zilla-Plugin-Bootstrap-lib
repository: https://github.com/kentfredric/Dist-Zilla-Plugin-Bootstrap-lib.git
version: 0.02000000
version: 0.02000100
x_BuiltWith:
modules:
Cwd: 3.40
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
Dist::Zilla Plug-ins.

VERSION
version 0.02000000
version 0.02000100

SYNOPSIS
[Bootstrap::lib]
Expand Down
13 changes: 7 additions & 6 deletions lib/Dist/Zilla/Plugin/Bootstrap/lib.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ BEGIN {
$Dist::Zilla::Plugin::Bootstrap::lib::AUTHORITY = 'cpan:KENTNL';
}
{
$Dist::Zilla::Plugin::Bootstrap::lib::VERSION = '0.02000000';
$Dist::Zilla::Plugin::Bootstrap::lib::VERSION = '0.02000100';
}
## use critic;

Expand Down Expand Up @@ -59,19 +59,20 @@ sub register_component {

my (@candidates) = grep { $_->basename =~ /^\Q$distname\E-/ } grep { $_->is_dir } $cwd->children;

if ( @candidates != 1 and not $payload->{fallback} ) {
if ( scalar @candidates != 1 and not $payload->{fallback} ) {
$logger->log( [ 'candidates for bootstrap (%s) != 1, and fallback disabled. not bootstrapping', 0 + @candidates ] );
$logger->log_debug( [ 'candidate: %s', $_->basename ] ) for @candidates;
return;
}
if ( @candidates != 1 and not $payload->{fallback} ) {
if ( scalar @candidates != 1 and $payload->{fallback} ) {
$logger->log( [ 'candidates for bootstrap (%s) != 1, and fallback to boostrapping lib/', 0 + @candidates ] );
$logger->log_debug( [ 'candidate: %s', $_->basename ] ) for @candidates;
lib->import( $cwd->child('lib')->stringify );
return;
}
$logger->log( [ 'bootstrapping %s', $candidates[0]->stringify ] );
lib->import( $candidates[0]->stringify );
my $found = $candidates[0]->child('lib');
$logger->log( [ 'bootstrapping %s', $found->stringify ] );
lib->import( $found->stringify );

return

Expand All @@ -89,7 +90,7 @@ Dist::Zilla::Plugin::Bootstrap::lib - A minimal boot-strapping for Dist::Zilla P
=head1 VERSION
version 0.02000000
version 0.02000100
=head1 SYNOPSIS
Expand Down

0 comments on commit 68f69a1

Please sign in to comment.