From c0c3ff7e1d90b0b4af6fc4873de7f17e7a382fc5 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Fri, 19 Dec 2014 20:54:15 -0500 Subject: [PATCH] Spelling tweaks --- README.dev | 2 +- t/40-conflict.t | 4 ++-- t/99-spellcheck.t | 31 ++++++++++++++++++++++++++++++- 3 files changed, 33 insertions(+), 4 deletions(-) diff --git a/README.dev b/README.dev index c6aff9d80..58a435b52 100644 --- a/README.dev +++ b/README.dev @@ -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) diff --git a/t/40-conflict.t b/t/40-conflict.t index 8744776f7..f4c8c0384 100644 --- a/t/40-conflict.t +++ b/t/40-conflict.t @@ -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(); diff --git a/t/99-spellcheck.t b/t/99-spellcheck.t index 634e32c77..12534b916 100644 --- a/t/99-spellcheck.t +++ b/t/99-spellcheck.t @@ -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 () { 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 -- 2.39.5