Skip to content

Commit 3d9a7c8

Browse files
committed
Add test to disallow "version xxxx.xx".
version is for Raku language versions. release is Rakudo releases. pass the test. Closes #3843
1 parent cbf30b9 commit 3d9a7c8

31 files changed

+94
-62
lines changed

doc/Language/5to6-perlvar.rakudoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,17 +198,17 @@ all the above components:
198198
=begin code
199199
for $*KERNEL, $*DISTRO, $*VM -> $what {
200200
say $what.^name;
201-
say 'version ' ~ $what.version
201+
say 'release ' ~ $what.version
202202
~ ' named ' ~ $what.name
203203
~ ' by ' ~ $what.auth;
204204
}
205205

206206
# Kernel
207-
# version 4.10.0.42.generic named linux by unknown
207+
# release 4.10.0.42.generic named linux by unknown
208208
# Distro
209-
# version 17.04.Zesty.Zapus named ubuntu by https://www.ubuntu.com/
209+
# release 17.04.Zesty.Zapus named ubuntu by https://www.ubuntu.com/
210210
# VM
211-
# version 2017.11 named moar by The MoarVM Team
211+
# release 2017.11 named moar by The MoarVM Team
212212
=end code
213213

214214
The L<C<Str>|/routine/Str> method on all of the above produces the I<short> version of the information,

doc/Language/classtut.rakudoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ has $.done is built(False);
187187

188188
Above declaration makes sure one can't construct finished tasks, but still allow users to look if a task is done.
189189

190-
The C<is built> trait was introduced in Rakudo version 2020.01.
190+
The C<is built> trait was introduced in Rakudo release 2020.01.
191191

192192
=head2 C<is required> trait
193193

doc/Language/hashmap.rakudoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ values from the hash, so that we can pass these values into the loop.
458458

459459
Note that the order of the keys and values printed cannot be relied upon; the
460460
elements of a hash are not always stored the same way in memory for different
461-
runs of the same program. In fact, since version 2018.05, the order is
461+
runs of the same program. In fact, since release 2018.05, the order is
462462
guaranteed to be different in every invocation. Sometimes one wishes to process
463463
the elements sorted on, e.g., the keys of the hash. If one wishes to print the
464464
list of vowels in alphabetical order then one would write

doc/Language/list.rakudoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ Arrays (making then mutable in the process).
685685
# OUTPUT: «Array.new(:shape(2, 2), [1, 2], [3, 42])␤»
686686

687687
As the third statement shows, you can assign directly to an element in a shaped
688-
array too. B<Note>: the second statement works only from version 2018.09.
688+
array too. B<Note>: the second statement works only from release 2018.09.
689689

690690
Since version 6.d,
691691
L<C<enum>s|/language/typesystem#enum> can be

doc/Language/operators.rakudoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2107,7 +2107,7 @@ X<Numeric equality operator|Infix operators,Numeric equality operator>.
21072107
Coerces both arguments to L<C<Numeric>|/type/Numeric> (if necessary); returns C<True>
21082108
if they are equal.
21092109

2110-
Since Rakudo version 2021.07, ⩵ is an alias for this operator.
2110+
Since Rakudo release 2021.07, ⩵ is an alias for this operator.
21112111

21122112
=head2 infix C«!=», infix C«≠»
21132113

@@ -2350,7 +2350,7 @@ say infix:<eqv>(False); # OUTPUT: «True␤»
23502350

23512351
The ASCII equivalent of L<C<⩶>|#infix_⩶>, the value identity operator.
23522352

2353-
Before Rakudo version 2021.07, the ASCII variant was the I<only> variant.
2353+
Before Rakudo release 2021.07, the ASCII variant was the I<only> variant.
23542354

23552355
=head2 infix C«⩶»
23562356

