Skip to content

Commit c31df80

Browse files
committed
CI test in preparation for a Raku Community release
1 parent d610a48 commit c31df80

File tree

12 files changed

+231
-49
lines changed

12 files changed

+231
-49
lines changed

.github/workflows/linux.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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

.github/workflows/macos.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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

.github/workflows/windows.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.precomp/
2+
/Algorithm-Soundex-*

.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Revision history for Algorithm::Soundex
2+
3+
{{$NEXT}}
4+
- Initial version as a Raku Community module

META6.json

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
{
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+
],
56
"build-depends": [
6-
77
],
88
"depends": [
9-
109
],
10+
"description": "Soundex algorithms in Raku",
1111
"license": "Artistic-2.0",
12+
"name": "Algorithm::Soundex",
13+
"perl": "6.*",
1214
"provides": {
13-
"Algorithm::Soundex": "lib/Algorithm/Soundex.pm"
15+
"Algorithm::Soundex": "lib/Algorithm/Soundex.rakumod"
1416
},
17+
"resources": [
18+
],
19+
"source-url": "https://github.com/raku-community-modules/Algorithm-Soundex.git",
20+
"tags": [
21+
],
1522
"test-depends": [
16-
"Test"
1723
],
18-
"version": "*",
19-
"description": "Soundex Algorithm in Perl 6"
20-
}
24+
"version": "*"
25+
}

README.md

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,39 @@
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)
22

3-
# Algorithm::Soundex - Soundex Algorithms in Perl 6
3+
NAME
4+
====
45

5-
use v6;
6-
use Algorithm::Soundex;
6+
Algorithm::Soundex - Soundex algorithms in Raku
77

8-
my Algorithm::Soundex $s .= new();
9-
my $soundex = $s.soundex("Leto");
10-
say "The soundex of Leto is $soundex";
8+
DESCRIPTION
9+
===========
1110

12-
## Running Tests
11+
Currently this module contains the American Soundex algorithm, implemented in Raku
1312

14-
$ prove -e "perl6 -Ilib" -r t/
13+
If you would like to add other Soundex algorithms, Patches Welcome!
1514

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.
1739

18-
Patches welcome!

dist.ini

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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

lib/Algorithm/Soundex.pm renamed to lib/Algorithm/Soundex.rakumod

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use v6;
2-
31
class Algorithm::Soundex {
42

53
method soundex ($string --> Str ) {
@@ -24,38 +22,45 @@ class Algorithm::Soundex {
2422
]+
2523
$ { take 0,0,0 }
2624
/;
27-
}.flat.[0,2,3,4].join;
25+
}.flat.[0,2,3,4].join
2826
}
29-
3027
}
28+
3129
=begin pod
3230
3331
=head1 NAME
3432
35-
Algorithm::Soundex - Soundex Algorithms
33+
Algorithm::Soundex - Soundex algorithms in Raku
3634
3735
=head1 DESCRIPTION
3836
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
4039
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!
4341
4442
=head1 SYNOPSIS
4543
46-
=begin code
44+
=begin code :lang<raku>
4745
48-
use v6;
49-
use Algorithm::Soundex;
46+
use Algorithm::Soundex;
5047
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";
5451
5552
=end code
5653
5754
=head1 AUTHOR
5855
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.
6065
6166
=end pod

0 commit comments

Comments
 (0)