Convert-Wiki

 view release on metacpan or  search on metacpan

CHANGES  view on Meta::CPAN

  * Node: complain about unknown types
  * added Item.pm, Line.pm, Mono.pm
  * Wiki: added options 'debug' and 'interlink' (not working yet)

2004-12-25 v0.03 Tels 82 tests
  * License is GPL
  * Wiki: add nodes()
  * Node: add link(), next(), prev(), prev_by_type()
  * Wiki: moved from_txt() to Convert/Wiki/Txt.pm
  * fixes a lot in text recognition code that broke many simple examples
  * use Test::Differences for some generic text => wiki tests
  * use prev_by_type() to correct levels of headlines (first headline,
    headline right after another headline)
  * use _remove_me() to remove "line" nodes right at start and for
    headlines

2004-12-26 v0.04 Tels 83 tests
  * txt2wiki: add command line options: debug, interlink, input, output
  * txt2wiki: add pod with instructions and synopsis
  * Node: add interlink()
  * supports (inter)linking phrases and URls

META.yml  view on Meta::CPAN

--- #YAML:1.0
name: Convert-Wiki
version: 0.05
version_from: lib/Convert/Wiki.pm
license: perl
distribution_type: module
generated_by: Convert-Wiki version 0.05
installdirs: site
requires:
  Test::Differences: 0.47
  Text::Format: 0.52

Makefile.PL  view on Meta::CPAN

  $dump =~ s/^(.*)$/\t\$(NOECHO) \$(ECHO) "$1" >>META.yml/gm;
  $dump =~ s/>>META\.yml/>META.yml/;

  return "metafile:\n$dump";
}

WriteMakefile(
    NAME              => 'Convert::Wiki',
    VERSION_FROM      => 'lib/Convert/Wiki.pm',
    PREREQ_PM         => {
	Test::Differences => 0.47,
	Text::Format => 0.52,
	},
    ($] >= 5.005 ?     ## Add these new keywords supported since 5.005
      (ABSTRACT_FROM  => 'lib/Convert/Wiki.pm', # retrieve abstract from module
       AUTHOR         => 'Tels http//:bloodgate.com') : ()),
);

t/conv.t  view on Meta::CPAN


BEGIN
   {
   plan tests => 7;
   chdir 't' if -d 't';
   use lib '../lib';
   use_ok ("Convert::Wiki") or die($@);
   };

use File::Spec;
use Test::Differences;
use strict;

sub DEBUG () { 0; }

#############################################################################
# for all in txt/, read in, convert and compare to out/

opendir DIR, "txt/" or die ("Cannot open dir txt: $!");
my @files = readdir DIR;
closedir DIR;



( run in 1.523 second using v1.01-cache-2.11-cpan-39bf76dae61 )