Spelling tweaks
authorGreg Sabino Mullane <greg@endpoint.com>
Sat, 20 Dec 2014 01:54:15 +0000 (20:54 -0500)
committerGreg Sabino Mullane <greg@endpoint.com>
Sat, 20 Dec 2014 01:54:15 +0000 (20:54 -0500)
README.dev
t/40-conflict.t
t/99-spellcheck.t

index c6aff9d809567c149ae1c680e49cbf0a846bb9b5..58a435b5219d6e37652411b0081c5ca157b2bb1f 100644 (file)
@@ -325,7 +325,7 @@ http://www.postgresql.org/about/submitnews
 
 The content should be roughly the same as the announcement.
 
-* Update the Postres wiki as needed
+* Update the Postgres wiki as needed
 
 https://wiki.postgresql.org/wiki/Bucardo (may be other pages too)
 
index 8744776f76f2379be340aef90ca3fd1e19ac5a12..f4c8c0384a7bb9cdbc6013f547a64f5ac74f435f 100644 (file)
@@ -167,7 +167,7 @@ $bct->update_row_in_database('C', 1, 113);
 $bct->ctl('bucardo kick sync ctest 10');
 $bct->check_for_row([[111],[212],[301]], [qw/ A B C D /]);
 
-## Customcode with specific winners per row
+## Test customcode with specific winners per row
 $t = q{Added new customcode ctest2 for conflict in the ctest sync};
 $res = $bct->ctl('bucardo add customcode ctest2 whenrun=conflict relation=bucardo_test1 src_code=t/ctest2.pl');
 like($res, qr{Added customcode "ctest2"}, $t);
@@ -187,7 +187,7 @@ $bct->ctl('bucardo kick sync ctest 10');
 $bct->check_for_row([[102],[222],[301]], [qw/ A B C D /]);
 
 
-## Customcode on a goat only
+## Test customcode on a goat only
 
 
 done_testing();
index 634e32c772345ff8acd3377feb643e08bfcaf69d..12534b916b73003d9c76868a47fe9c7e09be62df 100644 (file)
@@ -2,6 +2,7 @@
 # -*-mode:cperl; indent-tabs-mode: nil-*-
 
 ## Spellcheck as much as we can
+## Make sure you have Text::Hunspell installed or you will get false positives
 ## Requires TEST_SPELL to be set
 
 use 5.006;
@@ -50,7 +51,7 @@ while (<DATA>) {
 
 sub spellcheck {
        my ($desc, $text, $filename) = @_;
-       my $check = Text::SpellChecker->new(text => $text);
+       my $check = Text::SpellChecker->new(text => $text, lang => 'en_US');
        my %badword;
        while (my $word = $check->next_word) {
                next if $okword{Common}{$word} or $okword{$filename}{$word};
@@ -156,7 +157,10 @@ dbname
 dbrun
 DDL
 dropin
+foobar
 fullcopy
+grep
+Hunspell
 LOGIN
 MariaDB
 mongo
@@ -165,6 +169,7 @@ Mullane
 mysql
 MySQL
 NOTIFYs
+org
 perl
 PGBINDIR
 pgsql
@@ -259,9 +264,11 @@ NAMEDATALEN
 nosync
 onetimecopy
 param
+params
 pgbouncer
 PgBouncer's
 pgpid
+PGSERVICEFILE
 pid
 PID
 PIDCLEANUP
@@ -312,6 +319,9 @@ Zamani
 
 ## TODO
 
+kicksync
+sourceonly
+varchar
 CPAN
 PID
 Readonly
@@ -388,6 +398,8 @@ vate
 
 ## README.dev
 
+Bugzilla
+tarball
 BucardoTesting
 Checksum
 DBIx
@@ -434,18 +446,22 @@ perlcritic
 perlcriticrc
 postgresql
 pragma
+quickstart
 realclean
 sha
 sig
 skipcheck
 spellcheck
+stagetable
 submitnews
 teardown
 testname
 timestamps
 tmp
 txt
+undef
 uniqueconstraint
+unlink
 username
 weeklynews
 wildkick
@@ -479,12 +495,22 @@ unapologetically
 backend
 bct
 booly
+configs
+commandline
+ctest
 ctl
 ctlargs
 dbh
 dbhA
 dbhB
+dbhC
+dbhD
+dbhE
+dbhF
 dbhX
+dbhostA
+dbportA
+dbuserA
 diag
 droptest
 env
@@ -533,6 +559,9 @@ untar
 
 ## META.yml
 
+ExtUtils
+MakeMaker
+Util
 HiRes
 Hostname
 MailingList