Skip to content

Commit 038ed6c

Browse files
committed
Init repo, start main files.
0 parents  commit 038ed6c

10 files changed

+195
-0
lines changed

.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/_build
2+
/blib
3+
/URI-db-*
4+
/MANIFEST
5+
/MANIFEST.bak
6+
/*META.*
7+
/Build
8+
/Makefile*
9+
/pm_to_blib

Build.PL

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
use strict;
2+
use warnings;
3+
use Module::Build;
4+
5+
Module::Build->new(
6+
module_name => 'URI::db',
7+
license => 'perl',
8+
configure_requires => { 'Module::Build' => '0.30', },
9+
build_requires => {
10+
'Module::Build' => '0.30',
11+
'Test::More' => '0.70',
12+
},
13+
requires => {
14+
'perl' => 5.008001,
15+
},
16+
recommends => {
17+
'Test::Pod' => '1.41',
18+
'Test::Pod::Coverage' => '1.06',
19+
},
20+
meta_merge => {
21+
resources => {
22+
homepage => 'http://search.cpan.org/dist/URI-db/',
23+
bugtracker => 'http://github.com/theory/uri-db/issues/',
24+
repository => 'http://github.com/theory/uri-db/tree/',
25+
}
26+
},
27+
)->create_build_script;

Changes

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Revision history for Perl extension URI::db.
2+
3+
0.10
4+
- Initial version.

MANIFEST.SKIP

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Avoid version control files.
2+
\bRCS\b
3+
\bCVS\b
4+
,v$
5+
\B\.svn\b
6+
\B\.git
7+
8+
# Avoid Makemaker generated and utility files.
9+
\bMakefile$
10+
\bblib
11+
\bMakeMaker-\d
12+
\bpm_to_blib$
13+
\bblibdirs$
14+
^MANIFEST\.SKIP$
15+
16+
# Avoid Module::Build generated and utility files.
17+
\bBuild$
18+
\b_build
19+
20+
# Avoid temp and backup files.
21+
~$
22+
\.tmp$
23+
\.old$
24+
\.bak$
25+
\#$
26+
\b\.#
27+
28+
# Avoid build files.
29+
^URI-db
30+
31+
# Avoid Pod tests.
32+
t/pod[^.]*\.t
33+
34+
^MYMETA\.yml$
35+
^MYMETA\.json$

README.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
URI/db version 0.10
2+
===================
3+
4+
This library provides URI subclasses to represent database connection
5+
URIs.
6+
7+
INSTALLATION
8+
9+
To install this module, type the following:
10+
11+
perl Build.PL
12+
./Build
13+
./Build test
14+
./Build install
15+
16+
Or, if you don't have Module::Build installed, type the following:
17+
18+
perl Makefile.PL
19+
make
20+
make test
21+
make install
22+
23+
Dependencies
24+
------------
25+
26+
URI::db requires the following modules:
27+
28+
* URI
29+
30+
Copyright and Licence
31+
---------------------
32+
33+
Copyright (c) 2013 David E. Wheeler. Some Rights Reserved.
34+
35+
This module is free software; you can redistribute it and/or modify it under
36+
the same terms as Perl itself.

lib/URI/db.pm

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
package URI::db;
2+
3+
use strict;
4+
use 5.8.1;
5+
use base 'URI::_login';
6+
7+
1;
8+
__END__
9+
10+
=head1 Name
11+
12+
URI::db - Database URIs
13+
14+
=head1 Synopsis
15+
16+
use URI;
17+
my $uri = URI->new('postgresql://user@localhost');
18+
19+
=head1 Description
20+
21+
This class provides support for database URIs. They're modeled on
22+
L<JDBC URIs|http://docs.oracle.com/cd/B14117_01/java.101/b10979/urls.htm#BEIJFHHB> and
23+
L<PostgreSQL URIs|>http://www.postgresql.org/docs/9.3/static/libpq-connect.html#LIBPQ-CONNSTRING.
24+
25+
=head1 Support
26+
27+
This module is stored in an open
28+
L<GitHub repository|http://github.com/theory/uri-db/>. Feel free to fork and
29+
contribute!
30+
31+
Please file bug reports via
32+
L<GitHub Issues|http://github.com/theory/uri-db/issues/> or by sending mail to
33+
34+
35+
=head1 Author
36+
37+
David E. Wheeler <[email protected]>
38+
39+
=head1 Copyright and License
40+
41+
Copyright (c) 2013 David E. Wheeler. Some Rights Reserved.
42+
43+
This module is free software; you can redistribute it and/or modify it under
44+
the same terms as Perl itself.
45+
46+
=cut

t/pod-coverage.t

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!perl -w
2+
3+
use strict;
4+
use Test::More;
5+
eval "use Test::Pod::Coverage 1.06";
6+
plan skip_all => "Test::Pod::Coverage 1.06 required for testing POD coverage"
7+
if $@;
8+
9+
all_pod_coverage_ok();

t/pod-spelling.t

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!perl -w
2+
3+
use strict;
4+
use Test::More;
5+
eval "use Test::Spelling";
6+
plan skip_all => "Test::Spelling required for testing POD spelling" if $@;
7+
8+
add_stopwords(<DATA>);
9+
all_pod_files_spelling_ok();
10+
11+
__DATA__
12+
JDBC
13+
GitHub

t/pod.t

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!perl -w
2+
3+
use strict;
4+
use Test::More;
5+
eval "use Test::Pod 1.20";
6+
plan skip_all => "Test::Pod 1.20 required for testing POD" if $@;
7+
all_pod_files_ok();

t/uri.t

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/perl -w
2+
3+
use strict;
4+
use Test::More;
5+
use utf8;
6+
7+
BEGIN { use_ok 'URI::db' or die; }
8+
9+
done_testing;

0 commit comments

Comments
 (0)