Skip to content

Commit

Permalink
Build results of 6255955 (on master)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Jun 2, 2013
1 parent 207bc54 commit ac0f5bb
Show file tree
Hide file tree
Showing 17 changed files with 89 additions and 50 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 <kentfredric\@gmail.com>"
],
"dist_name" => "MetaPOD",
"dist_version" => "0.1.2",
"dist_version" => "0.1.3",
"license" => "perl",
"module_name" => "MetaPOD",
"recommends" => {},
Expand Down
5 changes: 5 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Release history for MetaPOD

0.1.3 2013-06-02T08:27:59Z
[Documentation]
- Add "What can we do for you" section.
- Add an image of example usage.

0.1.2 2013-06-02T07:12:28Z
[Bug Fix]
- Update Moo dep to solve bug caused by builder + 1.000007 Moo
Expand Down
18 changes: 9 additions & 9 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,35 +72,35 @@
"provides" : {
"MetaPOD" : {
"file" : "lib/MetaPOD.pm",
"version" : "v0.1.2"
"version" : "v0.1.3"
},
"MetaPOD::Assembler" : {
"file" : "lib/MetaPOD/Assembler.pm",
"version" : "v0.1.2"
"version" : "v0.1.3"
},
"MetaPOD::Extractor" : {
"file" : "lib/MetaPOD/Extractor.pm",
"version" : "v0.1.2"
"version" : "v0.1.3"
},
"MetaPOD::Format::JSON" : {
"file" : "lib/MetaPOD/Format/JSON.pm",
"version" : "v0.1.2"
"version" : "v0.1.3"
},
"MetaPOD::JSON" : {
"file" : "lib/MetaPOD/JSON.pm",
"version" : "v0.1.2"
"version" : "v0.1.3"
},
"MetaPOD::Result" : {
"file" : "lib/MetaPOD/Result.pm",
"version" : "v0.1.2"
"version" : "v0.1.3"
},
"MetaPOD::Role::Format" : {
"file" : "lib/MetaPOD/Role/Format.pm",
"version" : "v0.1.2"
"version" : "v0.1.3"
},
"MetaPOD::Spec" : {
"file" : "lib/MetaPOD/Spec.pm",
"version" : "v0.1.2"
"version" : "v0.1.3"
}
},
"release_status" : "stable",
Expand All @@ -115,7 +115,7 @@
"web" : "https://github.com/kentfredric/MetaPOD"
}
},
"version" : "0.1.2",
"version" : "0.1.3",
"x_BuiltWith" : {
"modules" : {
"Carp" : "1.29",
Expand Down
18 changes: 9 additions & 9 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,28 @@ name: MetaPOD
provides:
MetaPOD:
file: lib/MetaPOD.pm
version: v0.1.2
version: v0.1.3
MetaPOD::Assembler:
file: lib/MetaPOD/Assembler.pm
version: v0.1.2
version: v0.1.3
MetaPOD::Extractor:
file: lib/MetaPOD/Extractor.pm
version: v0.1.2
version: v0.1.3
MetaPOD::Format::JSON:
file: lib/MetaPOD/Format/JSON.pm
version: v0.1.2
version: v0.1.3
MetaPOD::JSON:
file: lib/MetaPOD/JSON.pm
version: v0.1.2
version: v0.1.3
MetaPOD::Result:
file: lib/MetaPOD/Result.pm
version: v0.1.2
version: v0.1.3
MetaPOD::Role::Format:
file: lib/MetaPOD/Role/Format.pm
version: v0.1.2
version: v0.1.3
MetaPOD::Spec:
file: lib/MetaPOD/Spec.pm
version: v0.1.2
version: v0.1.3
requires:
Carp: 0
Data::Dump: 0
Expand All @@ -62,7 +62,7 @@ resources:
bugtracker: https://github.com/kentfredric/MetaPOD/issues
homepage: https://github.com/kentfredric/MetaPOD
repository: https://github.com/kentfredric/MetaPOD.git
version: 0.1.2
version: 0.1.3
x_BuiltWith:
modules:
Carp: 1.29
Expand Down
14 changes: 13 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ NAME
MetaPOD - An evolution of POD

VERSION
version 0.1.2
version 0.1.3

What is MetaPOD
1. Documentation About Documentation
Expand All @@ -25,6 +25,18 @@ What is MetaPOD
* Show pretty graphs and things showing how classes are related to
each other

What can MetaPOD do for me
At present, there is not much built on top of the MetaPOD "API", so it
is marginally limited.

And at present, there is not much on "CPAN" with MetaPOD annotations, so
any such functionality is presently limited by that.

However, for a taste of what we might see with widespread use of
MetaPOD, here is what we can easily determine from the present "API",
with the existing annotations in within MetaPOD itself:
http://kentfredric.github.io/MetaPOD/media/self_structure.png

People who are writing MetaPOD
Eventually, the goal is to have the MetaPOD itself able to be generated
via tools during development, so that the meta-layer information is
Expand Down
12 changes: 7 additions & 5 deletions examples/self_structure.dot
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
digraph test {
rankdir=LR;
ratio="fill";
node [shape="box"];
MetaPOD [label="MetaPOD"];
node1 [label="MetaPOD::Assembler"];
node2 [label="Moo::Object"];
Expand All @@ -10,9 +12,9 @@ digraph test {
node7 [label="MetaPOD::Spec"];
node8 [label="MetaPOD::Format::JSON"];
node9 [label="MetaPOD::Role::Format"];
node1 -> node2 [label="inherits"];
node3 -> node4 [label="inherits"];
node8 -> node9 [label="does"];
node8 -> node2 [label="inherits"];
node6 -> node2 [label="inherits"];
node1 -> node2 [color="red", dir="forward", label="inherits"];
node3 -> node4 [color="red", dir="forward", label="inherits"];
node8 -> node9 [color="blue", dir="forward", label="does"];
node8 -> node2 [color="red", dir="forward", label="inherits"];
node6 -> node2 [color="red", dir="forward", label="inherits"];
}
12 changes: 8 additions & 4 deletions examples/self_structure.pl
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@
my $it = $rule->iter("$root");

my $assembler = MetaPOD::Assembler->new();
my $g = GraphViz->new();
my $g = GraphViz->new(
rankdir => 'LR',

# ratio => 'compress',
node => { 'shape' => 'box' },
);

while ( my $file = $it->() ) {
my $result = $assembler->assemble_file($file);
$g->add_node( $result->namespace );
$g->add_edge( $result->namespace, $_, label => 'inherits' ) for $result->inherits;
$g->add_edge( $result->namespace, $_, label => 'does' ) for $result->does;

$g->add_edge( $result->namespace, $_, label => 'inherits', color => 'red', dir => 'forward' ) for $result->inherits;
$g->add_edge( $result->namespace, $_, label => 'does', color => 'blue', dir => 'forward' ) for $result->does;
}

print $g->as_debug;
Expand Down
Binary file modified examples/self_structure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 14 additions & 2 deletions lib/MetaPOD.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ BEGIN {
$MetaPOD::AUTHORITY = 'cpan:KENTNL';
}
{
$MetaPOD::VERSION = '0.1.2';
$MetaPOD::VERSION = '0.1.3';
}

# ABSTRACT: An evolution of POD
Expand All @@ -27,7 +27,7 @@ MetaPOD - An evolution of POD
=head1 VERSION
version 0.1.2
version 0.1.3
=begin MetaPOD::JSON v1.0.0
Expand All @@ -54,6 +54,18 @@ MetaPOD also is a system by which one can express relationships about code, code
=back
=head1 What can MetaPOD do for me
At present, there is not much built on top of the MetaPOD C<API>, so it is marginally limited.
And at present, there is not much on C<CPAN> with MetaPOD annotations, so any such functionality is presently limited by that.
However, for a taste of what we might see with widespread use of MetaPOD, here is what we can easily determine from the present C<API>, with the existing annotations in within MetaPOD itself: http://kentfredric.github.io/MetaPOD/media/self_structure.png
=for html <center><img src="http://kentfredric.github.io/MetaPOD/media/self_structure.png" width="549px" height="507px" /></center>
=for markdown ![Graphviz Graph of MetaPOD](http://kentfredric.github.io/MetaPOD/media/self_structure.png)
=head1 People who are writing MetaPOD
Eventually, the goal is to have the MetaPOD itself able to be generated via tools during development, so that the meta-layer information is cemented into the POD itself, before, or during release.
Expand Down
4 changes: 2 additions & 2 deletions lib/MetaPOD/Assembler.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ BEGIN {
$MetaPOD::Assembler::AUTHORITY = 'cpan:KENTNL';
}
{
$MetaPOD::Assembler::VERSION = '0.1.2';
$MetaPOD::Assembler::VERSION = '0.1.3';
}

# ABSTRACT: Glue layer that dispatches segments to a constructed Result
Expand Down Expand Up @@ -119,7 +119,7 @@ MetaPOD::Assembler - Glue layer that dispatches segments to a constructed Result
=head1 VERSION
version 0.1.2
version 0.1.3
=head1 SYNOPSIS
Expand Down
4 changes: 2 additions & 2 deletions lib/MetaPOD/Extractor.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ BEGIN {
$MetaPOD::Extractor::AUTHORITY = 'cpan:KENTNL';
}
{
$MetaPOD::Extractor::VERSION = '0.1.2';
$MetaPOD::Extractor::VERSION = '0.1.3';
}

# ABSTRACT: Extract MetaPOD declarations from a file.
Expand Down Expand Up @@ -252,7 +252,7 @@ MetaPOD::Extractor - Extract MetaPOD declarations from a file.
=head1 VERSION
version 0.1.2
version 0.1.3
=head1 METHODS
Expand Down
4 changes: 2 additions & 2 deletions lib/MetaPOD/Format/JSON.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ BEGIN {
$MetaPOD::Format::JSON::AUTHORITY = 'cpan:KENTNL';
}
{
$MetaPOD::Format::JSON::VERSION = '0.1.2';
$MetaPOD::Format::JSON::VERSION = '0.1.3';
}

# ABSTRACT: Reference implementation of a C<JSON> based MetaPOD Format
Expand Down Expand Up @@ -117,7 +117,7 @@ MetaPOD::Format::JSON - Reference implementation of a C<JSON> based MetaPOD Form
=head1 VERSION
version 0.1.2
version 0.1.3
=head1 SYNOPSIS
Expand Down
4 changes: 2 additions & 2 deletions lib/MetaPOD/JSON.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ BEGIN {
$MetaPOD::JSON::AUTHORITY = 'cpan:KENTNL';
}
{
$MetaPOD::JSON::VERSION = '0.1.2';
$MetaPOD::JSON::VERSION = '0.1.3';
}


Expand All @@ -28,7 +28,7 @@ MetaPOD::JSON - The C<JSON> Formatted MetaPOD Spec
=head1 VERSION
version 0.1.2
version 0.1.3
=head1 SYNOPSIS
Expand Down
4 changes: 2 additions & 2 deletions lib/MetaPOD/Result.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ BEGIN {
$MetaPOD::Result::AUTHORITY = 'cpan:KENTNL';
}
{
$MetaPOD::Result::VERSION = '0.1.2';
$MetaPOD::Result::VERSION = '0.1.3';
}

# ABSTRACT: Compiled aggregate result object for MetaPOD
Expand Down Expand Up @@ -97,7 +97,7 @@ MetaPOD::Result - Compiled aggregate result object for MetaPOD
=head1 VERSION
version 0.1.2
version 0.1.3
=head1 METHODS
Expand Down
4 changes: 2 additions & 2 deletions lib/MetaPOD/Role/Format.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ BEGIN {
$MetaPOD::Role::Format::AUTHORITY = 'cpan:KENTNL';
}
{
$MetaPOD::Role::Format::VERSION = '0.1.2';
$MetaPOD::Role::Format::VERSION = '0.1.3';
}

# ABSTRACT: Base role for common format routines
Expand Down Expand Up @@ -55,7 +55,7 @@ MetaPOD::Role::Format - Base role for common format routines
=head1 VERSION
version 0.1.2
version 0.1.3
=head1 METHODS
Expand Down
4 changes: 2 additions & 2 deletions lib/MetaPOD/Spec.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ BEGIN {
$MetaPOD::Spec::AUTHORITY = 'cpan:KENTNL';
}
{
$MetaPOD::Spec::VERSION = '0.1.2';
$MetaPOD::Spec::VERSION = '0.1.3';
}

# ABSTRACT: The Specification of the MetaPOD format
Expand All @@ -26,7 +26,7 @@ MetaPOD::Spec - The Specification of the MetaPOD format
=head1 VERSION
version 0.1.2
version 0.1.3
=begin MetaPOD::JSON v1.0.0
Expand Down
14 changes: 9 additions & 5 deletions t/self-extract.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ while ( my $file = $it->() ) {
my $result;

subtest "$rpath" => sub {
is(exception {
$result = $assembler->assemble_file($file);
}, undef, 'Can assemble ' . path($file)->relative($root));
isa_ok( $result, 'MetaPOD::Result');
is( $result->namespace , $rpath , "MetaPOD.namespace == $rpath" );
is(
exception {
$result = $assembler->assemble_file($file);
},
undef,
'Can assemble ' . path($file)->relative($root)
);
isa_ok( $result, 'MetaPOD::Result' );
is( $result->namespace, $rpath, "MetaPOD.namespace == $rpath" );
};
}

Expand Down

0 comments on commit ac0f5bb

Please sign in to comment.