Skip to content

Commit 0a3520a

Browse files
committed
Renaming stuffs
1 parent 3458644 commit 0a3520a

File tree

11 files changed

+46
-44
lines changed

11 files changed

+46
-44
lines changed

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
# META6
22

3-
[![Build Status](https://travis-ci.org/jonathanstowe/META6.svg?branch=master)](https://travis-ci.org/jonathanstowe/META6)
4-
53
Do things with Raku [META files](http://design.raku.org/S22.html#META6.json)
64

75
## Synopsis
86

9-
The below will generate the *META.info* for this module.
7+
The below will generate the *META6.json* for this module.
108

119
```
1210
use META6;
1311
1412
my $m = META6.new( name => 'META6',
15-
description => 'Work with Raku META files',
1613
version => Version.new('0.0.1'),
17-
perl-version => Version.new('6.*'),
18-
depends => <JSON::Class>,
19-
test-depends => <Test>,
14+
auth => 'github:jonathanstowe',
15+
api => '1.0',
16+
description => 'Work with Raku META files',
17+
raku-version => Version.new('6.*'),
18+
depends => ['JSON::Class:ver<0.0.15+>', 'JSON::Name' ],
19+
test-depends => <Test JSON::Fast>,
2020
tags => <devel meta utils>,
2121
authors => ['Jonathan Stowe <jns+git@gellyfish.co.uk>'],
22-
auth => 'github:jonathanstowe',
23-
source-url => 'git://github.com/jonathanstowe/META6.git',
22+
source-url => 'https://github.com/jonathanstowe/META6.git',
2423
support => META6::Support.new(
25-
source => 'git://github.com/jonathanstowe/META6.git'
24+
source => 'https://github.com/jonathanstowe/META6.git'
2625
),
2726
provides => {
2827
META6 => 'lib/META6.pm',
2928
},
3029
license => 'Artistic',
3130
production => False,
31+
meta-version => 1,
3232
3333
);
3434
@@ -62,8 +62,7 @@ is recommended if you intend to modify the same file multiple times.
6262

6363
## Installation
6464

65-
Assuming you have a working Rakudo Raku installation you should be able to
66-
install this with *zef* :
65+
Assuming you have a working Rakudo installation you should be able to install this with *zef* :
6766

6867
# From the source directory
6968

@@ -75,15 +74,16 @@ install this with *zef* :
7574

7675
## Support
7776

78-
Suggestions/patches are welcomed via github at https://github.com/jonathanstowe/META6
77+
Suggestions/patches are welcomed via [github](https://github.com/jonathanstowe/META6)
7978

8079
I'm particulary interested in knowing about "customary" (i.e. non-spec)
8180
fields that are being used in the wild and in what software so I can
8281
add them if necessary.
8382

8483
## Licence
8584

86-
Please see the [LICENCE](LICENCE) file in the distribution
85+
This free software.
8786

88-
© Jonathan Stowe 2015 - 2019
87+
Please see the [LICENCE](LICENCE) file in the distribution for the details.
8988

89+
© Jonathan Stowe 2015 - 2021

examples/my-meta

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use META6;
44

55
my $m = META6.new( name => 'META6',
6-
description => 'Work with Perl 6 META files',
6+
description => 'Work with Raku META files',
77
version => Version.new('0.0.1'),
88
raku-version => Version.new('6'),
99
depends => ['JSON::Class>'],

lib/META6.pm

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,25 @@ The below will generate the C<META.info> for this module.
1717
use META6;
1818
1919
my $m = META6.new( name => 'META6',
20-
description => 'Work with Raku META files',
2120
version => Version.new('0.0.1'),
22-
perl => Version.new('6'),
23-
depends => <JSON::Class>,
24-
test-depends => <Test>,
21+
auth => 'github:jonathanstowe',
22+
api => '1.0',
23+
description => 'Work with Raku META files',
24+
raku-version => Version.new('6.*'),
25+
depends => ['JSON::Class:ver<0.0.15+>', 'JSON::Name' ],
26+
test-depends => <Test JSON::Fast>,
2527
tags => <devel meta utils>,
2628
authors => ['Jonathan Stowe <jns+git@gellyfish.co.uk>'],
27-
auth => 'github:jonathanstowe',
28-
source-url => 'git://github.com/jonathanstowe/META6.git',
29+
source-url => 'https://github.com/jonathanstowe/META6.git',
2930
support => META6::Support.new(
30-
source => 'git://github.com/jonathanstowe/META6.git'
31+
source => 'https://github.com/jonathanstowe/META6.git'
3132
),
3233
provides => {
3334
META6 => 'lib/META6.pm',
3435
},
35-
license => 'Artistic-2.0',
36+
license => 'Artistic',
3637
production => False,
38+
meta-version => 1,
3739
3840
);
3941
@@ -48,7 +50,7 @@ spurt('./META6.json', $m.to-json);
4850
=head1 DESCRIPTION
4951
5052
This provides a representation of the Raku L<META
51-
files|http://design.perl6.org/S22.html#META6.json> specification -
53+
files|http://design.raku.org/S22.html#META6.json> specification -
5254
the META file data can be read, created , parsed and written in a manner
5355
that is conformant with the specification.
5456
@@ -137,7 +139,7 @@ role AutoAssoc {
137139
}
138140
}
139141

140-
class META6:ver<0.0.24>:auth<github:jonathanstowe> does JSON::Class does AutoAssoc {
142+
class META6:ver<0.0.25>:auth<github:jonathanstowe> does JSON::Class does AutoAssoc {
141143

142144
enum Optionality <Mandatory Optional>;
143145

@@ -232,7 +234,7 @@ class META6:ver<0.0.24>:auth<github:jonathanstowe> does JSON::Class does AutoAss
232234

233235

234236
has Version $.meta-version is rw is marshalled-by('Str') is unmarshalled-by(&unmarsh-version) is specification(Optional) = Version.new(0);
235-
has Version $.perl-version is rw is marshalled-by('Str') is unmarshalled-by(&unmarsh-version) is specification(Optional) is json-name('perl') is DEPRECATED('raku-version');
237+
has Version $.perl-version is rw is marshalled-by('Str') is unmarshalled-by(&unmarsh-version) is specification(Optional) is json-name('perl') is json-skip-null is DEPRECATED('raku-version');
236238
has Version $.raku-version is rw is marshalled-by('Str') is unmarshalled-by(&unmarsh-version) is specification(Optional) is json-name('raku');
237239
has Str $.name is rw is specification(Mandatory);
238240
has Version $.version is rw is marshalled-by('Str') is unmarshalled-by(&unmarsh-version) is specification(Mandatory);
@@ -269,4 +271,4 @@ class META6:ver<0.0.24>:auth<github:jonathanstowe> does JSON::Class does AutoAss
269271

270272
multi sub postcircumfix:<{ }>(META6 \SELF, Iterable \key, Mu \ASSIGN) is raw {}
271273

272-
# vim: expandtab shiftwidth=4 ft=perl6
274+
# vim: expandtab shiftwidth=4 ft=raku

t/010-use.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!perl6
1+
#!raku
22

33
use v6;
44

@@ -7,4 +7,4 @@ use Test;
77
use-ok('META6', 'Can load "META6" ok');
88

99
done-testing;
10-
# vim: expandtab shiftwidth=4 ft=perl6
10+
# vim: expandtab shiftwidth=4 ft=raku

t/015-constructor.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!perl6
1+
#!raku
22

33
use v6;
44

@@ -25,4 +25,4 @@ lives-ok { $meta = META6.new(json => $json) }, "round-trip";
2525

2626

2727
done-testing;
28-
# vim: expandtab shiftwidth=4 ft=perl6
28+
# vim: expandtab shiftwidth=4 ft=raku

t/020-basic.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!perl6
1+
#!raku
22

33
use v6;
44
use Test;
@@ -40,4 +40,4 @@ for $obj.^attributes -> $attr {
4040

4141

4242
done-testing;
43-
# vim: expandtab shiftwidth=4 ft=perl6
43+
# vim: expandtab shiftwidth=4 ft=raku

t/030-versions.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!perl6
1+
#!raku
22

33
use v6;
44
use Test;
@@ -35,4 +35,4 @@ is $warnings, 1, "got exactly 1 warning about v";
3535

3636

3737
done-testing;
38-
# vim: expandtab shiftwidth=4 ft=perl6
38+
# vim: expandtab shiftwidth=4 ft=raku

t/040-projects.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!perl6
1+
#!raku
22

33
use v6;
44

@@ -44,4 +44,4 @@ my $projects;
4444

4545

4646
done-testing;
47-
# vim: expandtab shiftwidth=4 ft=perl6
47+
# vim: expandtab shiftwidth=4 ft=raku

t/050-assoc.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!perl6
1+
#!raku
22

33
use v6;
44
use Test;
@@ -36,4 +36,4 @@ is $obj<support><source>, 'spicy', 'Support is writable';
3636
#is $obj<version perl>, '0.0.3 7', 'Hash set list of keys';
3737

3838
done-testing;
39-
# vim: expandtab shiftwidth=4 ft=perl6
39+
# vim: expandtab shiftwidth=4 ft=raku

t/060-stringify.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env perl6
1+
#! /usr/bin/env raku
22

33
use v6;
44

@@ -23,4 +23,4 @@ is META6.new(
2323
:api(~3)
2424
).Str, "Some::Other::Test:version<3.4.5>:api<3>", "Stringification with version and api";
2525

26-
# vim: expandtab shiftwidth=4 ft=perl6
26+
# vim: expandtab shiftwidth=4 ft=raku

0 commit comments

Comments
 (0)