Browse Source

Add DNS::Record::Check initial stuff.


git-svn-id: svn://127.0.0.1/Perl/DNS::Record::Check/trunk@159 0c1c3402-1be1-de11-8092-0022686faf
0.0.0
Zane C. B-H 9 years ago
commit
ee37adf034

+ 5
- 0
DNS-Record-Check/Changes View File

@@ -0,0 +1,5 @@
1
+Revision history for DNS-Record-Check
2
+
3
+0.01    Date/time
4
+        First version, released on an unsuspecting world.
5
+

+ 9
- 0
DNS-Record-Check/MANIFEST View File

@@ -0,0 +1,9 @@
1
+Changes
2
+MANIFEST
3
+Makefile.PL
4
+README
5
+lib/DNS/Record/Check.pm
6
+t/00-load.t
7
+t/manifest.t
8
+t/pod-coverage.t
9
+t/pod.t

+ 19
- 0
DNS-Record-Check/Makefile.PL View File

@@ -0,0 +1,19 @@
1
+use strict;
2
+use warnings;
3
+use ExtUtils::MakeMaker;
4
+
5
+WriteMakefile(
6
+    NAME                => 'DNS::Record::Check',
7
+    AUTHOR              => q{Zane C. Bowers <vvelox@vvelox.net>},
8
+    VERSION_FROM        => 'lib/DNS/Record/Check.pm',
9
+    ABSTRACT_FROM       => 'lib/DNS/Record/Check.pm',
10
+    ($ExtUtils::MakeMaker::VERSION >= 6.3002
11
+      ? ('LICENSE'=> 'perl')
12
+      : ()),
13
+    PL_FILES            => {},
14
+    PREREQ_PM => {
15
+        'Test::More' => 0,
16
+    },
17
+    dist                => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
18
+    clean               => { FILES => 'DNS-Record-Check-*' },
19
+);

+ 55
- 0
DNS-Record-Check/README View File

@@ -0,0 +1,55 @@
1
+DNS-Record-Check
2
+
3
+The README is used to introduce the module and provide instructions on
4
+how to install the module, any machine dependencies it may have (for
5
+example C compilers and installed libraries) and any other information
6
+that should be provided before the module is installed.
7
+
8
+A README file is required for CPAN modules since CPAN extracts the README
9
+file from a module distribution so that people browsing the archive
10
+can use it to get an idea of the module's uses. It is usually a good idea
11
+to provide version information here so that people can decide whether
12
+fixes for the module are worth downloading.
13
+
14
+
15
+INSTALLATION
16
+
17
+To install this module, run the following commands:
18
+
19
+	perl Makefile.PL
20
+	make
21
+	make test
22
+	make install
23
+
24
+SUPPORT AND DOCUMENTATION
25
+
26
+After installing, you can find documentation for this module with the
27
+perldoc command.
28
+
29
+    perldoc DNS::Record::Check
30
+
31
+You can also look for information at:
32
+
33
+    RT, CPAN's request tracker
34
+        http://rt.cpan.org/NoAuth/Bugs.html?Dist=DNS-Record-Check
35
+
36
+    AnnoCPAN, Annotated CPAN documentation
37
+        http://annocpan.org/dist/DNS-Record-Check
38
+
39
+    CPAN Ratings
40
+        http://cpanratings.perl.org/d/DNS-Record-Check
41
+
42
+    Search CPAN
43
+        http://search.cpan.org/dist/DNS-Record-Check/
44
+
45
+
46
+LICENSE AND COPYRIGHT
47
+
48
+Copyright (C) 2010 Zane C. Bowers
49
+
50
+This program is free software; you can redistribute it and/or modify it
51
+under the terms of either: the GNU General Public License as published
52
+by the Free Software Foundation; or the Artistic License.
53
+
54
+See http://dev.perl.org/licenses/ for more information.
55
+

+ 12
- 0
DNS-Record-Check/ignore.txt View File

