Skip to content

Commit

Permalink
Build results of 6d3adb0 (on master)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Sep 5, 2013
1 parent 6a5d0f5 commit eef80c2
Show file tree
Hide file tree
Showing 13 changed files with 129 additions and 231 deletions.
11 changes: 5 additions & 6 deletions Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,27 @@ my %module_build_args = (
"Kent Fredric <kentnl\@cpan.org>"
],
"dist_name" => "Dist-Zilla-Plugin-Bootstrap-lib",
"dist_version" => "0.03000200",
"dist_version" => "0.04000000",
"license" => "perl",
"module_name" => "Dist::Zilla::Plugin::Bootstrap::lib",
"recommends" => {},
"recursive_test_files" => 1,
"requires" => {
"Cwd" => 0,
"Moo::HandleMoose::FakeMetaClass" => 0,
"Path::Tiny" => 0,
"Role::Tiny" => 0,
"lib" => 0,
"Dist::Zilla::Role::Bootstrap" => 0,
"Moose" => 0,
"perl" => "5.006",
"strict" => 0,
"warnings" => 0
},
"script_files" => [],
"test_requires" => {
"Cwd" => 0,
"Dist::Zilla" => 0,
"File::Copy::Recursive" => 0,
"IO::Handle" => 0,
"IPC::Open3" => 0,
"Path::FindDev" => 0,
"Path::Tiny" => 0,
"Test::More" => "0.98"
}
);
Expand Down
23 changes: 23 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
Revision history for Dist-Zilla-Plugin-Bootstrap-lib

0.04000000 2013-09-05T08:17:38Z
[!Major and API breaking Changes]
- no_fallback deprecated in favour of fallback = 0/1
- reimplemented in terms of a proper Moose class and ::Role::Bootstrap

[!Minor]
- add metapod and related info

[Dependencies::Added / runtime requires]
- Dist::Zilla::Role::Bootstrap
- Moose

[Dependencies::Added / test requires]
- Cwd
- Path::Tiny

[Dependencies::Removed / runtime requires]
- Cwd
- Moo::HandleMoose::FakeMetaClass
- Path::Tiny
- Role::Tiny
- lib

