line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
102150
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
37
|
|
2
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
59
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Gentoo::MetaEbuild::Spec::MiniSpec; |
5
|
|
|
|
|
|
|
BEGIN { |
6
|
1
|
|
|
1
|
|
31
|
$Gentoo::MetaEbuild::Spec::MiniSpec::AUTHORITY = 'cpan:KENTNL'; |
7
|
|
|
|
|
|
|
} |
8
|
|
|
|
|
|
|
{ |
9
|
|
|
|
|
|
|
$Gentoo::MetaEbuild::Spec::MiniSpec::VERSION = '0.1.1'; |
10
|
|
|
|
|
|
|
} |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# ABSTRACT: Minimal Conforming spec for MetaEbuilds. |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
1052
|
use Moose; |
|
1
|
|
|
|
|
567588
|
|
|
1
|
|
|
|
|
10
|
|
16
|
|
|
|
|
|
|
extends 'Gentoo::MetaEbuild::Spec::Base'; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
20
|
1
|
|
|
1
|
|
8383
|
no Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
6
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=pod |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 NAME |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Gentoo::MetaEbuild::Spec::MiniSpec - Minimal Conforming spec for MetaEbuilds. |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 VERSION |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
version 0.1.1 |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 SYNOPSIS |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
use Gentoo::MetaEbuild::Spec::MiniSpec; |
39
|
|
|
|
|
|
|
if( Gentoo::MetaEbuild::Spec::MiniSpec->check( json_decode( scalar slurp( $file ) ) ) ){ |
40
|
|
|
|
|
|
|
print "$file is metaspec compliant\n"; |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 DESCRIPTION |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Most the work for this module is performed by the parent class L<< C<::Spec::Base>|Gentoo::MetaEbuild::Spec::Base >>. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Everything outside that is governed by the .json files shipped in this distributions "Share" directory. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 SCHEMA |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
$root = { |
52
|
|
|
|
|
|
|
SCHEME => $scheme_spec # required |
53
|
|
|
|
|
|
|
... # anything. |
54
|
|
|
|
|
|
|
} |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
$scheme_spec = { |
57
|
|
|
|
|
|
|
min_version => "Minimum Version String", # required |
58
|
|
|
|
|
|
|
standard => "Schema Standard", # required |
59
|
|
|
|
|
|
|
generator => $generator_spec # optional |
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
$generator_spec = { |
63
|
|
|
|
|
|
|
type => "Type String", # required |
64
|
|
|
|
|
|
|
author => $generator_auth_spec # optional |
65
|
|
|
|
|
|
|
module => $generator_modu_spec # optional |
66
|
|
|
|
|
|
|
} |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
$generator_auth_spec = { |
69
|
|
|
|
|
|
|
name => "Authors name" # required |
70
|
|
|
|
|
|
|
email => "Authors contact Email" # required |
71
|
|
|
|
|
|
|
} |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
$generator_modu_spec = { |
74
|
|
|
|
|
|
|
name => "Module::Name", # required |
75
|
|
|
|
|
|
|
version => "Module Version String", # required |
76
|
|
|
|
|
|
|
} |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 AUTHOR |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Kent Fredric <kentnl@cpan.org> |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
This software is copyright (c) 2013 by Kent Fredric <kentnl@cpan.org>. |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
87
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=cut |