1. Shlomi Fish
  2. perl-HTML-Strip-Whitespace

Commits

shl...@52c325ad-5fd0-0310-8a0f-c43feede02cc  committed ce2f32f

Added the POD tests' files and got ./Build distttest to run.

  • Participants
  • Parent commits 862fa38
  • Branches default

Comments (0)

Files changed (5)

File MANIFEST

View file
+Build.PL
 Changes
 COPYING
+lib/HTML/Strip/Whitespace.pm
 Makefile.PL
 MANIFEST
+META.yml                                 Module meta-data (added by MakeMaker)
 README
 t/HTML-Strip-Whitespace.t
-lib/HTML/Strip/Whitespace.pm
-META.yml                                 Module meta-data (added by MakeMaker)
 TODO
+t/pod-coverage.t
+t/pod.t

File META.yml

View file
-# http://module-build.sourceforge.net/META-spec.html
-#XXXXXXX This is a prototype!!!  It will change in the future!!! XXXXX#
-name:         HTML-Strip-Whitespace
-version:      0.1.5
-version_from: lib/HTML/Strip/Whitespace.pm
-installdirs:  site
+---
+name: HTML-Strip-Whitespace
+version: 0.1.5
+author:
+  - 'Shlomi Fish, E<lt>shlomif@iglu.org.ilE<gt>'
+abstract: |-
+  Perl extension for stripping whitespace out of
+  HTML.
+license: mit
+resources:
+  license: http://opensource.org/licenses/mit-license.php
 requires:
-    HTML::TokeParser::Simple:      0
-    Test::More:                    0
-
-distribution_type: module
-generated_by: ExtUtils::MakeMaker version 6.17
+  HTML::TokeParser::Simple: 0
+build_requires:
+  Test::More: 0
+provides:
+  HTML::Strip::Whitespace:
+    file: lib/HTML/Strip/Whitespace.pm
+    version: 0.1.5
+  HTML::Strip::Whitespace::State:
+    file: lib/HTML/Strip/Whitespace.pm
+generated_by: Module::Build version 0.2808
+meta-spec:
+  url: http://module-build.sourceforge.net/META-spec-v1.2.html
+  version: 1.2

File lib/HTML/Strip/Whitespace.pm

View file
 
 1;
 __END__
+
 =head1 NAME
 
 HTML::Strip::Whitespace - Perl extension for stripping whitespace out of
 stripped HTML, or alternatively a reference to a sub-routine or a file handle
 that will output it.
 
+=head1 FUNCTIONS
+
+=head2 html_strip_whitespace(source => $src, out => $out, strip_newlinews => $strip)
+
+C<source> is the HTML::TokeParser source for the 
+HTML. C<out> can be a reference to a buffer which will be filled with the 
+stripped HTML, or alternatively a reference to a sub-routine or a file handle
+that will output it.
+
+=head1 SEE ALSO
+
+HTML Tidy with its Perl binding, which probably does a better and faster job
+of rendering this page.
+
 =head1 AUTHOR
 
 Shlomi Fish, E<lt>shlomif@iglu.org.ilE<gt>

File t/pod-coverage.t

View file
+#!perl -T
+
+use Test::More;
+eval "use Test::Pod::Coverage 1.04";
+plan skip_all => "Test::Pod::Coverage 1.04 required for testing POD coverage" if $@;
+all_pod_coverage_ok();

File t/pod.t

View file
+#!perl -T
+
+use Test::More;
+eval "use Test::Pod 1.14";
+plan skip_all => "Test::Pod 1.14 required for testing POD" if $@;
+all_pod_files_ok();