@@ -0,0 +1,12 @@
1
+blib*
2
+Makefile
3
+Makefile.old
4
+Build
5
+Build.bat
6
+_build*
7
+pm_to_blib*
8
+*.tar.gz
9
+.lwpcookies
10
+cover_db
11
+pod2htm*.tmp
12
+DNS-Record-Check-*

+ 110
- 0
DNS-Record-Check/lib/DNS/Record/Check.pm View File

@@ -0,0 +1,110 @@
1
+package DNS::Record::Check;
2
+
3
+use warnings;
4
+use strict;
5
+
6
+=head1 NAME
7
+
8
+DNS::Record::Check - The great new DNS::Record::Check!
9
+
10
+=head1 VERSION
11
+
12
+Version 0.01
13
+
14
+=cut
15
+
16
+our $VERSION = '0.01';
17
+
18
+
19
+=head1 SYNOPSIS
20
+
21
+Quick summary of what the module does.
22
+
23
+Perhaps a little code snippet.
24
+
25
+    use DNS::Record::Check;
26
+
27
+    my $foo = DNS::Record::Check->new();
28
+    ...
29
+
30
+=head1 EXPORT
31
+
32
+A list of functions that can be exported.  You can delete this section
33
+if you don't export anything, such as for a purely object-oriented module.
34
+
35
+=head1 SUBROUTINES/METHODS
36
+
37
+=head2 function1
38
+
39
+=cut
40
+
41
+sub function1 {
42
+}
43
+
44
+=head2 function2
45
+
46
+=cut
47
+
48
+sub function2 {
49
+}
50
+
51
+=head1 AUTHOR
52
+
53
+Zane C. Bowers, C<< <vvelox at vvelox.net> >>
54
+
55
+=head1 BUGS
56
+
57
+Please report any bugs or feature requests to C<bug-dns-record-check at rt.cpan.org>, or through
58
+the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=DNS-Record-Check>.  I will be notified, and then you'll
59
+automatically be notified of progress on your bug as I make changes.
60
+
61
+
62
+
63
+
64
+=head1 SUPPORT
65
+
66
+You can find documentation for this module with the perldoc command.
67
+
68
+    perldoc DNS::Record::Check
69
+
70
+
71
+You can also look for information at:
72
+
73
+=over 4
74
+
75
+=item * RT: CPAN's request tracker
76
+
77
+L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=DNS-Record-Check>
78
+
79
+=item * AnnoCPAN: Annotated CPAN documentation
80
+
81
+L<http://annocpan.org/dist/DNS-Record-Check>
82
+
83
+=item * CPAN Ratings
84
+
85
+L<http://cpanratings.perl.org/d/DNS-Record-Check>
86
+
87
+=item * Search CPAN
88
+
89
+L<http://search.cpan.org/dist/DNS-Record-Check/>
90
+
91
+=back
92
+
93
+
94
+=head1 ACKNOWLEDGEMENTS
95
+
96
+
97
+=head1 LICENSE AND COPYRIGHT
98
+
99
+Copyright 2010 Zane C. Bowers.
100
+
101
+This program is free software; you can redistribute it and/or modify it
102
+under the terms of either: the GNU General Public License as published
103
+by the Free Software Foundation; or the Artistic License.
104
+
105
+See http://dev.perl.org/licenses/ for more information.
106
+
107
+
108
+=cut
109
+
110
+1; # End of DNS::Record::Check

+ 10
- 0
DNS-Record-Check/t/00-load.t View File

@@ -0,0 +1,10 @@
1
+#!perl -T
2
+
3
+use Test::More tests => 1;
4
+
5
+BEGIN {
6
+    use_ok( 'DNS::Record::Check' ) || print "Bail out!
7
+";
8
+}
9
+
10
+diag( "Testing DNS::Record::Check $DNS::Record::Check::VERSION, Perl $], $^X" );

