File tree Expand file tree Collapse file tree 12 files changed +231
-49
lines changed Expand file tree Collapse file tree 12 files changed +231
-49
lines changed Original file line number Diff line number Diff line change
1
+ name : Linux
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' *'
7
+ tags-ignore :
8
+ - ' *'
9
+ pull_request :
10
+
11
+ jobs :
12
+ raku :
13
+ strategy :
14
+ matrix :
15
+ os :
16
+ - ubuntu-latest
17
+ raku-version :
18
+ - ' latest'
19
+ runs-on : ${{ matrix.os }}
20
+ steps :
21
+ - uses : actions/checkout@v3
22
+ - uses : Raku/setup-raku@v1
23
+ with :
24
+ raku-version : ${{ matrix.raku-version }}
25
+ - name : Run Special Tests
26
+ run : raku run-tests -i
Original file line number Diff line number Diff line change
1
+ name : MacOS
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' *'
7
+ tags-ignore :
8
+ - ' *'
9
+ pull_request :
10
+
11
+ jobs :
12
+ raku :
13
+ strategy :
14
+ matrix :
15
+ os :
16
+ - macos-latest
17
+ raku-version :
18
+ - ' latest'
19
+ runs-on : ${{ matrix.os }}
20
+ steps :
21
+ - uses : actions/checkout@v3
22
+ - uses : Raku/setup-raku@v1
23
+ with :
24
+ raku-version : ${{ matrix.raku-version }}
25
+ - name : Run Special Tests
26
+ run : raku run-tests -i
Original file line number Diff line number Diff line change
1
+ name : Windows
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' *'
7
+ tags-ignore :
8
+ - ' *'
9
+ pull_request :
10
+
11
+ jobs :
12
+ raku :
13
+ strategy :
14
+ matrix :
15
+ os :
16
+ - windows-latest
17
+ raku-version :
18
+ - ' latest'
19
+ runs-on : ${{ matrix.os }}
20
+ steps :
21
+ - uses : actions/checkout@v3
22
+ - uses : Raku/setup-raku@v1
23
+ with :
24
+ raku-version : ${{ matrix.raku-version }}
25
+ - name : Run Special Tests
26
+ run : raku run-tests -i
Original file line number Diff line number Diff line change
1
+ .precomp /
2
+ /Algorithm-Soundex- *
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ Revision history for Algorithm::Soundex
2
+
3
+ {{$NEXT}}
4
+ - Initial version as a Raku Community module
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " Algorithm::Soundex" ,
3
- "source-url" : " git://github.com/leto/perl6-Algorithm-Soundex.git" ,
4
- "perl" : " 6.*" ,
2
+ "auth" : " zef:raku-community-modules" ,
3
+ "authors" : [
4
+ " Jonathan Leto"
5
+ ],
5
6
"build-depends" : [
6
-
7
7
],
8
8
"depends" : [
9
-
10
9
],
10
+ "description" : " Soundex algorithms in Raku" ,
11
11
"license" : " Artistic-2.0" ,
12
+ "name" : " Algorithm::Soundex" ,
13
+ "perl" : " 6.*" ,
12
14
"provides" : {
13
- "Algorithm::Soundex" : " lib/Algorithm/Soundex.pm "
15
+ "Algorithm::Soundex" : " lib/Algorithm/Soundex.rakumod "
14
16
},
17
+ "resources" : [
18
+ ],
19
+ "source-url" : " https://github.com/raku-community-modules/Algorithm-Soundex.git" ,
20
+ "tags" : [
21
+ ],
15
22
"test-depends" : [
16
- " Test"
17
23
],
18
- "version" : " *" ,
19
- "description" : " Soundex Algorithm in Perl 6"
20
- }
24
+ "version" : " *"
25
+ }
Original file line number Diff line number Diff line change 1
- [ ![ Build Status] ( https://travis-ci.org/leto/perl6- Algorithm-Soundex. svg?branch=master )] ( https://travis-ci.org/leto/perl6- Algorithm-Soundex )
1
+ [ ![ Actions Status] ( https://github.com/raku-community-modules/Algorithm-Soundex/actions/workflows/linux.yml/badge.svg )] ( https://github.com/raku-community-modules/ Algorithm-Soundex/actions ) [ ![ Actions Status ] ( https://github.com/raku-community-modules/Algorithm-Soundex/actions/workflows/macos.yml/badge. svg)] ( https://github.com/raku-community-modules/Algorithm-Soundex/actions ) [ ![ Actions Status ] ( https://github.com/raku-community-modules/Algorithm-Soundex/actions/workflows/windows.yml/badge.svg )] ( https://github.com/raku-community-modules/ Algorithm-Soundex/actions )
2
2
3
- # Algorithm::Soundex - Soundex Algorithms in Perl 6
3
+ NAME
4
+ ====
4
5
5
- use v6;
6
- use Algorithm::Soundex;
6
+ Algorithm::Soundex - Soundex algorithms in Raku
7
7
8
- my Algorithm::Soundex $s .= new();
9
- my $soundex = $s.soundex("Leto");
10
- say "The soundex of Leto is $soundex";
8
+ DESCRIPTION
9
+ ===========
11
10
12
- ## Running Tests
11
+ Currently this module contains the American Soundex algorithm, implemented in Raku
13
12
14
- $ prove -e "perl6 -Ilib" -r t/
13
+ If you would like to add other Soundex algorithms, Patches Welcome!
15
14
16
- ## Contributing
15
+ SYNOPSIS
16
+ ========
17
+
18
+ ``` raku
19
+ use Algorithm::Soundex;
20
+
21
+ my Algorithm::Soundex $ s .= new ;
22
+ my $ soundex = $ s . soundex(" Leto" );
23
+ say " The soundex of Leto is $ soundex" ;
24
+ ```
25
+
26
+ AUTHOR
27
+ ======
28
+
29
+ Jonathan Leto
30
+
31
+ COPYRIGHT AND LICENSE
32
+ =====================
33
+
34
+ Copyright 2011 - 2017 Jonathan Leto
35
+
36
+ Copyright 2024 Raku Community
37
+
38
+ This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.
17
39
18
- Patches welcome!
Original file line number Diff line number Diff line change
1
+ name = Algorithm::Soundex
2
+
3
+ [ReadmeFromPod]
4
+ filename = lib/Algorithm/Soundex.rakumod
5
+
6
+ [UploadToZef]
7
+
8
+ [Badges]
9
+ provider = github-actions/linux.yml
10
+ provider = github-actions/macos.yml
11
+ provider = github-actions/windows.yml
Original file line number Diff line number Diff line change 1
- use v6 ;
2
-
3
1
class Algorithm::Soundex {
4
2
5
3
method soundex ($ string --> Str ) {
@@ -24,38 +22,45 @@ class Algorithm::Soundex {
24
22
]+
25
23
$ { take 0 ,0 ,0 }
26
24
/;
27
- }. flat . [0 ,2 ,3 ,4 ]. join ;
25
+ }. flat . [0 ,2 ,3 ,4 ]. join
28
26
}
29
-
30
27
}
28
+
31
29
= begin pod
32
30
33
31
= head1 NAME
34
32
35
- Algorithm::Soundex - Soundex Algorithms
33
+ Algorithm::Soundex - Soundex algorithms in Raku
36
34
37
35
= head1 DESCRIPTION
38
36
39
- Currently this module contains the American Soundex algorithm, implemented in Perl 6.
37
+ Currently this module contains the American Soundex algorithm,
38
+ implemented in Raku
40
39
41
- If you would like to add other Soundex algorithms, Patches Welcome! No, they are
42
- *actually* welcome :)
40
+ If you would like to add other Soundex algorithms, Patches Welcome!
43
41
44
42
= head1 SYNOPSIS
45
43
46
- = begin code
44
+ = begin code :lang<raku>
47
45
48
- use v6;
49
- use Algorithm::Soundex;
46
+ use Algorithm::Soundex;
50
47
51
- my Algorithm::Soundex $s .= new() ;
52
- my $soundex = $s.soundex("Leto");
53
- say "The soundex of Leto is $soundex";
48
+ my Algorithm::Soundex $s .= new;
49
+ my $soundex = $s.soundex("Leto");
50
+ say "The soundex of Leto is $soundex";
54
51
55
52
= end code
56
53
57
54
= head1 AUTHOR
58
55
59
- Jonathan "Duke" Leto - L < jonathan@leto.net >
56
+ Jonathan Leto
57
+
58
+ = head1 COPYRIGHT AND LICENSE
59
+
60
+ Copyright 2011 - 2017 Jonathan Leto
61
+
62
+ Copyright 2024 Raku Community
63
+
64
+ This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.
60
65
61
66
= end pod
You can’t perform that action at this time.
0 commit comments