Skip to content

Commit 28989a3

Browse files
committed
A few small changes:
* prefer META6.json to META.info * more explanation on 'provides' * make it clear that other repos than github may work
1 parent 7ad327f commit 28989a3

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

doc/Language/modules.pod

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,11 @@ directory|https://modules.perl6.org>. C<:)>
311311
For now, the process requires that you use git for your module's version
312312
control.
313313
314-
The instructions herein require that you have a
315-
L<GitHub|https://www.github.com> account so that your module can be shared
316-
from its GitHub repository.
314+
The instructions herein assume that you have a
315+
L<GitHub|https://www.github.com> account so that your module can be
316+
shared from its GitHub repository, however another provider such as
317+
L<GitLab|https://about.gitlab.com/> should work as long as it works in
318+
a similar way.
317319
318320
To share your module, do the following:
319321
@@ -333,7 +335,7 @@ To share your module, do the following:
333335
| `-- Vortex
334336
| `-- TotalPerspective.pod6
335337
|-- LICENSE
336-
|-- META.info
338+
|-- META6.json
337339
|-- README.md
338340
`-- t
339341
`-- basic.t
@@ -381,11 +383,11 @@ To share your module, do the following:
381383
»
382384
383385
=begin item
384-
Make your C<META.info> file look something like this:
386+
Make your C<META6.json> file look something like this:
385387
386388
=for code :allow<R>
387389
{
388-
"perl" : "6.*",
390+
"perl" : "6.c",
389391
"name" : "Vortex::TotalPerspective",
390392
"version" : "0.1.0",
391393
"description" : "Wonderful simulation to get some perspective.",
@@ -409,8 +411,11 @@ To share your module, do the following:
409411
supplied.
410412
411413
In the C<provides> section, include all the namespaces provided by
412-
your distribution and set C<perl> version to the minimum perl version
413-
your module works with
414+
your distribution and that you wish to be installed, only module
415+
files that are explicitly included here will be installed and
416+
available with C<use> or C<require> in other programs
417+
418+
Set C<perl> version to the minimum perl version your module works with.
414419
415420
The C<resources> section is optional, but, if present, should contain a
416421
list of the files in your C<resources> directory that you wish to be
@@ -419,7 +424,7 @@ To share your module, do the following:
419424
C<%?RESOURCES> Hash indexed on the name provided.
420425
421426
The L<Test::META module | https://github.com/jonathanstowe/Test-META/>
422-
can help you check the correctness of the META.info file.
427+
can help you check the correctness of the META6.json file.
423428
424429
=end item
425430

0 commit comments

Comments
 (0)