0.03000200 2013-09-03T03:36:10Z
[!Minor]
- Add tests
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ corpus/fake_dist_05/E-0.01/lib/E.pm
corpus/fake_dist_05/dist.ini
corpus/fake_dist_05/lib/E.pm
dist.ini
layout/self_structure.dot
layout/self_structure.png
lib/Dist/Zilla/Plugin/Bootstrap/lib.pm
perlcritic.rc
t/00-compile.t
Expand Down
34 changes: 17 additions & 17 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,31 +44,30 @@
},
"runtime" : {
"requires" : {
"Cwd" : "0",
"Moo::HandleMoose::FakeMetaClass" : "0",
"Path::Tiny" : "0",
"Role::Tiny" : "0",
"lib" : "0",
"Dist::Zilla::Role::Bootstrap" : "0",
"Moose" : "0",
"perl" : "5.006",
"strict" : "0",
"warnings" : "0"
}
},
"test" : {
"requires" : {
"Cwd" : "0",
"Dist::Zilla" : "0",
"File::Copy::Recursive" : "0",
"IO::Handle" : "0",
"IPC::Open3" : "0",
"Path::FindDev" : "0",
"Path::Tiny" : "0",
"Test::More" : "0.98"
}
}
},
"provides" : {
"Dist::Zilla::Plugin::Bootstrap::lib" : {
"file" : "lib/Dist/Zilla/Plugin/Bootstrap/lib.pm",
"version" : "0.03000200"
"version" : "0.04000000"
}
},
"release_status" : "stable",
Expand All @@ -83,32 +82,31 @@
"web" : "https://github.com/kentfredric/Dist-Zilla-Plugin-Bootstrap-lib"
}
},
"version" : "0.03000200",
"version" : "0.04000000",
"x_BuiltWith" : {
"modules" : {
"Cwd" : "3.40",
"Dist::Zilla" : "4.300037",
"Dist::Zilla::PluginBundle::Author::KENTNL" : "1.8.3",
"Dist::Zilla::PluginBundle::Author::KENTNL::Lite" : "NA(possibly not installed)",
"Dist::Zilla::Role::Bootstrap" : "0.1.0",
"File::Copy::Recursive" : "0.38",
"IO::Handle" : "1.34",
"IPC::Open3" : "1.13",
"Module::Build" : "0.4007",
"Moo::HandleMoose::FakeMetaClass" : "NA(undef)",
"Moose" : "2.1005",
"Path::FindDev" : "0.2.0",
"Path::Tiny" : "0.031",
"Pod::Coverage::TrustPod" : "0.100002",
"Role::Tiny" : "1.003001",
"Test::CPAN::Changes" : "0.23",
"Test::CPAN::Meta" : "0.23",
"Test::Kwalitee" : "1.13",
"Test::Kwalitee" : "1.14",
"Test::More" : "0.98",
"Test::Pod" : "1.48",
"Test::Pod::Coverage" : "1.08",
"lib" : "0.63",
"perl" : "NA(skipped: perl)",
"strict" : "1.07",
"version" : "0.9903",
"version" : "0.9904",
"warnings" : "1.18"
},
"perl" : {
Expand Down Expand Up @@ -136,12 +134,14 @@
{
"class" : "Dist::Zilla::Plugin::Bootstrap::lib",
"config" : {
"Dist::Zilla::Plugin::Bootstrap::lib" : {
"Dist::Zilla::Role::Bootstrap" : {
"distname" : "Dist-Zilla-Plugin-Bootstrap-lib",
"fallback" : "1",
"try_built" : null
}
},
"name" : "Bootstrap::lib",
"version" : "0.03000200"
"version" : "0.04000000"
},
{
"class" : "Dist::Zilla::Plugin::Git::NextVersion",
Expand All @@ -156,7 +156,7 @@
{
"class" : "Dist::Zilla::Plugin::GithubMeta",
"name" : "@Author::KENTNL/GithubMeta",
"version" : "0.32"
"version" : "0.34"
},
{
"class" : "Dist::Zilla::Plugin::MetaProvides::Package",
Expand Down Expand Up @@ -258,7 +258,7 @@
}
},
"name" : "@Author::KENTNL/Test::Compile",
"version" : "2.023"
"version" : "2.025"
},
{
"class" : "Dist::Zilla::Plugin::Test::Perl::Critic",
Expand Down Expand Up @@ -449,7 +449,7 @@
}
},
"name" : "@Author::KENTNL/Prereqs::MatchInstalled",
"version" : "0.1.1"
"version" : "0.1.2"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
Expand Down
34 changes: 17 additions & 17 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ abstract: 'A minimal boot-strapping for Dist::Zilla Plug-ins.'
author:
- 'Kent Fredric <kentnl@cpan.org>'
build_requires:
Cwd: 0
Dist::Zilla: 0
File::Copy::Recursive: 0
IO::Handle: 0
IPC::Open3: 0
Module::Build: 0.4007
Path::FindDev: 0
Path::Tiny: 0
Test::More: 0.98
configure_requires:
Module::Build: 0.4007
Expand All @@ -22,46 +24,42 @@ name: Dist-Zilla-Plugin-Bootstrap-lib
provides:
Dist::Zilla::Plugin::Bootstrap::lib:
file: lib/Dist/Zilla/Plugin/Bootstrap/lib.pm
version: 0.03000200
version: 0.04000000
requires:
Cwd: 0
Moo::HandleMoose::FakeMetaClass: 0
Path::Tiny: 0
Role::Tiny: 0
lib: 0
Dist::Zilla::Role::Bootstrap: 0
Moose: 0
perl: 5.006
strict: 0
warnings: 0
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.03000200
version: 0.04000000
x_BuiltWith:
modules:
Cwd: 3.40
Dist::Zilla: 4.300037
Dist::Zilla::PluginBundle::Author::KENTNL: 1.8.3
Dist::Zilla::PluginBundle::Author::KENTNL::Lite: 'NA(possibly not installed)'
Dist::Zilla::Role::Bootstrap: 0.1.0
File::Copy::Recursive: 0.38
IO::Handle: 1.34
IPC::Open3: 1.13
Module::Build: 0.4007
Moo::HandleMoose::FakeMetaClass: NA(undef)
Moose: 2.1005
Path::FindDev: 0.2.0
Path::Tiny: 0.031
Pod::Coverage::TrustPod: 0.100002
Role::Tiny: 1.003001
Test::CPAN::Changes: 0.23
Test::CPAN::Meta: 0.23
Test::Kwalitee: 1.13
Test::Kwalitee: 1.14
Test::More: 0.98
Test::Pod: 1.48
Test::Pod::Coverage: 1.08
lib: 0.63
perl: 'NA(skipped: perl)'
strict: 1.07
version: 0.9903
version: 0.9904
warnings: 1.18
perl:
original: v5.18.0
Expand All @@ -83,10 +81,12 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::Bootstrap::lib
config:
Dist::Zilla::Plugin::Bootstrap::lib:
Dist::Zilla::Role::Bootstrap:
distname: Dist-Zilla-Plugin-Bootstrap-lib
fallback: 1
try_built: ~
name: Bootstrap::lib
version: 0.03000200
version: 0.04000000
-
class: Dist::Zilla::Plugin::Git::NextVersion
name: '@Author::KENTNL/Git::NextVersion'
Expand All @@ -98,7 +98,7 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::GithubMeta
name: '@Author::KENTNL/GithubMeta'
version: 0.32
version: 0.34
-
class: Dist::Zilla::Plugin::MetaProvides::Package
name: '@Author::KENTNL/MetaProvides::Package'
Expand Down Expand Up @@ -177,7 +177,7 @@ x_Dist_Zilla:
script_finder:
- ':ExecFiles'
name: '@Author::KENTNL/Test::Compile'
version: 2.023
version: 2.025
-
class: Dist::Zilla::Plugin::Test::Perl::Critic
name: '@Author::KENTNL/Test::Perl::Critic'
Expand Down Expand Up @@ -329,7 +329,7 @@ x_Dist_Zilla:
- Test::More
- Dist::Zilla::PluginBundle::Author::KENTNL
name: '@Author::KENTNL/Prereqs::MatchInstalled'
version: 0.1.1
version: 0.1.2
-
class: Dist::Zilla::Plugin::Prereqs
config:
Expand Down
58 changes: 18 additions & 40 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,20 @@ NAME
Dist::Zilla Plug-ins.

VERSION
version 0.03000200
version 0.04000000

SYNOPSIS
[Bootstrap::lib]
try_built = 1 ; try using an existing built distribution named Dist-Name-*
no_fallback = 1 ; if try_built can't find a built distribution, or there's more than one, don't bootstrap
fallback = 0 ; if try_built can't find a built distribution, or there's more than one, don't bootstrap
; using lib/ instead

DESCRIPTION
This module does the very simple task of injecting the distributions
'lib' directory into @INC at the point of its inclusion, so that you can
use plug-ins you're writing for "Dist::Zilla", to release the plug-in
itself.
This module exists for loading either "/lib" or
"/Dist-Name-$VERSION/lib" into your @INC early on.

METHODS
"log_debug"
1;
"plugin_name"
'Bootstrap::lib'
"new"
my $conf = __PACKAGE__->new({ config => \%arbitrary_hash});

"does"
Lazily invokes Role::Tiny::does_role on demand.

"meta"
Lazily creates a meta object using Moo

"dump_config"
Dumps the configuration of this plugin to "dzil"

"register_component"
This is where all the real work happens.
This is mostly useful for writing "Dist::Zilla" plug-ins, so that you
may build and release a plug-in using itself.

USE CASES
Simple single-phase self-dependency
Expand All @@ -62,7 +43,7 @@ USE CASES

[Bootstap::lib]
try_built = 1
no_fallback = 1
fallback = 0

Will do what you want.

Expand Down Expand Up @@ -134,20 +115,17 @@ PRECAUTIONS
discover that, and hard-code those values in "dist.ini" to start with.

STILL NOT REALLY A PLUGIN
Though the interface is getting more plugin-like every day, all of the
behaviour is still implemented at construction time, practically as soon
as the underlying Config::MVP engine has parsed it from the
configuration.

As such, it is completely removed from the real plugin execution phases,
and unlike real plugins which appear on the plugin stash, this module
does not appear there.

GOOD LUCK
I wrote this plug-in, mostly because I was boiler-plating the code into
every dist I had that needed it, and it became annoying, especially
having to update the code across distributions to handle "Dist::Zilla"
"API" changes.
Starting at version 0.04000000 ( read: 0.04_0000_00 aka 0.04 + 0 x 4 + 0
x 2 ) this module is a fully fledged class, different only from standard
Dist::Zilla Plugins in that it doesn't partake in normal phase order,
and only executes during a special custom "::Bootstrap" phase, which is
more or less a different name and implementation of "BUILD", in that
"bootstrap" is invoked after "plugin_from_config" is called ( where
"new" is called ), which occurs somewhere in the middle of
"register_component"

This module also appears on the plugin stash, and responds naturally to
"metaconfig" requests.

AUTHOR
Kent Fredric <kentnl@cpan.org>
Expand Down
2 changes: 1 addition & 1 deletion corpus/fake_dist_04/dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ copyright_holder = Kent Fredric

[Bootstrap::lib]
try_built = 1
no_fallback = 1
fallback = 0

[MetaConfig]
[MetaJSON]
Expand Down
Loading

0 comments on commit eef80c2

Please sign in to comment.