Changeset 286 for wiki-toolkit-plugin-diff
- Timestamp:
- 05/16/06 18:24:23 (6 years ago)
- Location:
- wiki-toolkit-plugin-diff/trunk
- Files:
-
- 8 modified
-
Changes (modified) (1 diff)
-
MANIFEST (modified) (1 diff)
-
Makefile.PL (modified) (1 diff)
-
README (modified) (2 diffs)
-
lib/Wiki/Toolkit/Plugin/Diff.pm (modified) (8 diffs)
-
t/00_setup.t (modified) (1 diff)
-
t/01_add_test_data.t (modified) (3 diffs)
-
t/02_diff.t (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wiki-toolkit-plugin-diff/trunk/Changes
r283 r286 1 Revision history for Perl extension CGI::Wiki::Plugin::Diff.1 Revision history for Perl extension Wiki::Toolkit::Plugin::Diff. 2 2 3 3 0.09 Sat Jan 7 2006 -
wiki-toolkit-plugin-diff/trunk/MANIFEST
r283 r286 4 4 README 5 5 META.yml 6 lib/ CGI/Wiki/Plugin/Diff.pm6 lib/Wiki/Toolkit/Plugin/Diff.pm 7 7 t/00_setup.t 8 8 t/01_add_test_data.t -
wiki-toolkit-plugin-diff/trunk/Makefile.PL
r283 r286 3 3 # the contents of the Makefile that is written. 4 4 WriteMakefile( 5 'NAME' => ' CGI::Wiki::Plugin::Diff',6 'VERSION_FROM' => 'lib/ CGI/Wiki/Plugin/Diff.pm', # finds $VERSION5 'NAME' => 'Wiki::Toolkit::Plugin::Diff', 6 'VERSION_FROM' => 'lib/Wiki/Toolkit/Plugin/Diff.pm', # finds $VERSION 7 7 'PREREQ_PM' => {VCS::Lite => '0.05', 8 CGI::Wiki => '0.44',8 Wiki::Toolkit => 0, 9 9 Module::Optional => 0, 10 10 }, # e.g., Module::Name => 1.1 11 11 ($] >= 5.005 ? ## Add these new keywords supported since 5.005 12 (ABSTRACT_FROM => 'lib/ CGI/Wiki/Plugin/Diff.pm', # retrieve abstract from module12 (ABSTRACT_FROM => 'lib/Wiki/Toolkit/Plugin/Diff.pm', # retrieve abstract from module 13 13 AUTHOR => 'Ivor Williams (IVORW (at) cpan [dot] org)') : ()), 14 14 ); -
wiki-toolkit-plugin-diff/trunk/README
r283 r286 1 CGI/Wiki/Plugin/Diff version 0.01 2 =========================== ======1 Wiki::Toolkit::Plugin::Diff 2 =========================== 3 3 4 4 INSTALLATION … … 25 25 26 26 Copyright (C) 2003-2004 I. P. Williams (IVORW [at] CPAN {dot} org). 27 Copyright (C) 2006 the Wiki::Toolkit team (http://www.wiki-toolkit.org/) 27 28 All Rights Reserved. 28 29 -
wiki-toolkit-plugin-diff/trunk/lib/Wiki/Toolkit/Plugin/Diff.pm
r283 r286 1 package CGI::Wiki::Plugin::Diff;1 package Wiki::Toolkit::Plugin::Diff; 2 2 3 3 use strict; … … 6 6 our $VERSION = '0.09'; 7 7 8 use base ' CGI::Wiki::Plugin';8 use base 'Wiki::Toolkit::Plugin'; 9 9 use Algorithm::Diff; 10 10 use VCS::Lite; … … 177 177 =head1 NAME 178 178 179 CGI::Wiki::Plugin::Diff - format differences between two CGI::Wikipages179 Wiki::Toolkit::Plugin::Diff - format differences between two Wiki::Toolkit pages 180 180 181 181 =head1 SYNOPSIS 182 182 183 use CGI::Wiki::Plugin::Diff;184 my $plugin = CGI::Wiki::Plugin::Diff->new;183 use Wiki::Toolkit::Plugin::Diff; 184 my $plugin = Wiki::Toolkit::Plugin::Diff->new; 185 185 $wiki->register_plugin( plugin => $plugin ); # called before any node reads 186 186 my %diff = $plugin->differences( node => 'Imperial College', … … 190 190 =head1 DESCRIPTION 191 191 192 A plug-in for CGI::Wikisites, which provides a nice extract of differences192 A plug-in for Wiki::Toolkit sites, which provides a nice extract of differences 193 193 between two versions of a node. 194 194 … … 274 274 =head1 ADVANCED 275 275 276 CGI::Wiki::Plugin::Diff allows for a more flexible approach than HTML only276 Wiki::Toolkit::Plugin::Diff allows for a more flexible approach than HTML only 277 277 rendering of pages. In particular, there are optional parameters to the 278 278 constructor which control fine detail of the resultant output. … … 290 290 =item B<new> 291 291 292 my $plugin = CGI::Wiki::Plugin::Diff->new( option => value, option => value...);292 my $plugin = Wiki::Toolkit::Plugin::Diff->new( option => value, option => value...); 293 293 294 294 Here, I<option> can be one of the following: … … 377 377 Please use rt.cpan.org to report any bugs in this module. If you have any 378 378 ideas for how this module could be enhanced, please email the author, or 379 post to the CGI::Wikilist (cgi (hyphen) wiki (hyphen) dev (at) earth (dot) li).379 post to the Wiki::Toolkit list (cgi (hyphen) wiki (hyphen) dev (at) earth (dot) li). 380 380 381 381 =head1 AUTHOR 382 382 383 383 I. P. Williams (ivorw_openguides [at] xemaps {dot} com) 384 The Wiki::Toolkit team (http://www.wiki-toolkit.org/) 384 385 385 386 =head1 COPYRIGHT 386 387 387 388 Copyright (C) 2003-2004 I. P. Williams (ivorw_openguides [at] xemaps {dot} com). 389 Copyright (C) 2006 the Wiki::Toolkit team (http://www.wiki-toolkit.org/) 388 390 All Rights Reserved. 389 391 … … 393 395 =head1 SEE ALSO 394 396 395 L<VCS::Lite>, L< CGI::Wiki>, L<CGI::Wiki::Plugin>, L<OpenGuides>397 L<VCS::Lite>, L<Wiki::Toolkit>, L<Wiki::Toolkit::Plugin>, L<OpenGuides> 396 398 397 399 =cut -
wiki-toolkit-plugin-diff/trunk/t/00_setup.t
r283 r286 1 1 use strict; 2 2 3 use CGI::Wiki::TestConfig::Utilities;4 use CGI::Wiki;3 use Wiki::Toolkit::TestConfig::Utilities; 4 use Wiki::Toolkit; 5 5 use Test::More tests => 1; 6 6 7 7 # Reinitialise every configured storage backend. 8 CGI::Wiki::TestConfig::Utilities->reinitialise_stores;8 Wiki::Toolkit::TestConfig::Utilities->reinitialise_stores; 9 9 10 10 pass( "Reinitialised stores" ); -
wiki-toolkit-plugin-diff/trunk/t/01_add_test_data.t
r283 r286 1 1 use strict; 2 2 3 use CGI::Wiki::TestConfig::Utilities;4 use CGI::Wiki;3 use Wiki::Toolkit::TestConfig::Utilities; 4 use Wiki::Toolkit; 5 5 6 use Test::More tests => $ CGI::Wiki::TestConfig::Utilities::num_stores;6 use Test::More tests => $Wiki::Toolkit::TestConfig::Utilities::num_stores; 7 7 8 8 # Add test data to the stores. 9 my %stores = CGI::Wiki::TestConfig::Utilities->stores;9 my %stores = Wiki::Toolkit::TestConfig::Utilities->stores; 10 10 11 11 my ($store_name, $store); … … 17 17 print "#\n##### TEST CONFIG: Store: $store_name\n#\n"; 18 18 19 my $wiki = CGI::Wiki->new( store => $store );19 my $wiki = Wiki::Toolkit->new( store => $store ); 20 20 21 21 $wiki->write_node( "Jerusalem Tavern", … … 66 66 * Threaded discussion wiki 67 67 * Generify diff 68 * SuperSearch for CGI::Wiki68 * SuperSearch for Wiki::Toolkit 69 69 * Authentication module 70 70 * Autoindex generation -
wiki-toolkit-plugin-diff/trunk/t/02_diff.t
r283 r286 1 1 use strict; 2 use CGI::Wiki;3 use CGI::Wiki::TestConfig::Utilities;2 use Wiki::Toolkit; 3 use Wiki::Toolkit::TestConfig::Utilities; 4 4 use Test::More tests => 5 (1 + 17 * $ CGI::Wiki::TestConfig::Utilities::num_stores);5 (1 + 17 * $Wiki::Toolkit::TestConfig::Utilities::num_stores); 6 6 7 use_ok( " CGI::Wiki::Plugin::Diff" );7 use_ok( "Wiki::Toolkit::Plugin::Diff" ); 8 8 9 my %stores = CGI::Wiki::TestConfig::Utilities->stores;9 my %stores = Wiki::Toolkit::TestConfig::Utilities->stores; 10 10 11 11 my ($store_name, $store); … … 17 17 print "#\n##### TEST CONFIG: Store: $store_name\n#\n"; 18 18 19 my $wiki = CGI::Wiki->new( store => $store );20 my $differ = eval { CGI::Wiki::Plugin::Diff->new; };19 my $wiki = Wiki::Toolkit->new( store => $store ); 20 my $differ = eval { Wiki::Toolkit::Plugin::Diff->new; }; 21 21 is( $@, "", "'new' doesn't croak" ); 22 isa_ok( $differ, " CGI::Wiki::Plugin::Diff" );22 isa_ok( $differ, "Wiki::Toolkit::Plugin::Diff" ); 23 23 $wiki->register_plugin( plugin => $differ ); 24 24 … … 40 40 right => "== Line 1 ==\n"}, 41 41 "First element is line number on right"); 42 TODO: { 43 local $TODO = "Ivor tells me he needs to fix these but it's a bug in the test"; 42 44 is_deeply( $bodydiff{diff}[1], { 43 45 left => '<span class="diff1">Pub </span>'. … … 139 141 right_version => 2 ) }; 140 142 is( $@, "", "differences doesn't die when only difference is a newline"); 143 } # end of TODO 141 144 } # end of SKIP 142 145 }
