Home
last modified time | relevance | path

Searched +full:meta +full:- +full:spec (Results 1 – 25 of 247) sorted by relevance

12345678910

/openbsd-src/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/
H A Dmetafile_data.t9 eval { require CPAN::Meta; CPAN::Meta->VERSION(2.143240) }
10 or plan skip_all => 'CPAN::Meta 2.143240 required for this test';
11 eval { require CPAN::Meta::Converter; }
12 or plan skip_all => 'CPAN::Meta::Converter required for this test';
13 eval { require Parse::CPAN::Meta; }
14 or plan skip_all => 'Parse::CPAN::Meta required for this test';
27 my $have_gen = delete $have->{generated_by};
28 my $want_gen = delete $want->{generated_by};
29 my $have_url = delete $have->{'meta-spec'}->{url};
30 my $want_url = delete $want->{'meta-spec'}->{url};
[all …]
H A Dmetafile_file.t1 #!/usr/bin/perl -w
19 my @meta = ( a => 1, b => 2 );
21 --- #YAML:1.0
26 is($mm->metafile_file(@meta), $expected, "dump for flat hashes works ok");
30 my @meta = ( k1 => 'some key and value', k2 => undef, k3 => 1 );
32 --- #YAML:1.0
38 is($mm->metafile_file(@meta), $expected, "dumping strings and undefs is ok");
42 my @meta = ( a => 1, b => 2, h => { hh => 1 } );
44 --- #YAML:1.0
51 is($mm->metafile_file(@meta), $expected, "dump for nested hashes works ok");
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/CPAN-Meta/t/
H A Dconverter.t6 use CPAN::Meta;
7 use CPAN::Meta::Validator;
8 use CPAN::Meta::Converter;
9 use File::Spec;
12 use Parse::CPAN::Meta;
32 my $data_dir = IO::Dir->new( 't/data-test' );
33 my @files = sort grep { /^\w/ } $data_dir->read;
35 *_spec_version = \&CPAN::Meta::Converter::_extract_spec_version;
41 my $path = File::Spec->catfile('t','data-test',$f);
42 my $original = Parse::CPAN::Meta->load_file( $path );
[all …]
H A Dconverter-bad.t5 use CPAN::Meta;
6 use CPAN::Meta::Validator;
7 use CPAN::Meta::Converter;
8 use File::Spec;
10 use Parse::CPAN::Meta;
17 my @data_dirs = qw( t/data-valid t/data-fixable );
20 map { "$d/$_" } grep { substr($_,0,1) ne '.' } IO::Dir->new($d)->read
23 *_spec_version = \&CPAN::Meta::Converter::_extract_spec_version;
28 my $path = File::Spec->catfile($f);
29 my $original = Parse::CPAN::Meta->load_file( $path );
[all …]
H A Dconverter-fragments.t5 use CPAN::Meta::Converter;
14 url => 'http://search.cpan.org/perldoc?CPAN::Meta::Spec',
20 label => "v1.4 requires -> v2 prereqs",
25 'File::Spec' => "0.80",
29 'meta-spec' => $spec2,
33 'File::Spec' => "0.80",
40 label => "v1.4 x_custom -> v2 x_custom",
47 'meta-spec' => $spec2,
52 label => "meta-spec included",
55 'meta-spec' => { version => '1.0' },
[all …]
H A Drepository.t5 use CPAN::Meta;
15 my $meta = CPAN::Meta->new(
17 name => 'Module-Billed',
25 'meta-spec' => {
27 url => 'http://module-build.sourceforge.net/META-spec-v1.4.html',
37 $meta->resources,
49 my $meta = CPAN::Meta->new(
51 name => 'Module-Billed',
59 'meta-spec' => {
73 $meta->{resources},
[all …]
H A Dsave-load.t5 use CPAN::Meta;
7 use Parse::CPAN::Meta;
15 name => 'Module-Build',
23 'Module-Build List <module-build@perl.org>', # additional contact
40 'File::Spec' => '0',
70 keywords => [ qw/ toolchain cpan dual-life / ],
71 'meta-spec' => {
73 url => 'http://search.cpan.org/perldoc?CPAN::Meta::Spec',
78 my $meta = CPAN::Meta->new( $distmeta );
80 my $tmpdir = File::Temp->newdir();
[all …]
H A Dmeta-obj.t5 use CPAN::Meta;
15 name => 'Module-Build',
23 'Module-Build List <module-build@perl.org>', # additional contact
40 'File::Spec' => '0',
70 keywords => [ qw/ toolchain cpan dual-life / ],
71 'meta-spec' => {
73 url => 'http://search.cpan.org/perldoc?CPAN::Meta::Spec',
80 my $meta = CPAN::Meta->new(dclone $distmeta);
83 blessed($meta->as_struct),
85 "the result of ->as_struct is unblessed",
[all …]
H A Dvalidator.t5 use CPAN::Meta;
6 use CPAN::Meta::Validator;
7 use File::Spec;
9 use Parse::CPAN::Meta;
17 my @data_dirs = qw( t/data-test t/data-valid );
20 map { "$d/$_" } grep { substr($_,0,1) ne '.' } IO::Dir->new($d)->read
24 my $meta = Parse::CPAN::Meta->load_file( File::Spec->catfile($f) );
25 my $cmv = CPAN::Meta::Validator->new({%$meta});
26 ok( $cmv->is_valid, "$f validates" )
27 or diag( "ERRORS:\n" . join( "\n", $cmv->errors ) );
[all …]
H A Dmerge.t5 use CPAN::Meta;
6 use CPAN::Meta::Merge;
20 bugtracker => { web => 'https://rt.cpan.org/Dist/Display.html?Foo-Bar' },
35 'meta-spec' => {
36 url => "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
46 license => [ 'http://opensource.org/licenses/bsd-license.php' ],
76 license => [ 'http://dev.perl.org/licenses/', 'http://opensource.org/licenses/bsd-license.php' ],
77 bugtracker => { web => 'https://rt.cpan.org/Dist/Display.html?Foo-Bar' },
103 'meta-spec' => {
104 url => "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
[all …]
H A Dno-index.t5 use CPAN::Meta;
13 name => 'Module-Billed',
19 'meta-spec' => {
21 url => 'http://search.cpan.org/perldoc?CPAN::Meta::Spec',
28 my $meta = CPAN::Meta->new({ %distmeta });
31 $meta->should_index_package('Foo::Bar::Baz'),
36 $meta->should_index_file('lib/Foo/Bar/Baz.pm'),
42 my $meta = CPAN::Meta->new({
51 ! $meta->should_index_package('Foo::Bar'),
56 $meta->should_index_package('Foo::Bar::Baz'),
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/CPAN-Meta/lib/CPAN/Meta/
H A DConverter.pm4 package CPAN::Meta::Converter;
10 #pod my $struct = decode_json_file('META.json');
12 #pod my $cmc = CPAN::Meta::Converter->new( $struct );
14 #pod my $new_struct = $cmc->convert( version => "2" );
18 #pod This module converts CPAN Meta structures from one form to another. The
26 use CPAN::Meta::Validator;
27 use CPAN::Meta::Requirements;
28 use Parse::CPAN::Meta 1.4400 ();
30 # To help ExtUtils::MakeMaker bootstrap CPAN::Meta::Requirements on perls
33 # install of CPAN::Meta::Requirements, as version.pm will be picked up from
[all …]
H A DFeature.pm4 package CPAN::Meta::Feature;
8 use CPAN::Meta::Prereqs;
12 #pod A CPAN::Meta::Feature object describes an optional feature offered by a CPAN
13 #pod distribution and specified in the distribution's F<META.json> (or F<META.yml>)
17 #pod the C<feature> or C<features> methods on a L<CPAN::Meta> object.
21 #pod my $feature = CPAN::Meta::Feature->new( $identifier => \%spec );
23 #pod This returns a new Feature object. The C<%spec> argument to the constructor
30 my ($class, $identifier, $spec) = @_;
34 description => $spec->{description},
35 prereqs => CPAN::Meta::Prereqs->new($spec->{prereqs}),
[all …]
H A DHistory.pm5 package CPAN::Meta::History;
11 # ABSTRACT: history of CPAN Meta Spec changes
17 =encoding UTF-8
21 CPAN::Meta::History - history of CPAN Meta Spec changes
29 The CPAN Meta Spec has gone through several iterations. It was
32 sometimes by design and sometimes to reflect real-world usage after the
35 This document reconstructs the history of the CPAN Meta Spec based on
44 CPAN-Meta distribution and will be published on CPAN as
45 L<CPAN::Meta::Spec>.
48 decimal portions will correspond to a release date for the CPAN::Meta
[all …]
H A DValidator.pm4 package CPAN::Meta::Validator;
10 #pod my $struct = decode_json_file('META.json');
12 #pod my $cmv = CPAN::Meta::Validator->new( $struct );
14 #pod unless ( $cmv->is_valid ) {
15 #pod my $msg = "Invalid META structure. Errors found:\n";
16 #pod $msg .= join( "\n", $cmv->errors );
22 #pod This module validates a CPAN Meta structure against the version of the
23 #pod the specification claimed in the C<meta-spec> field of the structure.
27 #--------------------------------------------------------------------------#
28 # This code copied and adapted from Test::CPAN::Meta
[all …]
H A DSpec.pm9 package CPAN::Meta::Spec;
24 =encoding UTF-8
28 CPAN::Meta::Spec - specification for CPAN distribution metadata
37 name => 'Module-Build',
46 'Module-Build List <module-build@perl.org>', # additional contact
83 keywords => [ qw/ toolchain cpan dual-life / ],
84 'meta-spec' => {
86 url => 'https://metacpan.org/pod/CPAN::Meta::Spec',
94 specification, also known as the "CPAN Meta Spec".
97 clarifications may be issued as CPAN::Meta::Spec 2.I<x>. These
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/CPAN-Meta/lib/CPAN/Meta/History/
H A DMeta_1_2.pod5 CPAN::Meta::History::Meta_1_2 - Version 1.2 metadata specification for META.yml
9 This is a historical copy of the version 1.2 specification for F<META.yml>
35 --- #YAML:1.0
36 name: Module-Build
40 - Ken Williams <kwilliams@cpan.org>
53 File::Spec: 0
66 meta-spec:
68 url: http://module-build.sourceforge.net/META-spec-v1.2.html
73 This document describes version 1.2 of the F<META.yml> specification.
75 The F<META.yml> file describes important properties of contributed
[all …]
H A DMeta_1_4.pod5 CPAN::Meta::History::Meta_1_4 - Version 1.4 metadata specification for META.yml
9 This is a historical copy of the version 1.4 specification for F<META.yml>
35 --- #YAML:1.0
36 name: Module-Build
40 - Ken Williams <kwilliams@cpan.org>
53 File::Spec: 0
66 meta-spec:
68 url: http://module-build.sourceforge.net/META-spec-v1.3.html
73 This document describes version 1.4 of the F<META.yml> specification.
75 The F<META.yml> file describes important properties of contributed
[all …]
H A DMeta_1_3.pod5 CPAN::Meta::History::Meta_1_3 - Version 1.3 metadata specification for META.yml
9 This is a historical copy of the version 1.3 specification for F<META.yml>
35 --- #YAML:1.0
36 name: Module-Build
40 - Ken Williams <kwilliams@cpan.org>
53 File::Spec: 0
66 meta-spec:
68 url: http://module-build.sourceforge.net/META-spec-v1.3.html
73 This document describes version 1.3 of the F<META.yml> specification.
75 The F<META.yml> file describes important properties of contributed
[all …]
H A DMeta_1_0.pod5 CPAN::Meta::History::Meta_1_0 - Version 1.0 metadata specification for META.yml
9 This is a historical copy of the version 1.0 specification for F<META.yml>
35 This document describes version 1.0 of the F<META.yml> specification.
37 The META.yml file describes important properties of contributed Perl
41 The fields in the F<META.yml> file are meant to be helpful to people
49 F<META.yml> files are written in the L<YAML|http://www.yaml.org/> format. The
54 The first line of a F<META.yml> file should be a valid
55 L<YAML document header|http://yaml.org/spec/history/2002-10-31.html#syntax-document>
56 like C<"--- #YAML:1.0">
60 The rest of the META.yml file is one big YAML
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/CPAN-Meta-YAML/t/tml-world/
H A DGames-Nintendo-Wii-Mii.tml1 === Games-Nintendo-Wii-Mii
2 # Testing various failing META.yml files from CPAN
3 --- yaml
4 ---
10 meta-spec:
11 url: http://module-build.sourceforge.net/META-spec-v1.3.html
13 name: Games-Nintendo-Wii-Mii
16 - inc
17 - t
29 --- perl
[all …]
H A DTemplate-Provider-Unicode-Japanese.tml1 === Template-Provider-Unicode-Japanese
2 --- yaml
3 ---
9 meta-spec:
10 url: http://module-build.sourceforge.net/META-spec-v1.3.html
12 name: Template-Provider-Unicode-Japanese
15 - inc
16 - t
24 --- perl
31 'meta-spec' => {
[all …]
H A DSpreadsheet-Read.tml1 === Spreadsheet-Read
2 --- yaml
3 \--- #YAML:1.1
6 abstract: Meta-Wrapper for reading spreadsheet data
9 - H.Merijn Brand <h.m.brand@xs4all.nl>
30 - opt_csv:
38 - opt_excel:
45 - opt_excelx:
49 - opt_oo:
53 - opt_tools:
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/Test-Harness/t/
H A Dsource.t1 #!/usr/bin/perl -w
11 use File::Spec;
20 delete $hash->{is_symlink};
21 delete $hash->{lstat};
28 my $source = TAP::Parser::Source->new;
32 qw( raw meta config merge switches test_args assemble_meta )
35 is_deeply( $source->config, {}, 'config empty by default' );
36 $source->config->{Foo} = { bar => 'baz' };
38 $source->config_fo
[all...]
/openbsd-src/gnu/usr.bin/perl/cpan/CPAN-Meta/lib/CPAN/
H A DMeta.pm4 package CPAN::Meta;
13 #pod use CPAN::Meta;
16 #pod my $meta = CPAN::Meta->load_file('META.json');
19 #pod $meta->name,
20 #pod $meta->version;
22 #pod my $prereqs = $meta->effective_prereqs;
26 #pod my $reqs = $prereqs->requirements_for($phase, "requires");
27 #pod for my $module ( sort $reqs->required_modules ) {
30 #pod my $version = $module eq 'perl' ? $] : $module->VERSION;
31 #pod $status = $reqs->accepts_module($module, $version)
[all …]

12345678910