Pod-Advent

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

          configure_requires directly.

0.11    2008-12-08
        * parse_file() now does a chdir to the .pod's directory.  This is so
          that it can find =sourcedcode files specified relative to the .pod
          file.  Makes testing easier -- don't have to chdir('ex/'). Also
          safe, because by convention the .pod/sourced .pl's/.pm's should be
          in a directory together.
        * updated tests to remove chdir's
        * added Cwd and File::Basename as prereqs
        * Changed tests that compare large HTML chunks to use Test::Differences::eq_or_diff instead of Test::More::is
        * add Test::Differences as a prereq
        * removed IO::Scalar as a prereq; changed t/snippets.t to use
          the ->parse_string_document method inherited from Pod::Simple.
        * added pod re: html passing through
        * added new pod re: footnotes
        * Refactored the use of footnotes.  now auto-numbers them.  see POD.
        * updated examples and tests for footnote changes
        * Added ex/footnotes.pod and ex/footnotes.html
        * Changed M<> behavior to link to http://search.cpan.org/perldoc?Foo::Bar
        * Consolidated t/pod2advent-[ABC].t to a new t/pod2advent.t
        * Consolidated t/sample.t and t.getting_started.t to a new t/examples.t

META.yml  view on Meta::CPAN

abstract:           POD Formatter for The Perl Advent Calendar
author:
    - David Westbrook <dwestbrook@gmail.com>
license:            perl
distribution_type:  module
configure_requires:
    ExtUtils::MakeMaker:  0
build_requires:
    ExtUtils::MakeMaker:  6.55
    IO::CaptureOutput:    0
    Test::Differences:    0
    Test::Harness:        2.03
    Test::More:           0
requires:
    Cwd:             0
    File::Basename:  0
    HTML::Entities:  0
    perl:            5.006001
    Perl::Tidy:      20101217
    Pod::Simple:     3.06
no_index:

Makefile.PL  view on Meta::CPAN

use strict;
use warnings;
use 5.006001;
use ExtUtils::MakeMaker;
my %build_reqs = (
	'ExtUtils::MakeMaker' => 6.55,	#	See below.
        'Test::More' => 0,		#	0.86
        'Test::Harness' => 2.03,	#	Need proper TODO support.
	'IO::CaptureOutput' => 0,	#	1.1
	'Test::Differences' => 0,	#	0.4801
);

WriteMakefile(
    NAME                => 'Pod::Advent',
    AUTHOR              => 'David Westbrook <dwestbrook@gmail.com>',
    LICENSE             => 'perl',
    VERSION_FROM        => 'lib/Pod/Advent.pm',
    ABSTRACT_FROM       => 'lib/Pod/Advent.pm',
    EXE_FILES           => [ 'bin/pod2advent' ],
    BUILD_REQUIRES      => \%build_reqs,

t/examples.t  view on Meta::CPAN

#!perl

use strict;
use warnings;
use Test::More tests => 12;
use Pod::Advent;
use Test::Differences;
use IO::CaptureOutput qw(capture);

my @files = (
  [ 'ex/sample.pod', 'ex/sample.html', '', [qw/ href lt pre mispelling mispelling /] ],
  [ 'ex/getting_started.pod', 'ex/getting_started.html', '', ],
  [ 'ex/footnotes.pod', 'ex/footnotes.html', '', [qw/ sourcedcode /] ],
);
foreach my $info ( @files ){
  my ($podfile, $htmlfile, $errors, $words) = @$info;
  $words ||= [];

t/packagevars.t  view on Meta::CPAN

#!perl

use strict;
use warnings;
use Test::More tests => 22;
use Test::Differences;
use Pod::Advent;

is( $Pod::Advent::VERSION, '0.24', 'got VERSION' );
is( $Pod::Advent::section, '', 'got section' );
is_deeply( \@Pod::Advent::mode, [], 'got mode' );
is_deeply( \%Pod::Advent::M_values_seen, {}, 'got M_values_seen' );
is( $Pod::Advent::BODY_ONLY, '0', 'got BODY_ONLY' );

SKIP: {
  skip "Text::Aspell is not installed", 1 unless eval { $INC{'Text/Aspell.pm'} && Text::Aspell->can('new') };

t/pod2advent.t  view on Meta::CPAN

#!perl

use strict;
use warnings;
use Test::More tests => 39;
use Test::Differences;
use IO::CaptureOutput qw(capture_exec);
use File::Temp qw(tempfile);
use File::Basename qw(fileparse);
my $CURYEAR = (localtime)[5] + 1900;

my @perl = ( $^X, '-Ilib' );
push @perl, '-MDevel::Cover=-silent,1,-db,cover_db,-ignore,.,+select,advent,+select,Advent' if exists $INC{'Devel/Cover.pm'};

my @files = (
  [ 'ex/sample.pod', 'ex/sample.html', 'Possible SPELLING ERRORS:

t/spellcheck.t  view on Meta::CPAN

#!perl

use strict;
use warnings;
use Test::More;
use Pod::Advent;
use Test::Differences;

eval "use Text::Aspell";
plan skip_all => "Text::Aspell required for testing spellcheck" if $@;

# for the case of an empty package, which is useful for testing with.
eval { Text::Aspell->can('new') } or
  plan skip_all => "Text::Aspell required for testing spellcheck";

plan tests => 26;



( run in 0.437 second using v1.01-cache-2.11-cpan-131fc08a04b )