Changeset 517

Show
Ignore:
Timestamp:
12/20/09 16:18:44 (2 years ago)
Author:
dom
Message:

initial rename

Location:
wiki-toolkit-formatter-pod/trunk
Files:
1 added
8 modified
1 moved

Legend:

Unmodified
Added
Removed
  • wiki-toolkit-formatter-pod/trunk/Changes

    r98 r517  
     10.04    
     2        Rename to Wiki::Toolkit::Formatter::Pod 
     3 
    140.03    12 October 2003 
    25        Added note to docs - you need to have CGI::Wiki::Formatter::UseMod 
  • wiki-toolkit-formatter-pod/trunk/MANIFEST

    r96 r517  
    44README 
    55TODO 
    6 lib/CGI/Wiki/Formatter/Pod.pm 
     6lib/Wiki/Toolkit/Formatter/Pod.pm 
    77t/01_formatting.t 
    88t/02_extended_links.t 
  • wiki-toolkit-formatter-pod/trunk/Makefile.PL

    r92 r517  
    11use ExtUtils::MakeMaker; 
    22 
    3 WriteMakefile( NAME         => "CGI::Wiki::Formatter::Pod", 
    4                VERSION_FROM => "lib/CGI/Wiki/Formatter/Pod.pm", 
     3WriteMakefile( NAME         => "Wiki::Toolkit::Formatter::Pod", 
     4               VERSION_FROM => "lib/Wiki/Toolkit/Formatter/Pod.pm", 
    55               PREREQ_PM    => { 'IO::Scalar'      => 0, 
    66                                 'Pod::Tree' => '1.10' # for link map 
  • wiki-toolkit-formatter-pod/trunk/README

    r98 r517  
    11NAME 
    2     CGI::Wiki::Formatter::Pod - A Pod to HTML formatter for CGI::Wiki. 
     2    Wiki::Toolkit::Formatter::Pod - A Pod to HTML formatter for Wiki::Toolkit. 
    33 
    44DESCRIPTION 
    5     A Pod to HTML formatter backend for CGI::Wiki. 
     5    A Pod to HTML formatter backend for Wiki::Toolkit. 
    66 
    77SYNOPSIS 
    8       my $store     = CGI::Wiki::Store::SQLite->new( ... ); 
    9       my $formatter = CGI::Wiki::Formatter::Pod->new; 
    10       my $wiki      = CGI::Wiki->new( store     => $store, 
    11                                       formatter => $formatter ); 
     8      my $store     = Wiki::Toolkit::Store::SQLite->new( ... ); 
     9      my $formatter = Wiki::Toolkit::Formatter::Pod->new; 
     10      my $wiki      = Wiki::Toolkit->new( store     => $store, 
     11                                          formatter => $formatter ); 
    1212 
    13     Go look at CGI::Wiki to find out more. This module is distributed 
     13    Go look at Wiki::Toolkit to find out more. This module is distributed 
    1414    separately solely for convenience of testing and maintenance; it's 
    1515    probably not too useful on its own. 
     
    1717METHODS 
    1818    new 
    19           my $formatter = CGI::Wiki::Formatter::Pod->new( 
     19          my $formatter = Wiki::Toolkit::Formatter::Pod->new( 
    2020                               node_prefix           => 'wiki.cgi?node=', 
    2121                               usemod_extended_links => 0, 
     
    3434        capitalised.) 
    3535 
    36         Note: You must have CGI::Wiki::Formatter::UseMod installed if you 
     36        Note: You must have Wiki::Toolkit::Formatter::UseMod installed if you 
    3737        wish to use the "usemod_extended_links" parameter. 
    3838 
     
    4444 
    4545SEE ALSO 
    46         CGI::Wiki, Pod::Tree::HTML. 
     46        Wiki::Toolkit, Pod::Tree::HTML. 
    4747 
    4848AUTHOR 
  • wiki-toolkit-formatter-pod/trunk/TODO

    r92 r517  
    11- Needs more tests. 
    22 
    3 - Need to write find_internal_links method (see CGI::Wiki::Formatter::Default). 
     3- Need to write find_internal_links method (see Wiki::Toolkit::Formatter::Default). 
  • wiki-toolkit-formatter-pod/trunk/lib/Wiki/Toolkit/Formatter/Pod.pm

    r98 r517  
    1 package CGI::Wiki::Formatter::Pod; 
     1package Wiki::Toolkit::Formatter::Pod; 
    22 
    33use strict; 
     
    1111=head1 NAME 
    1212 
    13 CGI::Wiki::Formatter::Pod - A Pod to HTML formatter for CGI::Wiki. 
     13Wiki::Toolkit::Formatter::Pod - A Pod to HTML formatter for Wiki::Toolkit. 
    1414 
    1515=head1 DESCRIPTION 
    1616 
    17 A Pod to HTML formatter backend for L<CGI::Wiki>. 
     17A Pod to HTML formatter backend for L<Wiki::Toolkit>. 
    1818 
    1919=head1 SYNOPSIS 
    2020 
    21   my $store     = CGI::Wiki::Store::SQLite->new( ... ); 
    22   my $formatter = CGI::Wiki::Formatter::Pod->new; 
    23   my $wiki      = CGI::Wiki->new( store     => $store, 
    24                                   formatter => $formatter ); 
     21  my $store     = Wiki::Toolkit::Store::SQLite->new( ... ); 
     22  my $formatter = Wiki::Toolkit::Formatter::Pod->new; 
     23  my $wiki      = Wiki::Toolkit->new( store     => $store, 
     24                                     formatter => $formatter ); 
    2525 
    26 Go look at L<CGI::Wiki> to find out more. This module is distributed 
     26Go look at L<Wiki::Toolkit> to find out more. This module is distributed 
    2727separately solely for convenience of testing and maintenance; it's 
    2828probably not too useful on its own. 
     
    3434=item B<new> 
    3535 
    36   my $formatter = CGI::Wiki::Formatter::Pod->new( 
     36  my $formatter = Wiki::Toolkit::Formatter::Pod->new( 
    3737                       node_prefix           => 'wiki.cgi?node=', 
    3838                       usemod_extended_links => 0, 
     
    4949names are forced to ucfirst, ie first letter of each word is capitalised.) 
    5050 
    51 B<Note:> You must have L<CGI::Wiki::Formatter::UseMod> installed if 
     51B<Note:> You must have L<Wiki::Toolkit::Formatter::UseMod> installed if 
    5252you wish to use the C<usemod_extended_links> parameter. 
    5353 
     
    6161    $self->{_node_prefix} = $node_prefix; 
    6262    $self->{_usemod_extended_links} = $args{usemod_extended_links} || 0; 
    63     my $link_mapper = CGI::Wiki::Formatter::Pod::LinkMapper->new( 
     63    my $link_mapper = Wiki::Toolkit::Formatter::Pod::LinkMapper->new( 
    6464                                               node_prefix => $node_prefix ); 
    6565    $self->{_link_mapper} = $link_mapper; 
     
    9696sub _linkify { 
    9797    my ($self, $node) = @_; 
    98     require CGI::Wiki::Formatter::UseMod; 
    99     my $formatter = CGI::Wiki::Formatter::UseMod->new( 
     98    require Wiki::Toolkit::Formatter::UseMod; 
     99    my $formatter = Wiki::Toolkit::Formatter::UseMod->new( 
    100100        implicit_links => 0, 
    101101        extended_links => 1, 
     
    112112=head1 SEE ALSO 
    113113 
    114 L<CGI::Wiki>, L<Pod::Tree::HTML>. 
     114L<Wiki::Toolkit>, L<Pod::Tree::HTML>. 
    115115 
    116116=head1 AUTHOR 
     
    130130 
    131131 
    132 package CGI::Wiki::Formatter::Pod::LinkMapper; 
     132package Wiki::Toolkit::Formatter::Pod::LinkMapper; 
    133133 
    134134sub new { 
  • wiki-toolkit-formatter-pod/trunk/t/01_formatting.t

    r92 r517  
    11use Test::More tests => 5; 
    22 
    3 use_ok( "CGI::Wiki::Formatter::Pod" ); 
     3use_ok( "Wiki::Toolkit::Formatter::Pod" ); 
    44 
    5 my $formatter = CGI::Wiki::Formatter::Pod->new; 
    6 isa_ok( $formatter, "CGI::Wiki::Formatter::Pod" ); 
     5my $formatter = Wiki::Toolkit::Formatter::Pod->new; 
     6isa_ok( $formatter, "Wiki::Toolkit::Formatter::Pod" ); 
    77 
    88my $pod = "A L<TestLink>"; 
     
    1111      "links to other wiki page" ); 
    1212 
    13 $formatter = CGI::Wiki::Formatter::Pod->new( 
     13$formatter = Wiki::Toolkit::Formatter::Pod->new( 
    1414                                        node_prefix => "wiki-pod.cgi?node=" ); 
    15 isa_ok( $formatter, "CGI::Wiki::Formatter::Pod" ); 
     15isa_ok( $formatter, "Wiki::Toolkit::Formatter::Pod" ); 
    1616$html = $formatter->format($pod); 
    1717like( $html, qr/<A HREF="wiki-pod.cgi\?node=TestLink">/, 
  • wiki-toolkit-formatter-pod/trunk/t/02_extended_links.t

    r96 r517  
    11use strict; 
    22use Test::More; 
    3 use CGI::Wiki::Formatter::Pod; 
     3use Wiki::Toolkit::Formatter::Pod; 
    44 
    5 eval { require CGI::Wiki::Formatter::UseMod; }; 
     5eval { require Wiki::Toolkit::Formatter::UseMod; }; 
    66 
    77if ( $@ ) { 
    8     plan skip_all =>"CGI::Wiki::Formatter::UseMod required to run these tests"; 
     8    plan skip_all =>"Wiki::Toolkit::Formatter::UseMod required to run these tests"; 
    99} else { 
    1010    plan tests => 3; 
    1111 
    12     my $formatter = CGI::Wiki::Formatter::Pod->new( 
     12    my $formatter = Wiki::Toolkit::Formatter::Pod->new( 
    1313        usemod_extended_links => 1, 
    1414    );