Skip to content

Commit cfb91c7

Browse files
committed
Initial commit.
1 parent 86f77ef commit cfb91c7

File tree

11 files changed

+228
-11
lines changed

11 files changed

+228
-11
lines changed

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: test
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
perl:
9+
[
10+
"5.34",
11+
"5.30",
12+
"5.26",
13+
"5.22",
14+
"5.18",
15+
"5.14",
16+
"5.10"
17+
]
18+
name: Perl ${{ matrix.perl }}
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Setup perl
22+
uses: shogo82148/actions-setup-perl@v1
23+
with:
24+
perl-version: ${{ matrix.perl }}
25+
- name: Install dependencies
26+
run: cpanm -nq --installdeps --with-develop --with-recommends .
27+
- name: Run test
28+
run: prove -lr t
29+

.gitignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/.build/
2+
/_build/
3+
/Build
4+
/Build.bat
5+
/blib
6+
/Makefile
7+
/pm_to_blib
8+
9+
/carton.lock
10+
/.carton/
11+
/local/
12+
13+
nytprof.out
14+
nytprof/
15+
16+
cover_db/
17+
18+
*.bak
19+
*.old
20+
*~
21+
*.swp
22+
*.o
23+
*.obj
24+
25+
!LICENSE
26+
27+
/_build_params
28+
29+
MYMETA.*
30+
31+
/Sqids-*

Build.PL

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# =========================================================================
2+
# THIS FILE IS AUTOMATICALLY GENERATED BY MINILLA.
3+
# DO NOT EDIT DIRECTLY.
4+
# =========================================================================
5+
6+
use 5.008_001;
7+
use strict;
8+
9+
use Module::Build::Tiny 0.035;
10+
11+
Build_PL();
12+

CHANGELOG.md

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

Changes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Revision history for Perl extension Sqids
2+
3+
{{$NEXT}}
4+
5+
- original version
6+

META.json

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"abstract" : "generate short unique identifiers from numbers",
3+
"author" : [
4+
"Matthew Somerville <[email protected]>"
5+
],
6+
"dynamic_config" : 0,
7+
"generated_by" : "Minilla/v3.1.23, CPAN::Meta::Converter version 2.150010",
8+
"license" : [
9+
"mit"
10+
],
11+
"meta-spec" : {
12+
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
13+
"version" : 2
14+
},
15+
"name" : "Sqids",
16+
"no_index" : {
17+
"directory" : [
18+
"t",
19+
"xt",
20+
"inc",
21+
"share",
22+
"eg",
23+
"examples",
24+
"author",
25+
"builder"
26+
]
27+
},
28+
"prereqs" : {
29+
"configure" : {
30+
"requires" : {
31+
"Module::Build::Tiny" : "0.035"
32+
}
33+
},
34+
"develop" : {
35+
"requires" : {
36+
"Test::CPAN::Meta" : "0",
37+
"Test::MinimumVersion::Fast" : "0.04",
38+
"Test::PAUSE::Permissions" : "0.07",
39+
"Test::Pod" : "1.41",
40+
"Test::Spellunker" : "v0.2.7"
41+
}
42+
},
43+
"runtime" : {
44+
"requires" : {
45+
"perl" : "5.008001"
46+
}
47+
},
48+
"test" : {
49+
"requires" : {
50+
"Test::More" : "0.98"
51+
}
52+
}
53+
},
54+
"release_status" : "unstable",
55+
"resources" : {
56+
"bugtracker" : {
57+
"web" : "https://github.com/dracos/sqids-perl/issues"
58+
},
59+
"homepage" : "https://github.com/dracos/sqids-perl",
60+
"repository" : {
61+
"type" : "git",
62+
"url" : "https://github.com/dracos/sqids-perl.git",
63+
"web" : "https://github.com/dracos/sqids-perl"
64+
}
65+
},
66+
"version" : "0.01",
67+
"x_contributors" : [
68+
"Ivan Akimov <[email protected]>"
69+
],
70+
"x_serialization_backend" : "JSON::PP version 4.16",
71+
"x_static_install" : 1
72+
}

README.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
1-
# [Sqids Perl](https://sqids.org/perl)
1+
[![Actions Status](https://github.com/dracos/sqids-perl/actions/workflows/test.yml/badge.svg)](https://github.com/dracos/sqids-perl/actions)
2+
# NAME
23

3-
Sqids (pronounced "squids") is a small library that lets you generate YouTube-looking IDs from numbers. It's good for link shortening, fast & URL-safe ID generation and decoding back into numbers for quicker database lookups.
4+
Sqids - generate short unique identifiers from numbers
45

5-
## Getting started
6+
# SYNOPSIS
67

7-
@todo
8+
use Sqids;
89

9-
## Examples
10+
# DESCRIPTION
1011

11-
@todo
12+
Sqids is ...
1213

13-
## License
14+
# SEE ALSO
1415

15-
[MIT](LICENSE)
16+
[Sqids](https://www.sqids.org)
17+
18+
# LICENSE
19+
20+
Copyright (C) Matthew Somerville. MIT.
21+
22+
# AUTHOR
23+
24+
Matthew Somerville <[email protected]>

cpanfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
requires 'perl', '5.008001';
2+
3+
on 'test' => sub {
4+
requires 'Test::More', '0.98';
5+
};
6+

lib/Sqids.pm

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
package Sqids;
2+
use 5.008001;
3+
use strict;
4+
use warnings;
5+
6+
our $VERSION = "0.01";
7+
8+
9+
10+
1;
11+
__END__
12+
13+
=encoding utf-8
14+
15+
=head1 NAME
16+
17+
Sqids - generate short unique identifiers from numbers
18+
19+
=head1 SYNOPSIS
20+
21+
use Sqids;
22+
23+
=head1 DESCRIPTION
24+
25+
Sqids is ...
26+
27+
=head1 SEE ALSO
28+
29+
L<Sqids|https://www.sqids.org>
30+
31+
=head1 LICENSE
32+
33+
Copyright (C) Matthew Somerville. MIT.
34+
35+
=head1 AUTHOR
36+
37+
Matthew Somerville E<lt>[email protected]E<gt>
38+
39+
=cut
40+

minil.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name = "Sqids"
2+
badges = ["github-actions/test.yml"]
3+
module_maker="ModuleBuildTiny"
4+
static_install = "auto"
5+
license = "mit"
6+

0 commit comments

Comments
 (0)