1Dist::Zilla::Prereqs(3)User Contributed Perl DocumentatioDnist::Zilla::Prereqs(3)
2
3
4
6 Dist::Zilla::Prereqs - the prerequisites of a Dist::Zilla distribution
7
9 version 4.300002
10
12 Dist::Zilla::Prereqs is a subcomponent of Dist::Zilla. The "prereqs"
13 attribute on your Dist::Zilla object is a Dist::Zilla::Prereqs object,
14 and is responsible for keeping track of the distribution's
15 prerequisites.
16
17 In fact, a Dist::Zilla::Prereqs object is just a thin layer over a
18 CPAN::Meta::Prereqs object, stored in the "cpan_meta_prereqs"
19 attribute.
20
21 Almost everything this object does is proxied to the
22 CPAN::Meta::Prereqs object, so you should really read how that works.
23
24 Dist::Zilla::Prereqs proxies the following methods to the
25 CPAN::Meta::Prereqs object:
26
27 · finalize
28
29 · is_finalized
30
31 · requirements_for
32
33 · as_string_hash
34
36 register_prereqs
37 $prereqs->register_prereqs(%prereqs);
38
39 $prereqs->register_prereqs(\%arg, %prereqs);
40
41 This method adds new minimums to the prereqs object. If a hashref is
42 the first arg, it may have entries for "phase" and "type" to indicate
43 what kind of prereqs are being registered. (For more information on
44 phase and type, see CPAN::Meta::Spec.) For example, you might say:
45
46 $prereqs->register_prereqs(
47 { phase => 'test', type => 'recommends' },
48 'Test::Foo' => '1.23',
49 'XML::YZZY' => '2.01',
50 );
51
52 If not given, phase and type default to runtime and requires,
53 respectively.
54
56 Ricardo SIGNES <rjbs@cpan.org>
57
59 This software is copyright (c) 2011 by Ricardo SIGNES.
60
61 This is free software; you can redistribute it and/or modify it under
62 the same terms as the Perl 5 programming language system itself.
63
64
65
66perl v5.12.4 2011-09-22 Dist::Zilla::Prereqs(3)