doc/Language/pod.rakudoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ sub search-in-seq( Int $end, Int $number ) {
205205

206206
By using a matched pair of parenthesis constructs such as C<()> or C<«»> the
207207
comments can extend multiple lines. This format will not normally translate to
208-
a multi-line display by C<raku --doc>. However, since Rakudo version 2020.01,
208+
a multi-line display by C<raku --doc>. However, since Rakudo release 2020.01,
209209
there is a method to accomplish that, I<for leading declarator blocks only>,
210210
by defining a special environment variable: B<C<RAKUDO_POD_DECL_BLOCK_USER_FORMAT>>.
211211
When that value is set, running C<raku> with the C<--doc> option should show text

doc/Language/terms.rakudoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ our constant @foo = 1, 2, 3;
272272
constant %bar = %(:42foo, :100bar);
273273
=end code
274274

275-
I<NOTE: if you're using the Rakudo compiler, you need version 2018.08 or
275+
I<NOTE: if you're using the Rakudo compiler, you need release 2018.08 or
276276
newer for type constraints and auto-coercion on constants to be
277277
available. Auto-coercion on %-sigiled constants requires 6.d>.
278278

doc/Language/testing.rakudoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ the L<C<Test>|/type/Test> module:
107107
use Test;
108108
...
109109

110-
B<Note:> Before Rakudo version 2020.05 the environment variable
110+
B<Note:> Before Rakudo release 2020.05 the environment variable
111111
C<PERL6_TEST_DIE_ON_FAIL> was used to enable this feature, it is still
112112
supported but deprecated.
113113

@@ -129,7 +129,7 @@ BEGIN %*ENV<RAKU_TEST_TIMES> = 1;
129129
use Test;
130130
...
131131

132-
B<Note:> Before Rakudo version 2020.05 the environment variable
132+
B<Note:> Before Rakudo release 2020.05 the environment variable
133133
C<PERL6_TEST_TIMES> was used to enable this feature, it is still
134134
supported but deprecated.
135135

doc/Language/variables.rakudoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,8 +1699,8 @@ It stringifies to C<Raku>:
16991699

17001700
$*RAKU.put; # OUTPUT: «Raku␤»
17011701

1702-
B<Note:> Before Rakudo version 2020.1, this information was only
1703-
available through the C<$*PERL> variable. Since Rakudo version 2020.1,
1702+
B<Note:> Before Rakudo release 2020.1, this information was only
1703+
available through the C<$*PERL> variable. Since Rakudo release 2020.1,
17041704
it is available through both the C<$*RAKU> and the C<$*PERL> variables.
17051705

17061706
X<|Variables,$*PERL>
@@ -1742,7 +1742,7 @@ block. It contains the currently known L<exit()|/routine/exit> value: B<1>
17421742
if an exception occurred, B<0> if no exception occurred, B<N> when an
17431743
C<exit(N)> was executed.
17441744

1745-
Support for C<$*EXIT> was added in Rakudo compiler version 2023.02.
1745+
Support for C<$*EXIT> was added in Rakudo compiler release 2023.02.
17461746

17471747
X<|Variables,$*EXCEPTION>
17481748
=head4 C<$*EXCEPTION>
@@ -1752,7 +1752,7 @@ block. It contains an instantiated L<C<Exception>|/type/Exception> object if th
17521752
ending because of an exception having been thrown. Will contain the Exception
17531753
type object otherwise.
17541754

1755-
Support for C<$*EXCEPTION> was added in Rakudo compiler version 2023.02.
1755+
Support for C<$*EXCEPTION> was added in Rakudo compiler release 2023.02.
17561756

17571757
X<|Variables,$*EXECUTABLE>
17581758
=head4 C<$*EXECUTABLE>

doc/Programs/03-environment-variables.rakudoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Type: L<C<Str>|/type/Str>.
4343

4444
C<RAKUDOLIB> and C<RAKULIB> append a comma-delimited list of paths to the
4545
search list for modules. C<RAKUDOLIB> is evaluated first. B<NOTE:> These env
46-
vars were added in the Rakudo compiler in version 2020.05. The deprecated older
46+
vars were added in the Rakudo compiler in release 2020.05. The deprecated older
4747
env var C<PERL6LIB> is still available.
4848

4949
X<|Programs,RAKUDO_MODULE_DEBUG>
@@ -180,7 +180,7 @@ X<|Programs,RAKUDO_HIST>
180180

181181
This specifies the location of the history file used by the
182182
line editor; the default is C<~/.raku/rakudo-history>.
183-
Before Rakudo version 2020.02 the default was
183+
Before Rakudo release 2020.02 the default was
184184
C<~/.perl6/rakudo-history>.
185185

186186
=head2 Other

0 commit comments

Comments
 (0)