+ 55
- 0
DNS-Record-Check/t/boilerplate.t View File

@@ -0,0 +1,55 @@
1
+#!perl -T
2
+
3
+use strict;
4
+use warnings;
5
+use Test::More tests => 3;
6
+
7
+sub not_in_file_ok {
8
+    my ($filename, %regex) = @_;
9
+    open( my $fh, '<', $filename )
10
+        or die "couldn't open $filename for reading: $!";
11
+
12
+    my %violated;
13
+
14
+    while (my $line = <$fh>) {
15
+        while (my ($desc, $regex) = each %regex) {
16
+            if ($line =~ $regex) {
17
+                push @{$violated{$desc}||=[]}, $.;
18
+            }
19
+        }
20
+    }
21
+
22
+    if (%violated) {
23
+        fail("$filename contains boilerplate text");
24
+        diag "$_ appears on lines @{$violated{$_}}" for keys %violated;
25
+    } else {
26
+        pass("$filename contains no boilerplate text");
27
+    }
28
+}
29
+
30
+sub module_boilerplate_ok {
31
+    my ($module) = @_;
32
+    not_in_file_ok($module =>
33
+        'the great new $MODULENAME'   => qr/ - The great new /,
34
+        'boilerplate description'     => qr/Quick summary of what the module/,
35
+        'stub function definition'    => qr/function[12]/,
36
+    );
37
+}
38
+
39
+TODO: {
40
+  local $TODO = "Need to replace the boilerplate text";
41
+
42
+  not_in_file_ok(README =>
43
+    "The README is used..."       => qr/The README is used/,
44
+    "'version information here'"  => qr/to provide version information/,
45
+  );
46
+
47
+  not_in_file_ok(Changes =>
48
+    "placeholder date/time"       => qr(Date/time)
49
+  );
50
+
51
+  module_boilerplate_ok('lib/DNS/Record/Check.pm');
52
+
53
+
54
+}
55
+

+ 13
- 0
DNS-Record-Check/t/manifest.t View File

@@ -0,0 +1,13 @@
1
+#!perl -T
2
+
3
+use strict;
4
+use warnings;
5
+use Test::More;
6
+
7
+unless ( $ENV{RELEASE_TESTING} ) {
8
+    plan( skip_all => "Author tests not required for installation" );
9
+}
10
+
11
+eval "use Test::CheckManifest 0.9";
12
+plan skip_all => "Test::CheckManifest 0.9 required" if $@;
13
+ok_manifest();

+ 18
- 0
DNS-Record-Check/t/pod-coverage.t View File

@@ -0,0 +1,18 @@
1
+use strict;
2
+use warnings;
3
+use Test::More;
4
+
5
+# Ensure a recent version of Test::Pod::Coverage
6
+my $min_tpc = 1.08;
7
+eval "use Test::Pod::Coverage $min_tpc";
8
+plan skip_all => "Test::Pod::Coverage $min_tpc required for testing POD coverage"
9
+    if $@;
10
+
11
+# Test::Pod::Coverage doesn't require a minimum Pod::Coverage version,
12
+# but older versions don't recognize some common documentation styles
13
+my $min_pc = 0.18;
14
+eval "use Pod::Coverage $min_pc";
15
+plan skip_all => "Pod::Coverage $min_pc required for testing POD coverage"
16
+    if $@;
17
+
18
+all_pod_coverage_ok();

+ 12
- 0
DNS-Record-Check/t/pod.t View File

@@ -0,0 +1,12 @@
1
+#!perl -T
2
+
3
+use strict;
4
+use warnings;
5
+use Test::More;
6
+
7
+# Ensure a recent version of Test::Pod
8
+my $min_tp = 1.22;
9
+eval "use Test::Pod $min_tp";
10
+plan skip_all => "Test::Pod $min_tp required for testing POD" if $@;
11
+
12
+all_pod_files_ok();

Loading…
Cancel
Save